forked from cymonsgames/ASCIIpOrtal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (49 loc) · 1.78 KB
/
Makefile
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# ASCIIpOrtal main Makefile by zorun, inspired in part from kaw's one.
# This is in fact a placeholder, real compilation is done in Makefile.xxx
# See the common makefile for relevant options: 'Makefile.common'
# Also check the 'Makefile.example' file if you plan to port ASCIIpOrtal
# on another system/architecture.
# List of available ports
PORTS = mingw32 nosdl nosdl32 linux linux32
help:
@echo
@echo "[*] To build asciiportal on Linux, run 'make linux', you need pdcurses and yaml-cpp."
@echo "[*] To build all dependencies locally, run 'make everything'."
@echo "[*] For other options (mingw32, no SDL), read the Makefile."
# Build every dependency locally (yaml-cpp and pdcurses), then asciiportal.
# You only need SDL.
# See 'linux' target if you already have PDCurses built against SDL.
everything:
$(MAKE) -f Makefile.default default
# Other ports
$(PORTS):
$(MAKE) -f Makefile.$@ $@
# Generate a tarball with the default setup. Not used for releases, see 'all'
dist:
$(MAKE) -f Makefile.default $@
# Development target: doesn't clean anything
dev:
$(MAKE) -f Makefile.dev $@
# Package the source
source:
$(MAKE) -f Makefile.default $@
debian-source:
$(MAKE) -f Makefile.default $@
# Release target: compile and pack everything.
# This assumes running on a 64 bits linux environment.
all: source
$(foreach port,$(PORTS),$(MAKE) -k -f Makefile.$(port) all;)
install:
$(MAKE) -f Makefile.default $@
# Additional specific cleanup is done in child Makefiles
clean:
rm -f *.o
$(MAKE) -f Makefile.default clean
$(MAKE) -f Makefile.dev clean
execlean:
$(MAKE) -f Makefile.default $@
$(foreach port,$(PORTS),$(MAKE) -k -f Makefile.$(port) $@;)
# Remove any tarball generated
distclean:
$(MAKE) -f Makefile.default distclean
$(foreach port,$(PORTS),$(MAKE) -k -f Makefile.$(port) $@;)