This repository has been archived by the owner on Sep 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
75 lines (63 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
64
65
66
67
68
69
70
71
72
73
74
75
# GNU Make workspace makefile autogenerated by Premake
ifndef config
config=debug
endif
ifndef verbose
SILENT = @
endif
ifeq ($(config),debug)
Lua_config = debug
emp_core_config = debug
emp_config = debug
rtrad_config = debug
endif
ifeq ($(config),release)
Lua_config = release
emp_core_config = release
emp_config = release
rtrad_config = release
endif
PROJECTS := Lua emp_core emp rtrad
.PHONY: all clean help $(PROJECTS)
all: $(PROJECTS)
Lua:
ifneq (,$(Lua_config))
@echo "==== Building Lua ($(Lua_config)) ===="
@${MAKE} --no-print-directory -C premakescripts -f Lua.make config=$(Lua_config)
endif
emp_core: rtrad
ifneq (,$(emp_core_config))
@echo "==== Building emp_core ($(emp_core_config)) ===="
@${MAKE} --no-print-directory -C premakescripts -f emp_core.make config=$(emp_core_config)
endif
emp: Lua emp_core
ifneq (,$(emp_config))
@echo "==== Building emp ($(emp_config)) ===="
@${MAKE} --no-print-directory -C premakescripts -f emp.make config=$(emp_config)
endif
rtrad:
ifneq (,$(rtrad_config))
@echo "==== Building rtrad ($(rtrad_config)) ===="
@${MAKE} --no-print-directory -C premakescripts -f rtrad.make config=$(rtrad_config)
endif
clean:
@${MAKE} --no-print-directory -C premakescripts -f Lua.make clean
@${MAKE} --no-print-directory -C premakescripts -f emp_core.make clean
@${MAKE} --no-print-directory -C premakescripts -f emp.make clean
@${MAKE} --no-print-directory -C premakescripts -f rtrad.make clean
help:
@echo "Usage: make [config=name] [target]"
@echo ""
@echo "CONFIGURATIONS:"
@echo " debug"
@echo " release"
@echo ""
@echo "TARGETS:"
@echo " all (default)"
@echo " clean"
@echo " Lua"
@echo " emp_core"
@echo " emp"
@echo " rtrad"
@echo ""
@echo "For more information, see http://industriousone.com/premake/quick-start"