forked from DeepSpec/dsss17
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (31 loc) · 1.08 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
# Written by Lucas Adam Michael Paul <[email protected]>
COQDOCFLAGS := -interpolate -utf8 -parse-comments
DSSSMakefile: DSSSCoqProject compcert/Makefile.config
-mv -f $@ [email protected]
"$(COQBIN)coq_makefile" -f $< -o $@
include DSSSMakefile
# Before we can recurse into compcert/ or coqrel/, we need to configure
compcert/Makefile.config coqrel/Makefile:
@echo "You need to run ./configure first"
@false
# Some files in compcert require preprocessing
VPFILES:=compcert/arm/ConstpropOp.vp\
compcert/arm/SelectLong.vp\
compcert/arm/SelectOp.vp\
compcert/backend/SelectDiv.vp\
compcert/backend/SplitLong.vp\
compcert/powerpc/ConstpropOp.vp\
compcert/powerpc/SelectLong.vp\
compcert/powerpc/SelectOp.vp\
compcert/x86/ConstpropOp.vp\
compcert/x86/SelectLong.vp\
compcert/x86/SelectOp.vp
VGENFILES=$(VPFILES:.vp=.v)
$(VGENFILES): .depend-stamp
.depend-stamp: %.v: compcert/Makefile.config %.vp
make -C compcert $(patsubst compcert/%,%,$(VGENFILES))
touch .depend-stamp
clean::
- rm .depend-stamp
$(addsuffix .d,$(VFILES)): $(VGENFILES)
depend: $(addsuffix .d,$(VFILES))