Mercurial > xbps-search-tv
annotate Makefile @ 3:ae3a6d7bcca6 default tip
cache the package list for better performance
| author | Yasuri <yasuri@charliesmp.net> |
|---|---|
| date | Sun, 13 Sep 2026 19:48:34 +0000 |
| parents | 21b543c7aa14 |
| children |
| rev | line source |
|---|---|
| 0 | 1 CXX := g++ |
| 2 CXXFLAGS := -std=c++17 -Wall -Wextra | |
| 3 TARGET := xt | |
| 4 SRCS := main.cpp spawn.cpp pipes.cpp | |
| 5 OBJS := $(SRCS:.cpp=.o) | |
|
3
ae3a6d7bcca6
cache the package list for better performance
Yasuri <yasuri@charliesmp.net>
parents:
0
diff
changeset
|
6 PREFIX = /usr/local |
|
ae3a6d7bcca6
cache the package list for better performance
Yasuri <yasuri@charliesmp.net>
parents:
0
diff
changeset
|
7 BINDIR = /bin |
|
ae3a6d7bcca6
cache the package list for better performance
Yasuri <yasuri@charliesmp.net>
parents:
0
diff
changeset
|
8 .PHONY: all clean install |
| 0 | 9 |
| 10 all: $(TARGET) | |
| 11 | |
| 12 $(TARGET): $(OBJS) | |
| 13 $(CXX) $(CXXFLAGS) $(OBJS) -o $(TARGET) | |
| 14 | |
| 15 %.o: %.cpp process.h | |
| 16 $(CXX) $(CXXFLAGS) -c $< -o $@ | |
| 17 | |
|
3
ae3a6d7bcca6
cache the package list for better performance
Yasuri <yasuri@charliesmp.net>
parents:
0
diff
changeset
|
18 install: $(TARGET) |
|
ae3a6d7bcca6
cache the package list for better performance
Yasuri <yasuri@charliesmp.net>
parents:
0
diff
changeset
|
19 install -Dm755 $(TARGET) $(PREFIX)$(BINDIR)/$(TARGET) |
| 0 | 20 clean: |
| 21 rm -f $(OBJS) $(TARGET) |
