1 # ------------------------------
3 # ------------------------------
8 UseCamlp4(pa_oo pa_openin)
10 OCAMLINCLUDES += $(ROOT)/base
11 OCAML_LIBS += $(ROOT)/base/base
15 OCAMLINCLUDES += $(absname ast/)
16 OCAML_LIBS += $(absname ast/ast)
17 .SUBDIRS: parser filter codegen
29 OCamlProgram($(PROGRAM), main $(FILES))
30 AddDepend(codegen.cmx,$(ROOT)/swflib.cmx)
33 # ------------------------------
35 # ------------------------------
36 .DEFAULT: habc-scm$(EXE)
37 .PHONY: clean integrate integrate-detail
39 ocaml-clean *.abc habc-scm$(EXE)
41 integrate: habc-scm$(EXE)
42 sh example/test.sh $(absname $(ROOT)) example/*.scm
43 sh example/module/run.sh $(absname $(ROOT))
45 integrate-detail: habc-scm$(EXE)
46 foreach(x, $(ls example/*.scm))
47 (sh example/test.sh $(absname $(ROOT)) $(x); true) | tee -a $(ROOT)/integrate.log
48 sh example/module/run.sh $(absname $(ROOT)) | tee -a $(ROOT)/integrate.log