Makefile 662 B

1234567891011121314151617181920212223242526272829
  1. RESULT := civicc
  2. PHASES := load parse print desug constant_propagation context_analysis \
  3. expand_dims typecheck dim_reduce bool_op extern_vars
  4. SOURCES := ast.ml stringify.mli stringify.ml util.mli util.ml lexer.mll \
  5. parser.mly $(patsubst %,phases/%.ml,$(PHASES)) main.ml
  6. PRE_TARGETS := ast.cmi ast.o stringify.cmi stringify.o util.cmi util.o
  7. LIBS := str unix
  8. CIVAS := ../bin32/civas
  9. CIVVM := ../bin32/civvm
  10. CIVCC := ../civicc
  11. OCAMLFLAGS := -g
  12. OCAMLYACC := menhir
  13. YFLAGS := --infer
  14. all: native-code
  15. clean:: myclean
  16. .PHONY: myclean
  17. myclean:
  18. rm -f a.out
  19. check:
  20. @cd test; CIVAS=$(CIVAS) CIVVM=$(CIVVM) CIVCC=$(CIVCC) bash run.bash
  21. include OCamlMakefile