-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
55 lines (45 loc) · 1.23 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
# GNU Make workspace makefile autogenerated by Premake
ifndef config
config=debug
endif
ifndef verbose
SILENT = @
endif
ifeq ($(config),debug)
kcp_config = debug
tcp_over_kcp_config = debug
endif
ifeq ($(config),release)
kcp_config = release
tcp_over_kcp_config = release
endif
PROJECTS := kcp tcp_over_kcp
.PHONY: all clean help $(PROJECTS)
all: $(PROJECTS)
kcp:
ifneq (,$(kcp_config))
@echo "==== Building kcp ($(kcp_config)) ===="
@${MAKE} --no-print-directory -C projects/build/kcp -f Makefile config=$(kcp_config)
endif
tcp_over_kcp: kcp
ifneq (,$(tcp_over_kcp_config))
@echo "==== Building tcp_over_kcp ($(tcp_over_kcp_config)) ===="
@${MAKE} --no-print-directory -C projects/build/tcp_over_kcp -f Makefile config=$(tcp_over_kcp_config)
endif
clean:
@${MAKE} --no-print-directory -C projects/build/kcp -f Makefile clean
@${MAKE} --no-print-directory -C projects/build/tcp_over_kcp -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 " kcp"
@echo " tcp_over_kcp"
@echo ""
@echo "For more information, see https://github.com/premake/premake-core/wiki"