annotate trix/Makefile @ 16:8fa14e28f099

flappyufo-spec fix
author Przemyslaw <prymula76@outlook.com>
date Sat, 24 Feb 2024 17:25:30 +0100
parents 2787f5e749ae
children bef3b1af6326
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
prymula <prymula76@outlook.com>
parents:
diff changeset
1 APP_BIN=trix
prymula <prymula76@outlook.com>
parents:
diff changeset
2 OBJF = ./src/main.o \
prymula <prymula76@outlook.com>
parents:
diff changeset
3 ./src/menu.o \
prymula <prymula76@outlook.com>
parents:
diff changeset
4 ./src/game.o
prymula <prymula76@outlook.com>
parents:
diff changeset
5
prymula <prymula76@outlook.com>
parents:
diff changeset
6
prymula <prymula76@outlook.com>
parents:
diff changeset
7 LIBS=sdl2 SDL2_ttf SDL2_image
prymula <prymula76@outlook.com>
parents:
diff changeset
8
prymula <prymula76@outlook.com>
parents:
diff changeset
9 #CXXFLAGS += -I./ -I Sources
prymula <prymula76@outlook.com>
parents:
diff changeset
10
prymula <prymula76@outlook.com>
parents:
diff changeset
11 PACKAGES = $(LIBS)
prymula <prymula76@outlook.com>
parents:
diff changeset
12 # CXXFLAGS += `pkg-config --cflags $(PACKAGES)` -mthreads
prymula <prymula76@outlook.com>
parents:
diff changeset
13 CFLAGS += -g -Wall `pkg-config --cflags $(PACKAGES)` -DLINUX
prymula <prymula76@outlook.com>
parents:
diff changeset
14 #LDFLAGS += -ldl
prymula <prymula76@outlook.com>
parents:
diff changeset
15 PREFIX = /usr
prymula <prymula76@outlook.com>
parents:
diff changeset
16 #EXAMPLE_BIN contains list of example binaries to build
prymula <prymula76@outlook.com>
parents:
diff changeset
17
prymula <prymula76@outlook.com>
parents:
diff changeset
18 all: $(APP_BIN)
prymula <prymula76@outlook.com>
parents:
diff changeset
19
prymula <prymula76@outlook.com>
parents:
diff changeset
20 $(APP_BIN): $(OBJF)
prymula <prymula76@outlook.com>
parents:
diff changeset
21 $(CC) $(CXXFLAGS) $(OBJF) -o $(APP_BIN) `pkg-config --libs $(PACKAGES)` -g $(EXTRA_LIBS)
prymula <prymula76@outlook.com>
parents:
diff changeset
22
prymula <prymula76@outlook.com>
parents:
diff changeset
23 clean:
prymula <prymula76@outlook.com>
parents:
diff changeset
24 rm -f $(OBJF) $(APP_BIN)
prymula <prymula76@outlook.com>
parents:
diff changeset
25
prymula <prymula76@outlook.com>
parents:
diff changeset
26 %.o : %.C
prymula <prymula76@outlook.com>
parents:
diff changeset
27 $(CC) $(CFLAGS) -c $< -o $@
prymula <prymula76@outlook.com>
parents:
diff changeset
28
prymula <prymula76@outlook.com>
parents:
diff changeset
29 install:
prymula <prymula76@outlook.com>
parents:
diff changeset
30 install -d $(PREFIX)/share/trix $(PREFIX)/share/trix/img $(PREFIX)/share/trix/img/bg
prymula <prymula76@outlook.com>
parents:
diff changeset
31 install trix $(PREFIX)/bin
prymula <prymula76@outlook.com>
parents:
diff changeset
32 install ZapfHumanist.ttf $(PREFIX)/share/trix
prymula <prymula76@outlook.com>
parents:
diff changeset
33 install img/*.bmp $(PREFIX)/share//trix/img
prymula <prymula76@outlook.com>
parents:
diff changeset
34 install img/bg/*.txt $(PREFIX)/share/trix/img/bg
prymula <prymula76@outlook.com>
parents:
diff changeset
35 install img/bg/*.jpeg $(PREFIX)/share/trix/img/bg
prymula <prymula76@outlook.com>
parents:
diff changeset
36 install img/*.png $(PREFIX)/share/trix/img
prymula <prymula76@outlook.com>
parents:
diff changeset
37 install Trix.desktop /usr/share/applications
prymula <prymula76@outlook.com>
parents:
diff changeset
38
prymula <prymula76@outlook.com>
parents:
diff changeset
39
prymula <prymula76@outlook.com>
parents:
diff changeset
40 uninstall:
prymula <prymula76@outlook.com>
parents:
diff changeset
41 rm $(PREFIX)/bin/trix
prymula <prymula76@outlook.com>
parents:
diff changeset
42 rm -r $(PREFIX)/share/trix
prymula <prymula76@outlook.com>
parents:
diff changeset
43 rm /usr/share/applications/Trix.desktop
prymula <prymula76@outlook.com>
parents:
diff changeset
44
prymula <prymula76@outlook.com>
parents:
diff changeset
45
prymula <prymula76@outlook.com>
parents:
diff changeset
46
prymula <prymula76@outlook.com>
parents:
diff changeset
47 # EOF #
prymula <prymula76@outlook.com>
parents:
diff changeset
48