-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (37 loc) · 862 Bytes
/
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
docpath=./doc/api
#CFLAGS+=-Wall -Wextra -ansi -pedantic -g -I"$(PWD)/include"
CFLAGS+=-Wall -Wextra -std=c11 -pedantic -g -I"$(PWD)/include"
CFLAGS+=-fPIE
#CFLAGS+=-DUPO_DEBUG
#CFLAGS+=-DUPO_BST_USE_RECURSIVE_PUT
#CFLAGS+=-DUPO_BST_USE_RECURSIVE_GET
#CFLAGS+=-DUPO_BST_DELETE_BY_MIN
#CFLAGS+=-DUPO_BST_USE_RECURSIVE_TRAVERSAL
#CFLAGS+=-DUPO_HASHTABLE_LINPROB_NEW_STYLE
#LDLIBS+=-lrt
#apps_targets=
#bin_targets=
#test_targets=
export CFLAGS
#export apps_targets
#export bin_targets
#export test_targets
#include mk/*.mk
.PHONY: all apps bin clean doc test
all: bin test apps
bin:
cd bin && $(MAKE) all
apps: bin
cd apps && $(MAKE) all
test: bin
cd test && $(MAKE) all
doc:
mkdir -p $(docpath)
doxygen
clean:
cd bin && $(MAKE) clean
cd apps && $(MAKE) clean
cd test && $(MAKE) clean
doc-clean:
$(RM) -r $(docpath)
realclean: clean doc-clean