OSDN Git Service

update swf header
[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: ast
13
14 CPPFLAGS+=-I../ast
15 OCAMLINCLUDES += $(absname ast/)
16 OCAML_LIBS    += $(absname ast/ast)
17 .SUBDIRS: parser filter codegen
18
19 FILES[] =
20         interCode
21         parser
22         codegen
23         filter
24         $(ROOT)/config
25         $(ROOT)/swflib
26
27 PROGRAM = habc-scm
28
29 OCamlProgram($(PROGRAM), main $(FILES))
30 AddDepend(codegen.cmx,$(ROOT)/swflib.cmx)
31
32
33 # ------------------------------
34 # phony
35 # ------------------------------
36 .DEFAULT: habc-scm$(EXE)
37 .PHONY: clean integrate integrate-detail
38 clean:
39         ocaml-clean *.abc habc-scm$(EXE)
40
41 integrate: habc-scm$(EXE)
42         sh example/test.sh $(absname $(ROOT)) example/*.scm
43         sh example/module/run.sh $(absname $(ROOT))
44
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