-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
40 lines (30 loc) · 1.16 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
export CC=gcc
export CFLAGS=-std=c99 -pthread @{CFLAGS} `pkg-config --cflags freetype2` -D_BSD_SOURCE -D_DEFAULT_SOURCE -DPREFIX=\"@{PREFIX}\" -Werror -Wpedantic -Wstrict-aliasing -Wchar-subscripts -Wimplicit -Wsequence-point -Wwrite-strings -Wunused-variable -Wvla -Wno-pointer-sign -Wno-parentheses -Wno-unused-result -Wno-switch -Wno-return-type -Wno-format-extra-args
export LDFLAGS=-pthread -L/usr/X11/lib -lm -lpng -lGL -lX11 -lxcb -lX11-xcb `pkg-config --libs freetype2`
all:
make -C src $@
force:
@true
conquest_of_levidon: force
make -C src conquest_of_levidon
editor: force
make -C src editor
units:
make -C src units
check:
$(MAKE) -C test $@
clean:
$(MAKE) -C test $@
$(MAKE) -C src $@
mrproper: clean
rm -f Makefile
install:
# TODO the strip option should not be added in debug
install @{STRIP} src/conquest_of_levidon @{PREFIX}bin/
install -d @{PREFIX}share/conquest_of_levidon/img/ @{PREFIX}share/conquest_of_levidon/worlds/
install img/*.png @{PREFIX}share/conquest_of_levidon/img/
install worlds/* @{PREFIX}share/conquest_of_levidon/worlds/
# TODO ?fonts
uninstall:
rm -f @{PREFIX}bin/conquest_of_levidon
rm -rf @{PREFIX}share/conquest_of_levidon/