-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
85 lines (74 loc) · 2.19 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
76
77
78
79
80
81
82
83
84
# Makefile
# $Id$
srcdir = .
top_srcdir = .
.PHONY: all
all:
@failcom='exit 1'; \
(cd $(top_srcdir)/lib && $(MAKE)) || eval $$failcom; \
(cd $(top_srcdir)/calc && $(MAKE)) || eval $$failcom; \
(cd $(top_srcdir)/server && $(MAKE)) || eval $$failcom; \
(cd $(top_srcdir)/client && $(MAKE)) || eval $$failcom; \
echo ""; \
echo "*******************************"; \
echo "* Success!! Congratulations!! *"; \
echo "* make all finished. *"; \
echo "*******************************"; \
echo "";
.PHONY: static
static:
cd $(top_srcdir)/lib && $(MAKE)
cd $(top_srcdir)/calc && $(MAKE) static
cd $(top_srcdir)/server && $(MAKE) static
cd $(top_srcdir)/client && $(MAKE) static
.PHONY: debug
debug:
@failcom='exit 1'; \
(cd $(top_srcdir)/lib && $(MAKE) debug) || eval $$failcom; \
(cd $(top_srcdir)/calc && $(MAKE) debug) || eval $$failcom; \
(cd $(top_srcdir)/server && $(MAKE) debug) || eval $$failcom; \
(cd $(top_srcdir)/client && $(MAKE) debug) || eval $$failcom; \
echo ""; \
echo "*******************************"; \
echo "* Success!! Congratulations!! *"; \
echo "* make debug finished. *"; \
echo "*******************************"; \
echo "";
.PHONY: test
test:
cd $(top_srcdir)/lib && $(MAKE) test
cd $(top_srcdir)/calc && $(MAKE) test
cd $(top_srcdir)/server && $(MAKE) test
cd $(top_srcdir)/client && $(MAKE) test
.PHONY: install
install:
cd $(top_srcdir)/lib && $(MAKE) install
cd $(top_srcdir)/calc && $(MAKE) install
cd $(top_srcdir)/server && $(MAKE) install
cd $(top_srcdir)/client && $(MAKE) install
.PHONY: strip
strip:
cd $(top_srcdir)/lib && $(MAKE) strip
cd $(top_srcdir)/calc && $(MAKE) strip
cd $(top_srcdir)/server && $(MAKE) strip
cd $(top_srcdir)/client && $(MAKE) strip
.PHONY: clean
clean:
@rm -rf doc
cd $(top_srcdir)/lib && $(MAKE) clean
cd $(top_srcdir)/calc && $(MAKE) clean
cd $(top_srcdir)/server && $(MAKE) clean
cd $(top_srcdir)/client && $(MAKE) clean
.PHONY: doc
doc:
doxygen Doxyfile
.PHONY: help
help:
@echo "The following are some of the valid targets for this Makefile:"
@echo "... all (the default if no target is provided)"
@echo "... clean"
@echo "... debug"
@echo "... static"
@echo "... test"
@echo "... doc"
@echo "... strip"