Commits

Sébastien Ferré committed 0c5bd38

[makefile] using ocamlfind for libraries

Comments (0)

Files changed (1)

+OCAMLFIND=/local/ferre/.opam/system/bin/ocamlfind
 OCAMLLEX=ocamllex
 CMO=cmx
 CMA=cmxa
-OCAMLC=ocamlopt
-INCLUDES= -I +../pkg-lib/lablgtk2 -I +../pkg-lib/xml-light -I ../../lib -I ../../lib/dcg -I ../../lib/ipp      # all relevant -I options here
+OCAMLC=$(OCAMLFIND) ocamlopt
+INCLUDES= -package xml-light -package lablgtk2 -I ../../lib -I ../../lib/dcg -I ../../lib/ipp      # all relevant -I options here
 OCAMLFLAGS= -pp "camlp4o -I ../../lib/dcg -I ../../lib/ipp pa_dcg.cmo pa_ipp.cmo" -w usy -thread $(INCLUDES)    # add other options for ocamlc here
 OCAMLFLAGS_NOCAMLP4= -thread -w sy $(INCLUDES)    # add other options for ocamlc here