-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
45 lines (38 loc) · 1.47 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
.PHONY: asmp-dll asmp-server asmp-exe-patcher test build test clean help all documentation
help:
@echo "This is the global Makefile for all components of the project."
@echo "Usage: make [COMPONENT] [TARGET] [VARIABLES]"
@echo ""
@echo "Components:"
@echo " asmp-dll - client (asmp.dll)"
@echo " asmp-server - server (asmp-server.exe)"
@echo " asmp-exe-patcher - game executable patcher (asmp-exe-patcher.exe)"
@echo " test - tests"
@echo " all - all components"
@echo ""
@echo "Targets:"
@echo " build - build a component of the project"
@echo " clean - remove data created during component building"
@echo " help - show this message (default)"
@echo ""
@echo "Variables:"
@echo " Avaliable variables are component-specific. Call 'help' for"
@echo " a specific component for more information."
@echo ""
@echo "To generate documentation, run Makefile with the given parameter:"
@echo " documentation"
asmp-dll:
$(MAKE) -C asmp-dll $(filter-out $@,$(MAKECMDGOALS))
asmp-server:
$(MAKE) -C asmp-server $(filter-out $@,$(MAKECMDGOALS))
asmp-exe-patcher:
$(MAKE) -C asmp-exe-patcher $(filter-out $@,$(MAKECMDGOALS))
test:
$(MAKE) -C test $(filter-out $@,$(MAKECMDGOALS))
all:
$(MAKE) -C asmp-dll $(filter-out $@,$(MAKECMDGOALS))
$(MAKE) -C asmp-server $(filter-out $@,$(MAKECMDGOALS))
$(MAKE) -C asmp-exe-patcher $(filter-out $@,$(MAKECMDGOALS))
$(MAKE) -C test $(filter-out $@,$(MAKECMDGOALS))
documentation:
doxygen Doxyfile