annotate arkanoid/Makefile.aur @ 13:fa0307eb70b7

immposiblerush-typo correction
author prymula <prymula76@outlook.com>
date Fri, 09 Feb 2024 16:40:54 +0100
parents cdadbf30a821
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
1 CPP = g++
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
2 CC = gcc
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
3 # WINDRES = windres.exe
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
4 RES =
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
5 OBJ = arkanoid.o ball.o $(RES)
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
6 LINKOBJ = arkanoid.o ball.o $(RES)
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
7 LIBS = `pkg-config --libs sdl2` `pkg-config --libs SDL2_ttf`
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
8 INCS = `pkg-config --cflags sdl2`
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
9 CXXINCS =
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
10 BIN = arkanoid
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
11 CXXFLAGS = $(CXXINCS) -g
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
12 CFLAGS = $(INCS) -g
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
13 RM = rm -f
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
14 prefix=/usr
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
15
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
16 .PHONY: all all-before all-after clean clean-custom
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
17
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
18 all: all-before arkanoid all-after
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
19
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
20
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
21 clean: clean-custom
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
22 ${RM} $(OBJ) $(BIN)
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
23
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
24 $(BIN): $(OBJ)
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
25 $(CC) $(LINKOBJ) -o "arkanoid" $(LIBS)
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
26
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
27 arkanoid.o: arkanoid.c
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
28 $(CC) -c arkanoid.c -o arkanoid.o $(CFLAGS) -DLINUX
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
29
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
30 ball.o: ball.c
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
31 $(CC) -c ball.c -o ball.o $(CFLAGS) -DLINUX
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
32
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
33 install:
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
34 mkdir -pm 0755 $(DESTDIR)$(prefix)/bin
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
35 mkdir -pm 0755 $(DESTDIR)$(prefix)/share/arkanoid
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
36 mkdir -pm 0755 $(DESTDIR)$(prefix)/share/pixmaps
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
37 mkdir -pm 0755 $(DESTDIR)$(prefix)/share/applications
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
38 install -m 0755 arkanoid $(DESTDIR)$(prefix)/bin
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
39 install -m 0644 icon/arkanoid.png $(DESTDIR)$(prefix)/share/pixmaps
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
40 install -m 0644 icon/gumka_arkanoid.bmp $(DESTDIR)$(prefix)/share/pixmaps
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
41 install -m 0755 arkanoid.desktop $(DESTDIR)$(prefix)/share/applications
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
42 install -m 0644 SpicyRice.ttf $(DESTDIR)$(prefix)/share/arkanoid
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
43 .PHONY: install
cdadbf30a821 arkanoid-0.7-1_PKG
prymula <prymula76@outlook.com>
parents:
diff changeset
44