comparison lamertetris/Makefile.aur @ 18:b5e2aba31fdb

lamertetris-0.230821-3 package for arch
author Przemyslaw <prymula76@outlook.com>
date Sun, 31 Mar 2024 15:35:26 +0200
parents
children
comparison
equal deleted inserted replaced
17:e9c503d896a6 18:b5e2aba31fdb
1 APP_BIN=lamertetris
2 OBJF = ./sources/field.o \
3 ./sources/shape.o \
4 ./sources/szlam.o \
5 ./sources/text.o \
6 ./sources/hiscore.o \
7 ./sources/game.o
8
9 prefix = /usr
10 LIBS=sdl2 SDL2_ttf
11
12 #CXXFLAGS += -I./ -I Sources
13
14 PACKAGES = $(LIBS)
15 # CXXFLAGS += `pkg-config --cflags $(PACKAGES)` -mthreads
16 CXXFLAGS += -g -Wall `pkg-config --cflags $(PACKAGES)` -DLINUX
17 #LDFLAGS += -ldl
18
19 #EXAMPLE_BIN contains list of example binaries to build
20
21 all: $(APP_BIN)
22
23 $(APP_BIN): $(OBJF)
24 $(CXX) $(CXXFLAGS) $(OBJF) -o $(APP_BIN) `pkg-config --libs $(PACKAGES)` -g $(EXTRA_LIBS)
25
26 clean:
27 rm -f $(OBJF) $(APP_BIN)
28
29 %.o : %.C
30 $(CXX) $(CXXFLAGS) -c $< -o $@
31
32 install:
33 mkdir -pm 0755 $(DESTDIR)$(prefix)/bin
34 mkdir -pm 0755 $(DESTDIR)$(prefix)/share/applications
35 mkdir -pm 0755 $(DESTDIR)$(prefix)/share/lamertetris
36 mkdir -pm 0755 $(DESTDIR)$(prefix)/share/lamertetris/img
37 install -m 0755 lamertetris $(DESTDIR)$(prefix)/bin/
38 install -m 0644 assets/lamertetris.png $(DESTDIR)$(prefix)/share/lamertetris/img/lamertetris.png
39 install -m 0644 assets/lamertetris.bmp $(DESTDIR)$(prefix)/share/lamertetris/img/lamertetris.bmp
40 install -m 0644 assets/wallpaper.bmp $(DESTDIR)$(prefix)/share/lamertetris/img/wallpaper.bmp
41 install -m 0644 LamerTetris.desktop $(DESTDIR)$(prefix)/share/applications
42 install -m 0644 assets/SpicyRice.ttf $(DESTDIR)$(prefix)/share/lamertetris
43 .PHONY: install
44
45 #
46 #uninstall:
47 # rm /usr/bin/lamertetris
48 # rm -r $(prefix)/share/lamertetris
49 # rm /usr/share/applications/LamerTetris.desktop
50 #.PHONY: uninstall
51
52
53 # EOF #
54