-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- build process with automake && autoconfig && configure for flop and cheap, boost and dumpgram binaries may be revived if used by anybody - adaptation of source files to use automatically build config.h - make the use of ICU really optional, i.e., make cheap work without ICU on demand. - corpus approximation (jxchg) output format provided anew - separate switches for unification and subsumption quickcheck computation - changed version mechanism to be supported by the auto... tools git-svn-id: https://pet.opendfki.de/repos/pet/main@225 4200e16c-5112-0410-ac55-d7fb557a720a
- Loading branch information
kiefer
committed
Nov 4, 2004
1 parent
b32d689
commit 33a876f
Showing
59 changed files
with
1,742 additions
and
330 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
SUBDIRS = flop cheap | ||
DIST_SUBDIRS = $(SUBDIRS) common borland | ||
EXTRA_DIST = BUGS CHANGELOG LICENSE README TODO \ | ||
doxyconfig.cheap doxyconfig.flop | ||
|
||
# For ebrowse (Emacs) | ||
BROWSE: | ||
echo `find $(topsrc_dir) -name '*.h' -print ` \ | ||
`find $(topsrc_dir) \( -name '*.c' -o -name '*.cpp' \) -print` | \ | ||
tr ' ' '\n'| ebrowse | ||
|
||
sign: dist | ||
gpg --detach-sign --armor $(distdir).tar.gz | ||
md5sum $(distdir).tar.gz | gpg --clearsign > $(distdir).tar.gz.md5sum | ||
|
||
# Dependencies: all source files of the distribution | ||
# Should be done when the distribution is made | ||
doc: flopdoc cheapdoc | ||
|
||
flopdoc: | ||
doxygen doxyconfig.flop | ||
|
||
cheapdoc: | ||
doxygen doxyconfig.cheap |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
UNIFIER = tomabechi ; | ||
YY = true ; | ||
|
||
TSDB = true ; | ||
ITSDBDIR = @ITSDBDIR@ ; | ||
|
||
ICU = true ; | ||
ICUDIR = @ICUDIR@ ; | ||
|
||
PSQLLEX = false ; | ||
|
||
ECL = true ; | ||
|
||
ROBUST = true ; | ||
#ROBUST = false ; | ||
#PROFILE = -pg ; | ||
|
||
CC = @CC@ ; | ||
C++ = @CXX@ ; | ||
|
||
# -g -a -pg are for debugging and profiling | ||
C++FLAGS += -g $(PROFILE) -Wall ; | ||
CFLAGS += -g $(PROFILE) -Wall ; | ||
|
||
LINK = g++ ; | ||
OPTIM = -O3 ; | ||
|
||
SEARCH_SOURCE += ../common ; | ||
|
||
if $(UNIFIER) = tomabechi | ||
{ | ||
DAGSOURCES = dag-io.cpp dag-common.cpp dag-arced.cpp dag-alloc.cpp | ||
dag-tomabechi.cpp failure.cpp qc.cpp ; | ||
DAGFLAGS = -DDAG_TOMABECHI -DQC_PATH_COMP ; | ||
} | ||
else if $(UNIFIER) = simple | ||
{ | ||
DAGSOURCES = dag-io.cpp dag-common.cpp dag-arced.cpp dag-alloc.cpp | ||
dag-simple.cpp ; | ||
DAGFLAGS = -DDAG_SIMPLE -DWROBLEWSKI2 ; | ||
} | ||
|
||
if $(ROBUST) = true | ||
{ | ||
DAGFLAGS += -DROBUST -DMARK_PERMANENT ; | ||
DAGSOURCES += rcu-types.cpp dag-chunk-alloc.cpp ; | ||
} | ||
|
||
COMMONSOURCES = bitcode.cpp chunk-alloc.cpp errors.cpp mfile.c | ||
lex-io.cpp lex-tdl.cpp settings.cpp fs.cpp dumper.cpp | ||
grammar-dump.cpp grammar.cpp types.cpp tsdb++.cpp | ||
utility.cpp hash.cpp ; | ||
|
||
PARSESOURCES = parse.cpp lexicon.cpp item.cpp task.cpp chart.cpp | ||
agenda.cpp tokenizer.cpp options.cpp postags.cpp | ||
inputtoken.cpp inputchart.cpp paths.cpp mrs.cpp sm.cpp ; | ||
|
||
CHEAPSOURCES = cheap.cpp $(DAGSOURCES) $(COMMONSOURCES) $(PARSESOURCES) ; | ||
|
||
C++FLAGS += $(DAGFLAGS) ; | ||
|
||
if $(TSDB) = true | ||
{ | ||
C++FLAGS += -DTSDBAPI -DTSDBFILEAPI -DSOCKET_INTERFACE ; | ||
HDRS += $(ITSDBDIR)/include ; | ||
} | ||
|
||
if $(ICU) = true | ||
{ | ||
C++FLAGS += -DICU -DONLINEMORPH ; | ||
HDRS += $(ICUDIR)/include ; | ||
CHEAPSOURCES += unicode.cpp morph.cpp ; | ||
} | ||
|
||
if $(YY) = true | ||
{ | ||
CHEAPSOURCES += k2y.cpp yy.cpp ; | ||
C++FLAGS += -DYY ; | ||
} | ||
|
||
if $(PSQLLEX) = true | ||
{ | ||
CHEAPSOURCES += psqllex.cpp ; | ||
C++FLAGS += -DPSQLLEX ; | ||
} | ||
|
||
if $(ECL) = true | ||
{ | ||
CHEAPSOURCES += petecl.c petmrs.c cppbridge.cpp ; | ||
HDRS += /proj/contrib/lib/ecl/h ; | ||
C++FLAGS += -DECL ; | ||
CCFLAGS on petecl.o += -Dlinux -fstrict-aliasing ; | ||
CCFLAGS on rmrs.o += -Dlinux -fstrict-aliasing ; | ||
} | ||
|
||
C++FLAGS += -DHASH_MAP_AVAIL -DUSEMMAP ; | ||
|
||
HDRS += . ; | ||
|
||
LINKLIBS on cheap = -lm -lstdc++ -liberty $(PROFILE) ; | ||
|
||
if $(TSDB) = true | ||
{ | ||
LINKFLAGS on cheap += -L$(ITSDBDIR)/lib/linux -Xlinker -rpath -Xlinker $(ITSDBDIR)/lib/linux ; | ||
LINKLIBS on cheap += -litsdb -lpvm3 ; | ||
} | ||
|
||
if $(ICU) = true | ||
{ | ||
LINKFLAGS on cheap += -L$(ICUDIR)/lib -Xlinker -rpath -Xlinker $(ICUDIR)/lib ; | ||
LINKLIBS on cheap += -licuuc -licui18n -licudata -lpthread -ldl ; | ||
} | ||
|
||
if $(LEXDB) = true | ||
{ | ||
LINKLIBS on cheap += -lpq ; | ||
} | ||
|
||
if $(ECL) = true | ||
{ | ||
LINKLIBS on cheap += -lecl -lclos -llsp -lgc -ldl -lgmp -lmrs ; | ||
LINKFLAGS on cheap += -L/proj/contrib/lib/ecl -Wl,--export-dynamic ; | ||
} | ||
|
||
Main cheap : $(CHEAPSOURCES) ; | ||
|
||
|
||
if $(TSDB) = false | ||
{ | ||
DUMPGRAMSOURCES = dumpgram.cpp errors.cpp grammar-dump.cpp dumper.cpp ; | ||
Main dumpgram : $(DUMPGRAMSOURCES) ; | ||
} |
Oops, something went wrong.