Mercurial > hg > pub > prymula > com
comparison trix/Makefile @ 0:2787f5e749ae
INIT
author | prymula <prymula76@outlook.com> |
---|---|
date | Thu, 21 Sep 2023 22:33:57 +0200 |
parents | |
children | bef3b1af6326 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:2787f5e749ae |
---|---|
1 APP_BIN=trix | |
2 OBJF = ./src/main.o \ | |
3 ./src/menu.o \ | |
4 ./src/game.o | |
5 | |
6 | |
7 LIBS=sdl2 SDL2_ttf SDL2_image | |
8 | |
9 #CXXFLAGS += -I./ -I Sources | |
10 | |
11 PACKAGES = $(LIBS) | |
12 # CXXFLAGS += `pkg-config --cflags $(PACKAGES)` -mthreads | |
13 CFLAGS += -g -Wall `pkg-config --cflags $(PACKAGES)` -DLINUX | |
14 #LDFLAGS += -ldl | |
15 PREFIX = /usr | |
16 #EXAMPLE_BIN contains list of example binaries to build | |
17 | |
18 all: $(APP_BIN) | |
19 | |
20 $(APP_BIN): $(OBJF) | |
21 $(CC) $(CXXFLAGS) $(OBJF) -o $(APP_BIN) `pkg-config --libs $(PACKAGES)` -g $(EXTRA_LIBS) | |
22 | |
23 clean: | |
24 rm -f $(OBJF) $(APP_BIN) | |
25 | |
26 %.o : %.C | |
27 $(CC) $(CFLAGS) -c $< -o $@ | |
28 | |
29 install: | |
30 install -d $(PREFIX)/share/trix $(PREFIX)/share/trix/img $(PREFIX)/share/trix/img/bg | |
31 install trix $(PREFIX)/bin | |
32 install ZapfHumanist.ttf $(PREFIX)/share/trix | |
33 install img/*.bmp $(PREFIX)/share//trix/img | |
34 install img/bg/*.txt $(PREFIX)/share/trix/img/bg | |
35 install img/bg/*.jpeg $(PREFIX)/share/trix/img/bg | |
36 install img/*.png $(PREFIX)/share/trix/img | |
37 install Trix.desktop /usr/share/applications | |
38 | |
39 | |
40 uninstall: | |
41 rm $(PREFIX)/bin/trix | |
42 rm -r $(PREFIX)/share/trix | |
43 rm /usr/share/applications/Trix.desktop | |
44 | |
45 | |
46 | |
47 # EOF # | |
48 |