requires="gdome2 lablgtk"
version="@VERSION@"
-archive(byte)="lablgtkmathview.cma ml_gtk_mathview.o"
-archive(native)="lablgtkmathview.cmxa ml_gtk_mathview.o"
+archive(byte)="lablgtkmathview.cma"
+archive(native)="lablgtkmathview.cmxa"
linkopts=""
all: $(ARCHIVE) $(ARCHIVE_SO) $(TESTDIR)/test
-opt: $(OBJECTS_C) $(ARCHIVE_OPT) $(ARCHIVE_A) $(ARCHIVE_SO) $(TESTDIR)/test.opt
+opt: $(OBJECTS_C) $(ARCHIVE_OPT) $(ARCHIVE_A) $(ARCHIVE_SO) #$(TESTDIR)/test.opt
dist:
rm -rf $(PACKAGE)-$(VERSION)
-predicates "$(PREDICATES)" -o $@ $^ \
-cclib "`glib-config --libs` `gdome-config --libs` `gtkmathview-config --libs`" -dllib -l$(PACKAGE)
$(ARCHIVE_OPT) $(ARCHIVE_A): $(OBJECTS_OPT)
+ INSTPATH=`ocamlfind query gdome2` ; \
$(OCAMLOPT) -a -package "$(REQUIRES)" \
-predicates "$(PREDICATES)" -o $@ $^ \
- -cclib "`glib-config --libs` `gdome-config --libs` `gtkmathview-config --libs`"
+ -cclib "`glib-config --libs` `gdome-config --libs` `gtkmathview-config --libs`" \
+ -cclib "`echo $$INSTPATH | sed "s/\\(.*\\)\\/gdome2/\\1/"`/$(PACKAGE)/$(ARCHIVE_SO)"
$(ARCHIVE_SO): $(OBJECTS_C)
gcc -shared -o $@ $< `gtkmathview-config --libs` -lmlgdome -L `ocamlfind query gdome2` -Xlinker -rpath -Xlinker `ocamlfind query gdome2`