|
|
@@ -1,4 +1,5 @@
|
|
|
-RESULT := civicc
|
|
|
+# Config for OCamlMakefile
|
|
|
+RESULT := civcc
|
|
|
GLOBALS := types globals stringify util
|
|
|
PHASES := load parse print desug context typecheck dimreduce boolop constprop \
|
|
|
unroll index assemble peephole output
|
|
|
@@ -9,15 +10,10 @@ SOURCES := $(addsuffix .mli,$(GLOBALS)) $(addsuffix .ml,$(GLOBALS)) \
|
|
|
PRE_TARGETS := types.ml $(addsuffix .cmi,$(GLOBALS))
|
|
|
LIBS := str unix
|
|
|
|
|
|
-# Set debugging flag to enable exception backtraces for OCAMLRUNPARAM=b
|
|
|
-OCAMLFLAGS := -g
|
|
|
-
|
|
|
-OCAMLYACC := menhir
|
|
|
-YFLAGS := --infer --explain
|
|
|
-
|
|
|
+# Other config
|
|
|
CIVAS := bin32/civas
|
|
|
CIVVM := bin32/civvm
|
|
|
-CIVCC := ./civicc
|
|
|
+CIVCC := ./$(RESULT)
|
|
|
|
|
|
DIST_TGT := civicaml.tar.gz
|
|
|
DIST_FILES := $(RESULT) $(SOURCES) Makefile OCamlMakefile README.md test bin32 \
|
|
|
@@ -25,14 +21,19 @@ DIST_FILES := $(RESULT) $(SOURCES) Makefile OCamlMakefile README.md test bin32 \
|
|
|
|
|
|
TESTSUITE_TGT := testsuite.tar.gz
|
|
|
|
|
|
-.PHONY: all check dist testsuite myclean
|
|
|
+# Set debugging flag to enable exception backtraces for OCAMLRUNPARAM=b
|
|
|
+OCAMLFLAGS := -g
|
|
|
+
|
|
|
+OCAMLYACC := menhir
|
|
|
+YFLAGS := --infer --explain
|
|
|
|
|
|
+.PHONY: all check dist testsuite myclean
|
|
|
|
|
|
all: native-code
|
|
|
|
|
|
clean:: myclean
|
|
|
|
|
|
-# The Types module needs an implementation to stop ocamlc from complaining
|
|
|
+# The Types module needs an implementation file to stop ocamlc from complaining
|
|
|
types.ml: types.mli
|
|
|
cp $< $@
|
|
|
|