| 1234567891011121314151617181920212223242526272829303132333435363738 |
- RESULT := civicc
- PHASES := load parse print desug constant_propagation context_analysis \
- expand_dims typecheck dim_reduce bool_op extern_vars assemble
- SOURCES := ast.ml stringify.mli stringify.ml util.mli util.ml lexer.mll \
- parser.mly $(patsubst %,phases/%.ml,$(PHASES)) main.ml
- PRE_TARGETS := ast.cmi ast.o stringify.cmi stringify.o util.cmi util.o
- LIBS := str unix
- OCAMLFLAGS := -g
- OCAMLYACC := menhir
- YFLAGS := --infer
- CIVAS := ../bin32/civas
- CIVVM := ../bin32/civvm
- CIVCC := ../civicc
- DIST_TGT := civicaml.tgz
- DIST_FILES := $(RESULT) $(SOURCES) Makefile OCamlMakefile README.md test
- .PHONY: myclean check dist
- all: native-code
- clean:: myclean
- myclean:
- rm -f a.out $(DIST_TGT)
- check:
- @cd test; CIVAS=$(CIVAS) CIVVM=$(CIVVM) CIVCC=$(CIVCC) bash run.bash
- dist: $(DIST_TGT)
- $(DIST_TGT): $(DIST_FILES)
- tar -czvf $@ $^
- include OCamlMakefile
|