OCamlProgram($(PROGRAM), main $(FILES))
AddDepend(codegen.cmx,$(ROOT)/swflib.cmx)
+
# ------------------------------
# phony
# ------------------------------
# test
OUNIT_LIBS+=astUtil
+OUNIT_LIBS+=$(ROOT)/swflib
OUnitTest(closureTrans , closureTrans module)
OUnitTest(codegenExpr , codegen)
# phony
.PHONY: clean
-.DEFAULT: $(OCamlPackage $(PROGRAM), $(FILES))
+.DEFAULT: $(MyOCamlPackage $(PROGRAM), $(FILES))
match_body.h: gen_inst$(EXE) instruction.txt
open Base
-open Asm
-open Cpool
+
open Codegen
open OUnit
open AstUtil
-open MethodType
+open Swflib
+open Swflib.MethodType
+open Swflib.Cpool
let qname ns x =
`QName ((`Namespace (String.concat "." ns)),x)
open OUnit
open Binding
open AstUtil
-open MethodType
+open Swflib
+open Swflib.MethodType
let join xs =
String.concat "." xs
OUnitTest(rename, rename)
# phony
-.DEFAULT: $(OCamlPackage $(PROGRAM), $(FILES))
+.DEFAULT: $(MyOCamlPackage $(PROGRAM), $(FILES))
.PHONY: clean
clean:
ocaml-clean
# phony
.PHONY: clean
-.DEFAULT: $(OCamlPackage $(PROGRAM), $(FILES))
+.DEFAULT: $(MyOCamlPackage $(PROGRAM), $(FILES))
clean:
ocaml-clean closTrans.mli
OCAMLOPT = ocamlopt -for-pack $(capitalize $(basename $(PROGRAM)))
OCAMLOPTLINK= ocamlopt
-.DEFAULT: $(OCamlPackage $(PROGRAM), $(FILES))
+.DEFAULT: $(MyOCamlPackage $(PROGRAM), $(FILES))
OCamlProgram(gen_inst,gen_inst)
OCamlProgram(gen_typemap,gen_typemap)