OCAMLCFLAGS = @OCAMLCFLAGS@
MENHIR = @MENHIR@
-.PHONY: clean distclean
+.PHONY:clean real_test test_native test
all: $(BIN)
%.native$(EXE):
$(REMAKE) OCAMLNATIVE="-native" $*.cmx $*.depx
- objects=`cat $*.depx | xargs | sed 's/[.]depx/.cmx/g'`
+ objects=`cat $*.depx | xargs | sed 's/[.]depx/.cmx/g'`
$(REMAKE) OCAMLNATIVE="-native" $objects #ensure all objects have been built
- $(OCAMLOPT) -o $@ $(OCAMLFLAGS) $(OCAMLOPTFLAGS) $(OCAMLFINDLINKFLAGS) $(OCAMLFINDFLAGS) $objects $*.cmx
+ $(OCAMLOPT) -o $@ $(OCAMLFLAGS) $(OCAMLOPTFLAGS) $(OCAMLFINDLINKFLAGS) $(OCAMLFINDFLAGS) $objects $*.cmx
%.byte$(EXE):
COMPILE="$(OCAMLOPT) $(OCAMLFLAGS) $(OCAMLOPTFLAGS) $(OCAMLFINDFLAGS)"
. tools/ocamldriver.sh
+
%.cmo %.depo:
base=$*
target=$@
## Tests
-test_byte: tools $(BYTE)
- $(REMAKE) TEST=$(BYTE) real_test
-
-test_native: tools $(BIN)
- $(REMAKE) TEST=$(BIN) real_test
-
-test: test_native
real_test:
+ echo $(TEST)
for i in tests/*.xml
do
for j in 1 2 3
done
done
+test_byte:
+ $(REMAKE) TEST=$(BYTE) real_test
+test_native:
+ $(REMAKE) TEST=$(BIN) real_test
+
+test: test_native
+
test_clean:
rm -rf tests/*.summary tests/*.results/*_"$(PACKAGE)"_*.*
%.summary:
+ $(REMAKE) tools $(TEST)
target=$@
base=$*
test=${base#*.xml.}