Makefile 516 B

12345678910111213141516171819202122
  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. OCAMLFLAGS := -g
  9. OCAMLYACC := menhir
  10. YFLAGS := --infer
  11. all: native-code
  12. clean:: myclean
  13. .PHONY: myclean
  14. myclean:
  15. rm -f a.out
  16. include OCamlMakefile