TESTS_ENVIRONMENT = ./test_load
TESTS = $(tests)
-OCAMLPACKAGES = -package unix,camlp4.lib
+OCAMLPACKAGES = -package unix,num,camlp4.lib,calendar,rpc -I ../../lib
-OCAMLCFLAGS = \
- -g -warn-error CDEFLMPSUVYZX \
- -I +camlp4 -I ../../daemon \
- $(OCAMLPACKAGES)
+OCAMLCFLAGS = -g -warn-error CDEFLMPSUVYZX $(OCAMLPACKAGES)
OCAMLOPTFLAGS = $(OCAMLCFLAGS)
-PP = -pp '$(CAMLP4O) ../../daemon/pa_when.cmo'
+PP = -pp '$(CAMLP4O) ../../lib/pa_when.cmo'
-test_load: test_load.cmo
+test_load: test_load.cmo ../../lib/whenlib.cma
$(OCAMLFIND) ocamlc $(OCAMLCFLAGS) -linkpkg whenlib.cma $< -o $@
# Rules for all OCaml files.
-%.cmi: %.mli ../../daemon/pa_when.cmo
+%.cmi: %.mli ../../lib/pa_when.cmo ../../lib/whenlib.cma
$(OCAMLFIND) ocamlc $(OCAMLCFLAGS) $(PP) -c $< -o $@
-%.cmo: %.ml ../../daemon/pa_when.cmo
+%.cmo: %.ml ../../lib/pa_when.cmo ../../lib/whenlib.cma
$(OCAMLFIND) ocamlc $(OCAMLCFLAGS) $(PP) -c $< -o $@
-#%.cmx: %.ml ../../daemon/pa_when.cmo
+#%.cmx: %.ml ../../lib/pa_when.cmo ../../lib/whenlib.cma
# $(OCAMLFIND) ocamlopt $(OCAMLOPTFLAGS) $(PP) -c $< -o $@
SUFFIXES = .cmo .cmi .cmx .ml .mli .mll .mly
@for f in $(check_SCRIPTS); do \
b=`basename $$f .cmo`; \
echo "Test: $$b.ml"; \
- camlp4o ../../daemon/pa_when.cmo -printer pr_o.cmo $$b.ml; \
+ camlp4o ../../lib/pa_when.cmo -printer pr_o.cmo $$b.ml; \
done
CLEANFILES = *.cmi *.cmo *.cmx *.cma *.cmxa *~ test_load