mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-24 07:38:46 +00:00
Pre-sources
This commit is contained in:
parent
9140263a3f
commit
8521ff30fa
1 changed files with 3 additions and 2 deletions
|
|
@ -2,7 +2,8 @@ TOPFILE = lamac
|
|||
OCAMLC = ocamlfind c
|
||||
OCAMLOPT = ocamlfind opt
|
||||
OCAMLDEP = ocamlfind dep
|
||||
SOURCES = version.ml stdpath.ml Language.ml SM.ml X86.ml Driver.ml
|
||||
PRE_SOURCES = Language.ml SM.ml X86.ml Driver.ml
|
||||
SOURCES = version.ml stdpath.ml $(PRE_SOURCES)
|
||||
CAMLP5 = -syntax camlp5o -package ostap.syntax,GT.syntax.all
|
||||
PXFLAGS = $(CAMLP5)
|
||||
BFLAGS = -rectypes -g
|
||||
|
|
@ -14,7 +15,7 @@ metagen:
|
|||
echo "let version = \"Version `git rev-parse --abbrev-ref HEAD`, `git rev-parse --short HEAD`, `git rev-parse --verify HEAD |git show --no-patch --no-notes --pretty='%cd'`\"" > version.ml
|
||||
echo "let path = \"`opam var share`/Lama\"" > stdpath.ml
|
||||
|
||||
.depend: $(SOURCES)
|
||||
.depend: $(PRE_SOURCES)
|
||||
$(OCAMLDEP) $(PXFLAGS) *.ml > .depend
|
||||
|
||||
$(TOPFILE): $(SOURCES:.ml=.cmx)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue