X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=Makefile;h=024552f4235ac84809756456e1beef260524cd64;hb=92455238a637876bec18bfdaed4f5342f4cbbd1f;hp=91daf4e27c1ca7acaa4b9dde0795b5c9a777fb57;hpb=aafe9afd804263ac5e28cb2e7857cc003e3c1d2d;p=SXSI%2Fxpathcomp.git diff --git a/Makefile b/Makefile index 91daf4e..024552f 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,12 @@ +INLINE=10 DEBUG=false PROFILE=true VERBOSE=false -BASESRC=custom.ml ptset.ml finiteCofinite.ml tag.ml tagSet.ml options.ml tree.ml -BASEMLI=sigs.mli ptset.mli finiteCofinite.mli tag.mli tagSet.mli options.mli tree.mli -MLSRCS = memory.ml $(BASESRC) ata.ml ulexer.ml xPath.ml main.ml -MLISRCS = memory.mli $(BASEMLI) ata.mli ulexer.mli xPath.mli +BASESRC=custom.ml ptset.ml finiteCofinite.ml tag.ml tagSet.ml options.ml tree.ml ata.ml +BASEMLI=sigs.mli ptset.mli finiteCofinite.mli tag.mli tagSet.mli options.mli tree.mli ata.mli +MLSRCS = memory.ml $(BASESRC) ulexer.ml xPath.ml main.ml +MLISRCS = memory.mli $(BASEMLI) ulexer.mli xPath.mli BASEOBJS= $(BASESRC:.ml=.cmx) BASEINT= $(BASEMLI:.ml=.cmi) MLOBJS = $(MLSRCS:.ml=.cmx) @@ -47,7 +48,7 @@ OCAMLOPT = ocamlopt -g -cc "$(CXX)" SYNT_DEBUG = -ppopt -DDEBUG else CXX = g++ -OCAMLOPT = ocamlopt -g -cc "$(CXX)" -ccopt -O3 -ccopt -std=c++0x -noassert -inline 10000 +OCAMLOPT = ocamlopt -cc "$(CXX)" -ccopt -O3 -ccopt -std=c++0x -noassert -inline $(INLINE) endif ifeq ($(PROFILE), true) SYNT_PROF = $(SYNT_DEBUG) -ppopt -DPROFILE @@ -108,12 +109,12 @@ clean: $(HIDE) rm -f *~ *.cm* *.[oa] *.so main .libs -testSuccint: $(CXXOBJECTS) XMLTree/XMLTree.a +timeXMLTree: $(CXXOBJECTS) XMLTree/XMLTree.a timeXMLTree.cpp mkdir -p .libs/ cd .libs/ && ar x ../XMLTree/XMLTree.a - $(CXX) -o testSuccint $(CXXFLAGS) $(CXXINCLUDES) XMLDocShredder.o \ -SXSIStorageInterface.o StorageInterface.o ./.libs/*.o \ -$(LIBS) testSuccint.cpp + $(CXX) -o timeXMLTree $(CXXFLAGS) $(CXXINCLUDES) XMLDocShredder.o \ + SXSIStorageInterface.o StorageInterface.o ./.libs/*.o \ + $(LIBS) timeXMLTree.cpp rm -rf .libs SXSIStorageInterface.o: SXSIStorageInterface.h SXSIStorageInterface.cpp StorageInterface.h