1 PACKAGES = lablgtk2.init
3 BUILDFLAGS = -package "$(PACKAGES)" -I ../
4 LINKFLAGS = $(BUILDFLAGS) -linkpkg
5 OCAMLC = ocamlfind ocamlc
6 OCAMLOPT = ocamlfind ocamlopt
12 test: test.ml ../$(PACKAGE).cma
13 $(OCAMLC) $(LINKFLAGS) $(PACKAGE).cma -o $@ $<
15 test.opt: test.ml ../$(PACKAGE).cmxa
16 $(OCAMLOPT) $(LINKFLAGS) $(PACKAGE).cmxa -o $@ $<
19 rm -f *.cm[iox] *.[ao] *.cmxa test test.opt