diff options
author | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2007-08-06 08:45:25 +0000 |
---|---|---|
committer | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2007-08-06 08:45:25 +0000 |
commit | 94aea0609bb54f0fde29a558366b646b3b8d21a2 (patch) | |
tree | 2c81bb38c04b6ca50dd8588681fe68baa71a237a /extraction/Makefile | |
parent | c0bc146622528e3d52534909f5ae5cd2e375da8f (diff) | |
download | compcert-94aea0609bb54f0fde29a558366b646b3b8d21a2.tar.gz compcert-94aea0609bb54f0fde29a558366b646b3b8d21a2.zip |
Ajout et utilisation de caml/Driver.ml. Ajout ./configure. Revu Makefiles
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@387 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'extraction/Makefile')
-rw-r--r-- | extraction/Makefile | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/extraction/Makefile b/extraction/Makefile index cb7f4c5a..dd70d880 100644 --- a/extraction/Makefile +++ b/extraction/Makefile @@ -1,3 +1,5 @@ +include ../Makefile.config + FILES=\ Datatypes.ml Logic.ml Wf.ml Peano.ml Specif.ml Compare_dec.ml EqNat.ml \ Bool.ml CList.ml Sumbool.ml Setoid.ml BinPos.ml BinNat.ml BinInt.ml \ @@ -29,13 +31,12 @@ FILES=\ ../caml/Cil2Csyntax.ml \ ../caml/CMparser.ml ../caml/CMlexer.ml ../caml/CMtypecheck.ml \ ../caml/PrintCsyntax.ml ../caml/PrintPPC.ml \ - ../caml/Main2.ml -# ../caml/Configuration.ml ../caml/Driver.ml + ../caml/Configuration.ml ../caml/Driver.ml EXTRACTEDFILES:=$(filter-out ../caml/%, $(FILES)) GENFILES:=$(EXTRACTEDFILES) $(EXTRACTEDFILES:.ml=.mli) -CAMLINCL=-I ../caml -I ../cil/obj/x86_LINUX -I ../cil/obj/ppc_DARWIN +CAMLINCL=-I ../caml -I ../cil/obj/$(ARCHOS) OCAMLC=ocamlc -g $(CAMLINCL) OCAMLOPT=ocamlopt $(CAMLINCL) OCAMLDEP=ocamldep $(CAMLINCL) @@ -49,12 +50,12 @@ executables: ../ccomp ../ccomp.byt ../ccomp.byt: $(FILES:.ml=.cmo) $(OCAMLC) -o ../ccomp.byt $(OCAMLLIBS) $(FILES:.ml=.cmo) clean:: - rm -f ../ccomp + rm -f ../ccomp.byt ../ccomp: $(FILES:.ml=.cmx) $(OCAMLOPT) -o ../ccomp $(OCAMLLIBS:.cma=.cmxa) $(FILES:.ml=.cmx) clean:: - rm -f ../ccomp.opt + rm -f ../ccomp extraction: @rm -f $(GENFILES) @@ -89,6 +90,13 @@ beforedepend:: ../caml/CMlexer.ml clean:: rm -f ../caml/CMlexer.ml +../caml/Configuration.ml: ../Makefile.config + echo 'let stdlib_path = "$(LIBDIR)"' > ../caml/Configuration.ml + +beforedepend:: ../caml/Configuration.ml +clean:: + rm -f ../caml/Configuration.ml + .SUFFIXES: .ml .mli .cmo .cmi .cmx .mli.cmi: @@ -106,6 +114,10 @@ clean:: depend: beforedepend $(OCAMLDEP) ../caml/*.mli ../caml/*.ml *.mli *.ml > .depend +install: + install -d $(BINDIR) + install ../ccomp ../ccomp.byt $(BINDIR) + include .depend |