OSDN Git Service

enable warn-all
[happyabc/happyabc.git] / scm / OMakefile
1 # ------------------------------
2 # build
3 # ------------------------------
4 OCAMLPACKS[] =
5      extlib
6      str
7      oUnit
8 UseCamlp4(pa_oo pa_openin)
9
10 OCAMLINCLUDES += $(ROOT)/base
11 OCAML_LIBS    += $(ROOT)/base/base
12 .SUBDIRS: type
13
14 CPPFLAGS+=-I../type
15 OCAMLINCLUDES += $(absname type/)
16 OCAML_LIBS    += $(absname type/type)
17 .SUBDIRS: parser filter codegen
18
19 FILES[] =
20         interCode
21         parser
22         codegen
23         filter
24         $(ROOT)/config
25
26 PROGRAM = habc-scm
27
28 OCamlProgram($(PROGRAM), main $(FILES))
29
30 # ------------------------------
31 # phony
32 # ------------------------------
33 .DEFAULT: habc-scm$(EXE)
34 .PHONY: clean integrate integrate-detail
35 clean:
36         ocaml-clean *.abc habc-scm$(EXE)
37
38 integrate: habc-scm$(EXE)
39         sh example/test.sh $(absname $(ROOT)) example/*.scm
40         sh example/module/run.sh $(absname $(ROOT))
41
42 integrate-detail: habc-scm$(EXE)
43         foreach(x, $(ls example/*.scm))
44           (sh example/test.sh $(absname $(ROOT)) $(x); true) | tee -a $(ROOT)/integrate.log
45         sh example/module/run.sh $(absname $(ROOT)) | tee -a $(ROOT)/integrate.log
46
47