-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
88 lines (58 loc) · 2.05 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
85
86
87
88
all: quackyducky lowparse 3d asn1
lowparse:
+$(MAKE) -C src/lowparse
3d: lowparse
+$(MAKE) -C src/3d
asn1: lowparse
+$(MAKE) -C src/ASN1 verify
quackyducky:
+$(MAKE) -C src/qd
gen-test: quackyducky
-rm tests/unit/*.fst tests/unit/*.fsti || true
bin/qd.exe -odir tests/unit tests/unittests.rfc
bin/qd.exe -low -odir tests/unit tests/bitcoin.rfc
lowparse-unit-test: lowparse
+$(MAKE) -C tests/lowparse
3d-unit-test: 3d
+$(MAKE) -C src/3d test
3d-doc-test: 3d
+$(MAKE) -C doc 3d
3d-test: 3d-unit-test 3d-doc-test
asn1-test: asn1
+$(MAKE) -C src/ASN1 test
lowparse-bitfields-test: lowparse
+$(MAKE) -C tests/bitfields
lowparse-test: lowparse-unit-test lowparse-bitfields-test
quackyducky-unit-test: gen-test lowparse
+$(MAKE) -C tests/unit
quackyducky-sample-test: quackyducky lowparse
+$(MAKE) -C tests/sample
quackyducky-sample-low-test: quackyducky lowparse
+$(MAKE) -C tests/sample_low
quackyducky-sample0-test: quackyducky lowparse
+$(MAKE) -C tests/sample0
quackyducky-test: quackyducky-unit-test quackyducky-sample-test quackyducky-sample0-test quackyducky-sample-low-test
test: all lowparse-test quackyducky-test 3d-test asn1-test
ci: test
clean-3d:
+$(MAKE) -C src/3d clean
clean-lowparse:
+$(MAKE) -C src/lowparse clean
clean-quackyducky:
+$(MAKE) -C src/qd clean
clean: clean-3d clean-lowparse clean-quackyducky
rm -rf bin
.PHONY: all gen verify test gen-test clean quackyducky lowparse lowparse-test quackyducky-test lowparse-fstar-test quackyducky-sample-test quackyducky-sample0-test quackyducky-unit-test package 3d 3d-test lowparse-unit-test lowparse-bitfields-test release everparse 3d-unit-test 3d-doc-test ci clean-3d clean-lowparse clean-quackyducky asn1 asn1-test
release:
+src/package/release.sh
# Windows binary package
package:
+src/package/package.sh -zip
# Windows binary package
package-noversion:
+src/package/package.sh -zip-noversion
everparse:
+src/package/package.sh -make
# For F* testing purposes, cf. FStarLang/FStar@fc30456a163c749843c50ee5f86fa22de7f8ad7a
lowparse-fstar-test:
+$(MAKE) -C src/lowparse fstar-test