-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
74 lines (60 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
69
70
71
72
73
74
SHELL = /bin/sh
prefix ?= /usr/local
insdir = $(DESTDIR)$(prefix)/include
srcdir = src
srcfls = $(patsubst $(srcdir)/%,%,$(shell find $(srcdir) -name *.hxx))
dstdrs = $(patsubst $(srcdir)/%,$(insdir)/%,$(shell find $(srcdir) -type d))
check:
@$(MAKE) -C test check
@$(MAKE) -C examples check
check-json:
@$(MAKE) -C test check-json
check-json-node:
@$(MAKE) -C test check-json-node
check-cbor:
@$(MAKE) -C test check-cbor
check-cbor-node:
@$(MAKE) -C test check-cbor-node
time:
@$(MAKE) -C test time
time-json:
@$(MAKE) -C test time-json
time-json-s1:
@$(MAKE) -C test time-json-s1
time-json-s2:
@$(MAKE) -C test time-json-s2
time-json-node-s1:
@$(MAKE) -C test time-json-node-s1
time-json-node-s2:
@$(MAKE) -C test time-json-node-s2
time-json-native-s1:
@$(MAKE) -C test time-json-native-s1
time-json-native-s2:
@$(MAKE) -C test time-json-native-s2
time-cbor:
@$(MAKE) -C test time-cbor
build:
@$(MAKE) -C test build
build-json:
@$(MAKE) -C test build-json
build-json-node:
@$(MAKE) -C test build-json-node
build-cbor:
@$(MAKE) -C test build-cbor
build-cbor-node:
@$(MAKE) -C test build-cbor-node
install:
@install -d $(dstdrs)
@for fl in $(srcfls) ; do \
install -p -m 0644 $(srcdir)/$$fl $(insdir)/$$fl ; \
done
uninstall:
@rm -fr $(insdir)/cxon
clean:
@$(MAKE) -C test clean
@$(MAKE) -C examples clean
.PHONY: check check-json check-json-node check-cbor check-cbor-node \
time time-json time-json-node time-json-native time-cbor \
build build-json build-json-node build-cbor build-cbor-node \
install uninstall \
clean