-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
68 lines (55 loc) · 1.56 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
# Alternative GNU Make workspace makefile autogenerated by Premake
ifndef config
config=debug
endif
ifndef verbose
SILENT = @
endif
ifeq ($(config),debug)
sproto_config = debug
lpeg_config = debug
math3d_config = debug
else ifeq ($(config),release)
sproto_config = release
lpeg_config = release
math3d_config = release
else
$(error "invalid configuration $(config)")
endif
PROJECTS := sproto lpeg math3d
.PHONY: all clean help $(PROJECTS)
all: $(PROJECTS)
sproto:
ifneq (,$(sproto_config))
@echo "==== Building sproto ($(sproto_config)) ===="
@${MAKE} --no-print-directory -C build/projects/sproto -f Makefile config=$(sproto_config)
endif
lpeg:
ifneq (,$(lpeg_config))
@echo "==== Building lpeg ($(lpeg_config)) ===="
@${MAKE} --no-print-directory -C build/projects/lpeg -f Makefile config=$(lpeg_config)
endif
math3d:
ifneq (,$(math3d_config))
@echo "==== Building math3d ($(math3d_config)) ===="
@${MAKE} --no-print-directory -C build/projects/math3d -f Makefile config=$(math3d_config)
endif
clean:
@${MAKE} --no-print-directory -C build/projects/sproto -f Makefile clean
@${MAKE} --no-print-directory -C build/projects/lpeg -f Makefile clean
@${MAKE} --no-print-directory -C build/projects/math3d -f Makefile clean
help:
@echo "Usage: make [config=name] [target]"
@echo ""
@echo "CONFIGURATIONS:"
@echo " debug"
@echo " release"
@echo ""
@echo "TARGETS:"
@echo " all (default)"
@echo " clean"
@echo " sproto"
@echo " lpeg"
@echo " math3d"
@echo ""
@echo "For more information, see https://github.com/premake/premake-core/wiki"