PROPCC = @OCAML_LIB_DIR@/lablgtk2/propcc
PREFIX =
OBJECTS_C = ml_gtk_mathview.o
-OBJECTS = gtkMathViewProps.cmo ogtkMathViewProps.cmo gtk_mathview.cmo gtkMathView.cmo gMathView.cmo gMathViewAux.cmo
+OBJECTS = gtkMathViewProps.cmo ogtkMathViewProps.cmo gtk_mathview.cmo gtkMathView.cmo gMathView.cmo gMathViewAux.cmo
OBJECTS_OPT = gtkMathViewProps.cmx ogtkMathViewProps.cmx gtkMathView.cmx gtk_mathview.cmx gMathView.cmx gMathViewAux.cmx
GENERATED_FILES = gtkMathViewProps.ml ogtkMathViewProps.ml
+NULL =
INST = \
- META gMathView.mli gMathView.cmi gtkMathView.cmi gtk_mathview.cmi \
- gtkMathViewProps.cmi ogtkMathViewProps.cmi \
- gMathViewAux.cmi gMathViewAux.mli
+ META \
+ gMathView.mli \
+ gMathView.cmi \
+ gtkMathView.cmi \
+ gtk_mathview.cmi \
+ gtkMathViewProps.cmi \
+ ogtkMathViewProps.cmi \
+ gMathViewAux.cmi \
+ gMathViewAux.mli \
+ $(NULL)
DIST_FILES = \
Makefile.in configure.in gMathView.ml gMathView.mli \
gMathViewAux.ml gMathViewAux.mli gtkMathView.ml \
DOC_FILES = AUTHORS COPYING ChangeLog NEWS README LICENSE
REQUIRES = gdome2 lablgtk2
PREDICATES =
-SHARED_LIBS = @GDOME_LIBS@ @GTKMATHVIEW_LIBS@ -lmlgdome
+SHARED_LIBS = @GDOME_LIBS@ @GTKMATHVIEW_LIBS@
OCAMLFIND = ocamlfind
OCAMLC = $(OCAMLFIND) ocamlc
TMPDIR = .test
TMPPKGDIR = $(TMPDIR)/$(PACKAGE)
-all: $(ARCHIVE).cma
-opt: $(ARCHIVE).cmxa
+all: $(ARCHIVE).cma lib$(ARCHIVE).a $(DLL)
+opt: $(ARCHIVE).cmxa $(ARCHIVE).a
test: $(TESTDIR)/test
test.opt: $(TESTDIR)/test.opt
world: all opt
$(OCAMLDEP) *.ml *.mli >.depend
include .depend
-$(ARCHIVE).cma $(DLL): $(OBJECTS) $(OBJECTS_C)
- $(OCAMLMKLIB) -o $(ARCHIVE) -L$(OCAML_STUB_DIR) $^ $(SHARED_LIBS)
-$(ARCHIVE).cmxa $(ARCHIVE).a: $(OBJECTS_OPT)
- $(OCAMLMKLIB) -o $(ARCHIVE) -L$(OCAML_STUB_DIR) $^ $(OBJECTS_C) $(SHARED_LIBS)
+$(ARCHIVE).cma: $(OBJECTS)
+ $(OCAMLMKLIB) -o $(ARCHIVE) $^ $(SHARED_LIBS)
+$(ARCHIVE).cmxa: $(OBJECTS_OPT)
+ $(OCAMLMKLIB) -o $(ARCHIVE) $^ $(SHARED_LIBS)
+lib$(ARCHIVE).a $(DLL): $(OBJECTS_C)
+ $(OCAMLMKLIB) -o $(ARCHIVE) $^ $(SHARED_LIBS)
$(TESTDIR)/test: $(OBJECTS_C) $(ARCHIVE).cma $(TESTDIR)/test.ml
mkdir -p $(TMPPKGDIR)
test ! -f $(ARCHIVE).cmxa || extra="$(ARCHIVE).a $(ARCHIVE).cmxa" ; \
if [ "$(PREFIX)" = "" ]; then \
$(OCAMLFIND) install \
- $(PACKAGE) $(OBJECTS_C) $(ARCHIVE).cma $(DLL) $(INST) $$extra; \
- ln -fs $(DLL) $(shell $(OCAMLFIND) printconf destdir)/stublibs/lib$(ARCHIVE).so; \
+ $(PACKAGE) $(ARCHIVE).cma lib$(ARCHIVE).a \
+ $(DLL) $(INST) $$extra; \
else \
$(OCAMLFIND) install -destdir $(PREFIX) \
- $(PACKAGE) $(OBJECTS_C) $(ARCHIVE).cma $(DLL) $(INST) $$extra; \
- ln -fs $(DLL) $(PREFIX)/stublibs/lib$(ARCHIVE).so; \
+ $(PACKAGE) $(ARCHIVE).cma lib$(ARCHIVE).a \
+ $(DLL) $(INST) $$extra; \
fi
uninstall: