summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2013-01-05 09:59:26 +0000
committerGravatar xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e>2013-01-05 09:59:26 +0000
commit578cc2a54897e0c89425a56df7a173bebeee2382 (patch)
tree1ccb034fd4beebe618d4fad81abc5214677d8010 /Makefile
parentba8ad207029d3121d602a23aeeedd55b4dfd192a (diff)
Put clighgen files in exportclight/
Short doc in exportclight/README git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2089 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 10 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 716116c..9e04d95 100644
--- a/Makefile
+++ b/Makefile
@@ -33,6 +33,9 @@ OCB_OPTIONS_CHECKLINK=\
$(OCB_OPTIONS) \
-I checklink \
-use-ocamlfind
+OCB_OPTIONS_CLIGHTGEN=\
+ $(OCB_OPTIONS) \
+ -I exportclight
VPATH=$(DIRS)
GPATH=$(DIRS)
@@ -154,13 +157,13 @@ cchecklink.byte: driver/Configuration.ml
$(OCAMLBUILD) $(OCB_OPTIONS_CHECKLINK) Validator.d.byte \
&& rm -f cchecklink.byte && $(SLN) _build/checklink/Validator.d.byte cchecklink.byte
-clightgen: extraction/STAMP driver/Configuration.ml
- $(OCAMLBUILD) $(OCB_OPTIONS) Clightgen.native \
- && rm -f clightgen && $(SLN) _build/driver/Clightgen.native clightgen
+clightgen: extraction/STAMP driver/Configuration.ml exportclight/Clightdefs.vo
+ $(OCAMLBUILD) $(OCB_OPTIONS_CLIGHTGEN) Clightgen.native \
+ && rm -f clightgen && $(SLN) _build/exportclight/Clightgen.native clightgen
-clightgen.byte: extraction/STAMP driver/Configuration.ml
- $(OCAMLBUILD) $(OCB_OPTIONS) Clightgen.d.byte \
- && rm -f clightgen.byte && $(SLN) _build/driver/Clightgen.d.byte clightgen.byte
+clightgen.byte: extraction/STAMP driver/Configuration.ml exportclight/Clightdefs.vo
+ $(OCAMLBUILD) $(OCB_OPTIONS_CLIGHTGEN) Clightgen.d.byte \
+ && rm -f clightgen.byte && $(SLN) _build/exportclight/Clightgen.d.byte clightgen.byte
.PHONY: proof extraction ccomp ccomp.prof ccomp.byte runtime cchecklink cchecklink.byte clightgen clightgen.byte
@@ -222,7 +225,7 @@ endif
$(MAKE) -C runtime install
clean:
- rm -f $(patsubst %, %/*.vo, $(DIRS))
+ rm -f $(patsubst %, %/*.vo, $(DIRS) exportclight)
rm -f ccomp ccomp.byte cchecklink cchecklink.byte clightgen clightgen.byte
rm -rf _build
rm -rf doc/html doc/*.glob