+LIBRARIES = $(shell $(OCAMLFIND) query -recursive -predicates "byte $(PREDICATES)" -format "%d/%a" $(REQUIRES))
+LIBRARIES_OPT = $(shell $(OCAMLFIND) query -recursive -predicates "native $(PREDICATES)" -format "%d/%a" $(REQUIRES))
+TEST_LIBRARIES = $(shell $(OCAMLFIND) query -recursive -predicates "byte $(PREDICATES)" -format "%d/%a" $(TEST_REQUIRES))
+TEST_LIBRARIES_OPT = $(shell $(OCAMLFIND) query -recursive -predicates "native $(PREDICATES)" -format "%d/%a" $(TEST_REQUIRES))
+
+all: styles gTopLevel
+opt: styles gTopLevel.opt
+
+start:
+ $(MAKE) -C ../hbugs/ start
+stop:
+ $(MAKE) -C ../hbugs/ stop
+
+INTERFACE_FILES = \
+ proofEngine.mli \
+ logicalOperations.mli \
+ oldDisambiguate.mli \
+ disambiguatingParser.mli \
+ termEditor.mli \
+ texTermEditor.mli \
+ xmlDiff.mli \
+ chosenTransformer.mli \
+ termViewer.mli \
+ invokeTactics.mli \
+ hbugs.mli \
+ chosenTermEditor.mli \
+ helmGtkLogger.mli
+
+DEPOBJS = \
+ $(INTERFACE_FILES) $(INTERFACE_FILES:%.mli=%.ml) \
+ gTopLevel.ml regtest.ml testlibrary.ml batchParser.ml batchParser.mli
+
+TOPLEVELOBJS = $(INTERFACE_FILES:%.mli=%.cmo) gTopLevel.cmo
+TESTOBJS = \
+ oldDisambiguate.cmo \
+ disambiguatingParser.cmo \
+ batchParser.cmo
+REGTESTOBJS = $(TESTOBJS) regtest.cmo
+TESTLIBOBJS = $(TESTOBJS) testlibrary.cmo
+
+$(INTERFACE_FILES:%.mli=%.cmo): $(LIBRARIES)
+$(INTERFACE_FILES:%.mli=%.cmx): $(LIBRARIES_OPT)
+
+styles:
+ @echo "***********************************************************************"
+ @if [ -d stylesheets -a -d meta_stylesheets ] ; then echo -e "* stylesheets and metastylesheets found: *\\n* I will create the request hyperlinks in styles *" ; else echo -e "* stylesheets or meta_stylesheets not found: *\\n* you should check-out the two directories from the MoWGLI repository *" ; exit -1 ; fi
+ @echo "***********************************************************************"
+ mkdir styles
+ (cd styles && for i in ../stylesheets/*.xsl ; do ln -s $$i; done)
+ (cd styles && for i in ../stylesheets/generated/*.xsl ; do ln -s $$i; done)
+ (cd styles && rm rootcontent.xsl && ln -s ../rootcontent.xsl)
+