PREPROCOPTIONS = -pp camlp4o
PREREQ =
-OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)"
-OCAMLC = ocamlfind ocamlc $(OCAMLOPTIONS) $(PREPROCOPTIONS)
-OCAMLOPT = ocamlfind ocamlopt $(OCAMLOPTIONS) $(PREPROCOPTIONS)
-OCAMLDEP = ocamlfind ocamldep $(PREPROCOPTIONS)
+OCAMLOPTIONS = -package "$(REQUIRES)" -predicates "$(PREDICATES)" -thread
+OCAMLDEBUGOPTIONS = -g
+OCAMLFIND = ocamlfind
+OCAMLC = $(OCAMLFIND) ocamlc $(OCAMLDEBUGOPTIONS) $(OCAMLOPTIONS) $(PREPROCOPTIONS)
+OCAMLOPT = $(OCAMLFIND) opt $(OCAMLOPTIONS) $(PREPROCOPTIONS)
+OCAMLDEP = $(OCAMLFIND) ocamldep $(PREPROCOPTIONS)
OCAMLLEX = ocamllex
OCAMLYACC = ocamlyacc
ifeq ($(MAKECMDGOALS), opt)
$(IMPLEMENTATION_FILES:%.ml=%.cmi): $(LIBRARIES_OPT)
endif
+
+ifeq ($(MAKECMDGOALS),)
+ $(IMPLEMENTATION_FILES:%.ml=%.cmi): $(LIBRARIES)
+endif