Mercurial > hg > pub > prymula > com
comparison arkanoid/Makefile.aur @ 9:cdadbf30a821
arkanoid-0.7-1_PKG
author | prymula <prymula76@outlook.com> |
---|---|
date | Sun, 04 Feb 2024 15:47:05 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
8:923377f8ebcb | 9:cdadbf30a821 |
---|---|
1 CPP = g++ | |
2 CC = gcc | |
3 # WINDRES = windres.exe | |
4 RES = | |
5 OBJ = arkanoid.o ball.o $(RES) | |
6 LINKOBJ = arkanoid.o ball.o $(RES) | |
7 LIBS = `pkg-config --libs sdl2` `pkg-config --libs SDL2_ttf` | |
8 INCS = `pkg-config --cflags sdl2` | |
9 CXXINCS = | |
10 BIN = arkanoid | |
11 CXXFLAGS = $(CXXINCS) -g | |
12 CFLAGS = $(INCS) -g | |
13 RM = rm -f | |
14 prefix=/usr | |
15 | |
16 .PHONY: all all-before all-after clean clean-custom | |
17 | |
18 all: all-before arkanoid all-after | |
19 | |
20 | |
21 clean: clean-custom | |
22 ${RM} $(OBJ) $(BIN) | |
23 | |
24 $(BIN): $(OBJ) | |
25 $(CC) $(LINKOBJ) -o "arkanoid" $(LIBS) | |
26 | |
27 arkanoid.o: arkanoid.c | |
28 $(CC) -c arkanoid.c -o arkanoid.o $(CFLAGS) -DLINUX | |
29 | |
30 ball.o: ball.c | |
31 $(CC) -c ball.c -o ball.o $(CFLAGS) -DLINUX | |
32 | |
33 install: | |
34 mkdir -pm 0755 $(DESTDIR)$(prefix)/bin | |
35 mkdir -pm 0755 $(DESTDIR)$(prefix)/share/arkanoid | |
36 mkdir -pm 0755 $(DESTDIR)$(prefix)/share/pixmaps | |
37 mkdir -pm 0755 $(DESTDIR)$(prefix)/share/applications | |
38 install -m 0755 arkanoid $(DESTDIR)$(prefix)/bin | |
39 install -m 0644 icon/arkanoid.png $(DESTDIR)$(prefix)/share/pixmaps | |
40 install -m 0644 icon/gumka_arkanoid.bmp $(DESTDIR)$(prefix)/share/pixmaps | |
41 install -m 0755 arkanoid.desktop $(DESTDIR)$(prefix)/share/applications | |
42 install -m 0644 SpicyRice.ttf $(DESTDIR)$(prefix)/share/arkanoid | |
43 .PHONY: install | |
44 |