From 604296198618651957b1a7700b64a7c1739a0ef6 Mon Sep 17 00:00:00 2001 From: ygrek Date: Tue, 21 Oct 2008 10:19:25 +0300 Subject: [PATCH] finally it compiles --- lib-src/Makefile | 11 +---- lib-src/backend-tools/Makefile | 29 ------------- lib-src/backend-tools/Makefile.mk | 6 +++ lib-src/csp/Makefile | 45 -------------------- lib-src/csp/Makefile.mk | 10 +++++ lib-src/generic/Makefile | 31 -------------- lib-src/generic/Makefile.mk | 8 ++++ lib-src/graph/Makefile | 40 ------------------ lib-src/graph/Makefile.mk | 9 ++++ lib-src/graphtype/Makefile | 29 ------------- lib-src/graphtype/Makefile.mk | 6 +++ lib-src/hash/Makefile | 35 ---------------- lib-src/hash/Makefile.mk | 12 ++++++ lib-src/memory/Makefile.mk | 2 +- lib-src/numeric/Makefile | 43 ------------------- lib-src/numeric/Makefile.mk | 25 +++++++++++ lib-src/persist/Makefile | 43 ------------------- lib-src/persist/Makefile.mk | 28 +++++++++++++ lib-src/pretty/Makefile | 37 ---------------- lib-src/pretty/Makefile.mk | 8 ++++ lib-src/prettypr/Makefile | 35 ---------------- lib-src/prettypr/Makefile.mk | 6 +++ lib-src/prop/Makefile | 29 ------------- lib-src/prop/Makefile.mk | 6 +++ lib-src/rete/Makefile | 45 -------------------- lib-src/rete/Makefile.mk | 22 ++++++++++ lib-src/rewrite/Makefile | 81 ----------------------------------- lib-src/rewrite/Makefile.mk | 44 ++++++++++++++++++++ lib-src/strings/Makefile | 44 -------------------- lib-src/strings/Makefile.mk | 21 ++++++++++ lib-src/strings/quark.cc | 88 +++++++++++++++++++-------------------- lib-src/symbolic/Makefile | 47 --------------------- lib-src/symbolic/Makefile.mk | 14 +++++++ lib-src/trees/Makefile | 42 ------------------- lib-src/trees/Makefile.mk | 19 +++++++++ lib-src/tries/Makefile | 33 --------------- lib-src/tries/Makefile.mk | 10 +++++ lib-src/visualize/Makefile | 43 ------------------- lib-src/visualize/Makefile.mk | 13 ++++++ 39 files changed, 313 insertions(+), 786 deletions(-) delete mode 100644 lib-src/backend-tools/Makefile create mode 100644 lib-src/backend-tools/Makefile.mk delete mode 100644 lib-src/csp/Makefile create mode 100644 lib-src/csp/Makefile.mk delete mode 100644 lib-src/generic/Makefile create mode 100644 lib-src/generic/Makefile.mk delete mode 100644 lib-src/graph/Makefile create mode 100644 lib-src/graph/Makefile.mk delete mode 100644 lib-src/graphtype/Makefile create mode 100644 lib-src/graphtype/Makefile.mk delete mode 100644 lib-src/hash/Makefile create mode 100644 lib-src/hash/Makefile.mk delete mode 100644 lib-src/numeric/Makefile create mode 100644 lib-src/numeric/Makefile.mk delete mode 100644 lib-src/persist/Makefile create mode 100644 lib-src/persist/Makefile.mk delete mode 100644 lib-src/pretty/Makefile create mode 100644 lib-src/pretty/Makefile.mk delete mode 100644 lib-src/prettypr/Makefile create mode 100644 lib-src/prettypr/Makefile.mk delete mode 100644 lib-src/prop/Makefile create mode 100644 lib-src/prop/Makefile.mk delete mode 100644 lib-src/rete/Makefile create mode 100644 lib-src/rete/Makefile.mk delete mode 100644 lib-src/rewrite/Makefile create mode 100644 lib-src/rewrite/Makefile.mk delete mode 100644 lib-src/strings/Makefile create mode 100644 lib-src/strings/Makefile.mk delete mode 100644 lib-src/symbolic/Makefile create mode 100644 lib-src/symbolic/Makefile.mk delete mode 100644 lib-src/trees/Makefile create mode 100644 lib-src/trees/Makefile.mk delete mode 100644 lib-src/tries/Makefile create mode 100644 lib-src/tries/Makefile.mk delete mode 100644 lib-src/visualize/Makefile create mode 100644 lib-src/visualize/Makefile.mk diff --git a/lib-src/Makefile b/lib-src/Makefile index 4f106d6..7d8afd0 100644 --- a/lib-src/Makefile +++ b/lib-src/Makefile @@ -4,15 +4,9 @@ # ############################################################################# -############################################################################# -# The following parameters must be altered for each platform and compiler. -# The default is for g++ on Unix and MSDOG. -############################################################################# ADLIB_PATH := ../include ad := $(ADLIB_PATH)/ad CC := cl -#COPTS = -O2 -# g++ 2.6.x #COPTS = -O6 -fexternal-templates COPTS = /EHsc /nologo #COPTS = -g -fexternal-templates @@ -20,7 +14,6 @@ CINCLUDE = -I$(ADLIB_PATH) #AR = ar rv #RANLIB = ranlib LIBRARY = libprop.lib -#MFILE = Makefile RM = rm PROP = ../../bin/prop PROP_OPTS = -strict -report -I../../include @@ -40,8 +33,6 @@ AREAS := automata contain \ rewrite strings symbolic \ trees tries backend-tools visualize -AREAS := automata contain memory - lib: $(LIBRARY) #look for include files in @@ -85,7 +76,7 @@ d: $(LIBRARY): $(OBJS) $(RM) -f $(LIBRARY) - link /OUT:$(LIBRARY) $(OBJS) + link /LIB /OUT:$(LIBRARY) $(OBJS) @echo "Done" #%.cc: %.pcc diff --git a/lib-src/backend-tools/Makefile b/lib-src/backend-tools/Makefile deleted file mode 100644 index 8073902..0000000 --- a/lib-src/backend-tools/Makefile +++ /dev/null @@ -1,29 +0,0 @@ -############################################################################# -# The following parameters must be altered for each platform and compiler. -# The default is for g++ on Unix and MSDOG. -############################################################################# -ADLIB_PATH = ../../include -CC = g++ -COPTS = -O6 -CINCLUDE = -I$(ADLIB_PATH) - -ad = $(ADLIB_PATH)/AD -D = $(ADLIB_PATH)/AD/backend-tools - -OBJS = codeemit.$(OBJ) - -all: $(OBJS) - -codeemit.$(OBJ): codeemit.cc $D/codeemit.h ${ad}/hash/lhash.h - -%.$(OBJ): %.cc - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cc) - -%.$(OBJ): %.C - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.C) - -%.$(OBJ): %.cpp - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cpp) - -%.$(OBJ): %.cxx - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cxx) diff --git a/lib-src/backend-tools/Makefile.mk b/lib-src/backend-tools/Makefile.mk new file mode 100644 index 0000000..649e665 --- /dev/null +++ b/lib-src/backend-tools/Makefile.mk @@ -0,0 +1,6 @@ +D := $(ad)/backend-tools +S := backend-tools + +SRC += $S/codeemit.$(OBJ) + +$S/codeemit.$(OBJ): $S/codeemit.cc $D/codeemit.h ${ad}/hash/lhash.h diff --git a/lib-src/csp/Makefile b/lib-src/csp/Makefile deleted file mode 100644 index 0e967bc..0000000 --- a/lib-src/csp/Makefile +++ /dev/null @@ -1,45 +0,0 @@ -# -# A sample Makefile -# - -ADLIB_PATH = ../../include -CC = gcc -CINCLUDE = -I$(ADLIB_PATH) -COPTS = -O6 -#COPTS = -g -O6 -pg -PROP = prop -PROP_OPTS = -s - -D = $(ADLIB_PATH)/AD/csp -ad = $(ADLIB_PATH)/AD - -OBJS = trail.$(OBJ) logicalterm.$(OBJ) -SRC = trail.cc logicalterm.cc - -all: $(SRC) $(OBJS) - -src: $(SRC) - -trail.$(OBJ): trail.cc $D/logicalterm.h $D/trail.h $(ad)/memory/mem.h \ - $(ad)/memory/mempool.h $(ad)/generic/generic.h - -logicalterm.$(OBJ): logicalterm.cc $D/logicalterm.h $D/trail.h $(ad)/memory/mem.h \ - $(ad)/memory/mempool.h $(ad)/generic/generic.h - -%.$(OBJ): %.cc - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cc) - -%.$(OBJ): %.cpp - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cpp) - -%.$(OBJ): %.c++ - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.c++) - -%.$(OBJ): %.c - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.c) - -%.cc: %.pcc - $(PROP) $(PROP_OPTS) $(CINCLUDE) $(@:.cc=.pcc) - -%.h: %.ph - $(PROP) $(PROP_OPTS) $(CINCLUDE) $(@:.h=.ph) diff --git a/lib-src/csp/Makefile.mk b/lib-src/csp/Makefile.mk new file mode 100644 index 0000000..caedb29 --- /dev/null +++ b/lib-src/csp/Makefile.mk @@ -0,0 +1,10 @@ +D := $(ad)/csp +S := csp + +SRC += $S/trail.cc $S/logicalterm.cc + +$S/trail.$(OBJ): $S/trail.cc $D/logicalterm.h $D/trail.h $(ad)/memory/mem.h \ + $(ad)/memory/mempool.h $(ad)/generic/generic.h + +$S/logicalterm.$(OBJ): $S/logicalterm.cc $D/logicalterm.h $D/trail.h $(ad)/memory/mem.h \ + $(ad)/memory/mempool.h $(ad)/generic/generic.h diff --git a/lib-src/generic/Makefile b/lib-src/generic/Makefile deleted file mode 100644 index ba40759..0000000 --- a/lib-src/generic/Makefile +++ /dev/null @@ -1,31 +0,0 @@ -############################################################################# -# The following parameters must be altered for each platform and compiler. -# The default is for g++ on Unix and MSDOG. -############################################################################# -ADLIB_PATH = ../../include -CC = gcc -COPTS = -g -O -CINCLUDE = -I$(ADLIB_PATH) - -ad = $(ADLIB_PATH)/AD -D = $(ADLIB_PATH)/AD/generic - -OBJS = except.$(OBJ) generic.$(OBJ) tables.$(OBJ) - -all: $(OBJS) - -except.$(OBJ): except.cc $(D)/except.h -generic.$(OBJ): generic.cc $(D)/generic.h -tables.$(OBJ): tables.cc $(D)/tables.h $(D)/generic.h - -%.$(OBJ): %.cc - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cc) - -%.$(OBJ): %.cpp - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cpp) - -%.$(OBJ): %.cxx - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cxx) - -%.$(OBJ): %.C - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.C) diff --git a/lib-src/generic/Makefile.mk b/lib-src/generic/Makefile.mk new file mode 100644 index 0000000..f498a19 --- /dev/null +++ b/lib-src/generic/Makefile.mk @@ -0,0 +1,8 @@ +D := $(ad)/generic +S := generic + +SRC += $S/except.$(OBJ) $S/generic.$(OBJ) $S/tables.$(OBJ) + +$S/except.$(OBJ): $S/except.cc $(D)/except.h +$S/generic.$(OBJ): $S/generic.cc $(D)/generic.h +$S/tables.$(OBJ): $S/tables.cc $(D)/tables.h $(D)/generic.h diff --git a/lib-src/graph/Makefile b/lib-src/graph/Makefile deleted file mode 100644 index d50ef11..0000000 --- a/lib-src/graph/Makefile +++ /dev/null @@ -1,40 +0,0 @@ -############################################################################# -# The following parameters must be altered for each platform and compiler. -# The default is for g++ on Unix. -############################################################################# -ADLIB_PATH = ../../include -CC = gcc -COPTS = -O6 -CINCLUDE = -I$(ADLIB_PATH) - -ad = $(ADLIB_PATH)/AD -D = $(ADLIB_PATH)/AD/graph - -OBJS = graph.$(OBJ) node.$(OBJ) edge.$(OBJ) \ - graphaux.$(OBJ) - -all: $(OBJS) - -graph.$(OBJ): $(D)/graph_base.h $(D)/graph.h $(ad)/pretty/postream.h \ - graphinline.h -edge.$(OBJ): $(D)/graph_base.h $(D)/graph.h $(ad)/pretty/postream.h -node.$(OBJ): $(D)/graph_base.h $(D)/graph.h $(ad)/pretty/postream.h -graphaux.$(OBJ): $(D)/graph_base.h $(D)/graph.h $(D)/node.h $(D)/edge.h - -qa: qa.cc $(OBJS) - $(CC) $(COPTS) $(CINCLUDE) -o qa qa.cc *.$(OBJ) -liostream - -%.$(OBJ): %.cc - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cc) - -%.$(OBJ): %.cpp - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cpp) - -%.$(OBJ): %.cxx - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cxx) - -%.$(OBJ): %.C - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.C) - -%.$(OBJ): %.s - $(AS) $(@:.$(OBJ)=.s) -o $@ diff --git a/lib-src/graph/Makefile.mk b/lib-src/graph/Makefile.mk new file mode 100644 index 0000000..8f09a4f --- /dev/null +++ b/lib-src/graph/Makefile.mk @@ -0,0 +1,9 @@ +D := $(ad)/graph +S := graph + +SRC += $S/graph.$(OBJ) $S/node.$(OBJ) $S/edge.$(OBJ) $S/graphaux.$(OBJ) + +$S/graph.$(OBJ): $(D)/graph_base.h $(D)/graph.h $(ad)/pretty/postream.h $S/graphinline.h +$S/edge.$(OBJ): $(D)/graph_base.h $(D)/graph.h $(ad)/pretty/postream.h +$S/node.$(OBJ): $(D)/graph_base.h $(D)/graph.h $(ad)/pretty/postream.h +$S/graphaux.$(OBJ): $(D)/graph_base.h $(D)/graph.h $(D)/node.h $(D)/edge.h diff --git a/lib-src/graphtype/Makefile b/lib-src/graphtype/Makefile deleted file mode 100644 index 1a80233..0000000 --- a/lib-src/graphtype/Makefile +++ /dev/null @@ -1,29 +0,0 @@ -############################################################################# -# The following parameters must be altered for each platform and compiler. -# The default is for g++ on Unix and MSDOG. -############################################################################# -ADLIB_PATH = ../../include -CC = g++ -COPTS = -O6 -CINCLUDE = -I$(ADLIB_PATH) - -ad = $(ADLIB_PATH)/AD -D = $(ADLIB_PATH)/AD/graphtype - -OBJS = graphtype.$(OBJ) - -all: $(OBJS) - -graphtype.$(OBJ): graphtype.cc $(D)/graphtype.h $(ad)/generic/generic.h - -%.$(OBJ): %.cc - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cc) - -%.$(OBJ): %.C - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.C) - -%.$(OBJ): %.cpp - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cpp) - -%.$(OBJ): %.cxx - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cxx) diff --git a/lib-src/graphtype/Makefile.mk b/lib-src/graphtype/Makefile.mk new file mode 100644 index 0000000..3ec1bde --- /dev/null +++ b/lib-src/graphtype/Makefile.mk @@ -0,0 +1,6 @@ +D := $(ad)/graphtype +S := graphtype + +SRC += $S/graphtype.$(OBJ) + +$S/graphtype.$(OBJ): $S/graphtype.cc $(D)/graphtype.h $(ad)/generic/generic.h diff --git a/lib-src/hash/Makefile b/lib-src/hash/Makefile deleted file mode 100644 index 90845c8..0000000 --- a/lib-src/hash/Makefile +++ /dev/null @@ -1,35 +0,0 @@ -############################################################################# -# The following parameters must be altered for each platform and compiler. -# The default is for g++ on Unix and MSDOG. -############################################################################# -ADLIB_PATH = ../../include -CC = gcc -COPTS = -g -O -CINCLUDE = -I$(ADLIB_PATH) - -ad = $(ADLIB_PATH)/AD -D = $(ADLIB_PATH)/AD/hash - -OBJS = bhash.$(OBJ) chash.$(OBJ) dchash.$(OBJ) dhash.$(OBJ) hashfn.$(OBJ) lhash.$(OBJ) ohash.$(OBJ) - -all: $(OBJS) - -hashfn.$(OBJ): hashfn.cc $(D)/hashfn.h -bhash.$(OBJ): bhash.cc $(D)/bhash.h $(ad)/generic/ordering.h -chash.$(OBJ): chash.cc $(D)/chash.h $(ad)/generic/ordering.h -dchash.$(OBJ): dchash.cc $(D)/dchash.h $(ad)/generic/ordering.h -dhash.$(OBJ): dhash.cc $(D)/dhash.h $(ad)/generic/ordering.h -lhash.$(OBJ): lhash.cc $(D)/lhash.h $(ad)/generic/ordering.h -ohash.$(OBJ): ohash.cc $(D)/ohash.h $(ad)/generic/ordering.h - -%.$(OBJ): %.cc - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cc) - -%.$(OBJ): %.cpp - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cpp) - -%.$(OBJ): %.cxx - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cxx) - -%.$(OBJ): %.C - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.C) diff --git a/lib-src/hash/Makefile.mk b/lib-src/hash/Makefile.mk new file mode 100644 index 0000000..c47cbcb --- /dev/null +++ b/lib-src/hash/Makefile.mk @@ -0,0 +1,12 @@ +D := $(ad)/hash +S := hash + +SRC += $S/bhash.cc $S/chash.cc $S/dchash.cc $S/dhash.cc $S/hashfn.cc $S/lhash.cc $S/ohash.cc + +$S/hashfn.$(OBJ): $S/hashfn.cc $(D)/hashfn.h +$S/bhash.$(OBJ): $S/bhash.cc $(D)/bhash.h $(ad)/generic/ordering.h +$S/chash.$(OBJ): $S/chash.cc $(D)/chash.h $(ad)/generic/ordering.h +$S/dchash.$(OBJ): $S/dchash.cc $(D)/dchash.h $(ad)/generic/ordering.h +$S/dhash.$(OBJ): $S/dhash.cc $(D)/dhash.h $(ad)/generic/ordering.h +$S/lhash.$(OBJ): $S/lhash.cc $(D)/lhash.h $(ad)/generic/ordering.h +$S/ohash.$(OBJ): $S/ohash.cc $(D)/ohash.h $(ad)/generic/ordering.h diff --git a/lib-src/memory/Makefile.mk b/lib-src/memory/Makefile.mk index 7118214..6892202 100644 --- a/lib-src/memory/Makefile.mk +++ b/lib-src/memory/Makefile.mk @@ -2,7 +2,7 @@ D := $(ad)/memory S := memory SRC += $S/arena.cc $S/boundtag.cc $S/freelist.cc $S/mempool.cc $S/sysmem.cc $S/cleanmem.cc -SRC += $S/ptr.cc $S/strpool.cc $S/ref.cc $S/variant.cc $S/mem.cc $S/variant.cc $S/buddysys.cc +SRC += $S/ptr.cc $S/strpool.cc $S/ref.cc $S/variant.cc $S/mem.cc $S/buddysys.cc #blacklistmem.$(OBJ) $S/buddysys.$(OBJ): $S/buddysys.cc $D/buddy.h $(ad)/generic/generic.h $(ad)/generic/tables.h $D/mem.h diff --git a/lib-src/numeric/Makefile b/lib-src/numeric/Makefile deleted file mode 100644 index 1dbf44c..0000000 --- a/lib-src/numeric/Makefile +++ /dev/null @@ -1,43 +0,0 @@ -############################################################################# -# The following parameters must be altered for each platform and compiler. -# The default is for g++ on Unix and MSDOG. -############################################################################# -ADLIB_PATH = ../../include -CC = gcc -COPTS = -g -O6 -CINCLUDE = -I$(ADLIB_PATH) - -ad = $(ADLIB_PATH)/AD -D = $(ADLIB_PATH)/AD/numeric - -#OBJS = bcd.$(OBJ) bigint.$(OBJ) complex.$(OBJ) fixpt.$(OBJ) gauss.$(OBJ) gaussint.$(OBJ) -OBJS = bcd.$(OBJ) bigint.$(OBJ) fixpt.$(OBJ) gauss.$(OBJ) -OBJS2 = matrix.$(OBJ) pmatrix.$(OBJ) polynom.$(OBJ) rabin.$(OBJ) ratio.$(OBJ) simplex.$(OBJ) solovay.$(OBJ) -OBJS3 = tensor.$(OBJ) trapez.$(OBJ) vector.$(OBJ) vector3d.$(OBJ) z.$(OBJ) - -all: $(OBJS) $(OBJS2) $(OBJS3) - -bcd.$(OBJ): bcd.cc $D/bcd.h $(ad)/generic/generic.h -bigint.$(OBJ): bigint.cc $D/bigint.h $(ad)/generic/generic.h -complex.$(OBJ): complex.cc $D/complex.h $(ad)/generic/generic.h -fixpt.$(OBJ): fixpt.cc $D/fixpt.h $(ad)/generic/generic.h -gauss.$(OBJ): gauss.cc $D/gauss.h $(ad)/generic/generic.h -gaussint.$(OBJ): gaussint.cc $D/gaussint.h $(ad)/generic/generic.h -matrix.$(OBJ): matrix.cc $D/matrix.h $(ad)/generic/generic.h -pmatrix.$(OBJ): pmatrix.cc $D/pmatrix.h $(ad)/generic/generic.h -polynom.$(OBJ): polynom.cc $D/polynom.h $(ad)/generic/generic.h -rabin.$(OBJ): rabin.cc $D/primes.h $D/bigint.h $(ad)/generic/generic.h -ratio.$(OBJ): ratio.cc $D/ratio.h $D/bigint.h $(ad)/generic/generic.h -simplex.$(OBJ): simplex.cc $D/simplex.h $(ad)/generic/generic.h -solovay.$(OBJ): solovay.cc $D/primes.h $D/bigint.h $(ad)/generic/generic.h -tensor.$(OBJ): tensor.cc $D/tensor.h $(ad)/generic/generic.h -trapez.$(OBJ): trapez.cc $D/trapez.h -vector.$(OBJ): vector.cc $D/vector.h $(ad)/generic/generic.h -vector3d.$(OBJ): vector3d.cc $D/vector3d.h $(ad)/generic/generic.h -z.$(OBJ): z.cc $D/z.h $(ad)/generic/generic.h - -%.$(OBJ): %.cc - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cc) - -%.$(OBJ): %.C - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.C) diff --git a/lib-src/numeric/Makefile.mk b/lib-src/numeric/Makefile.mk new file mode 100644 index 0000000..8aa87f0 --- /dev/null +++ b/lib-src/numeric/Makefile.mk @@ -0,0 +1,25 @@ +D := $(ad)/numeric +S := numeric + +SRC += $S/bcd.cc $S/bigint.cc $S/fixpt.cc $S/gauss.cc +SRC += $S/matrix.cc $S/pmatrix.cc $S/polynom.cc $S/rabin.cc $S/ratio.cc $S/simplex.cc $S/solovay.cc +SRC += $S/tensor.cc $S/trapez.cc $S/vector.cc $S/vector3d.cc $S/z.cc + +$S/bcd.$(OBJ): $S/bcd.cc $D/bcd.h $(ad)/generic/generic.h +$S/bigint.$(OBJ): $S/bigint.cc $D/bigint.h $(ad)/generic/generic.h +$S/complex.$(OBJ): $S/complex.cc $D/complex.h $(ad)/generic/generic.h +$S/fixpt.$(OBJ): $S/fixpt.cc $D/fixpt.h $(ad)/generic/generic.h +$S/gauss.$(OBJ): $S/gauss.cc $D/gauss.h $(ad)/generic/generic.h +$S/gaussint.$(OBJ): $S/gaussint.cc $D/gaussint.h $(ad)/generic/generic.h +$S/matrix.$(OBJ): $S/matrix.cc $D/matrix.h $(ad)/generic/generic.h +$S/pmatrix.$(OBJ): $S/pmatrix.cc $D/pmatrix.h $(ad)/generic/generic.h +$S/polynom.$(OBJ): $S/polynom.cc $D/polynom.h $(ad)/generic/generic.h +$S/rabin.$(OBJ): $S/rabin.cc $D/primes.h $D/bigint.h $(ad)/generic/generic.h +$S/ratio.$(OBJ): $S/ratio.cc $D/ratio.h $D/bigint.h $(ad)/generic/generic.h +$S/simplex.$(OBJ): $S/simplex.cc $D/simplex.h $(ad)/generic/generic.h +$S/solovay.$(OBJ): $S/solovay.cc $D/primes.h $D/bigint.h $(ad)/generic/generic.h +$S/tensor.$(OBJ): $S/tensor.cc $D/tensor.h $(ad)/generic/generic.h +$S/trapez.$(OBJ): $S/trapez.cc $D/trapez.h +$S/vector.$(OBJ): $S/vector.cc $D/vector.h $(ad)/generic/generic.h +$S/vector3d.$(OBJ): $S/vector3d.cc $D/vector3d.h $(ad)/generic/generic.h +$S/z.$(OBJ): $S/z.cc $D/z.h $(ad)/generic/generic.h diff --git a/lib-src/persist/Makefile b/lib-src/persist/Makefile deleted file mode 100644 index 656e1c4..0000000 --- a/lib-src/persist/Makefile +++ /dev/null @@ -1,43 +0,0 @@ -############################################################################# -# The following parameters must be altered for each platform and compiler. -# The default is for g++ on Unix and MSDOG. -############################################################################# -ADLIB_PATH = ../../include -CC = gcc -COPTS = -O6 -CINCLUDE = -I$(ADLIB_PATH) - -ad = $(ADLIB_PATH)/AD -D = $(ADLIB_PATH)/AD/persist - -OBJS = pstream.$(OBJ) pfactory.$(OBJ) pistream.$(OBJ) postream.$(OBJ) piostream.$(OBJ) pobject.$(OBJ) \ - ptype.$(OBJ) pmisc.$(OBJ) - -all: $(OBJS) - -pobject.$(OBJ): pobject.cc $D/pstream.h $D/pobject.h $D/pconfig.h \ - $D/pconvert.h $D/ptype.h $D/ptypeentry.h -ptype.$(OBJ): ptype.cc $D/ptype.h $D/pstream.h $D/pobject.h \ - $D/pconfig.h $D/pconvert.h $D/ptypeentry.h \ - $(ad)/contain/vararray.h $D/pi_impl.h $D/po_impl.h \ - $(ad)/contain/variset.h $(ad)/contain/varptrarray.h -pstream.$(OBJ): pstream.cc $D/pstream.h $D/pobject.h $D/pconfig.h \ - $D/pconvert.h $D/ptype.h $D/ptypeentry.h -pistream.$(OBJ): pistream.cc $D/pstream.h $D/pobject.h $D/pconfig.h $D/pconvert.h \ - $(ad)/hash/lhash.h $(ad)/memory/mem.h $D/pi_impl.h \ - $D/ptype.h $D/ptypeentry.h $(ad)/contain/vararray.h \ - $(ad)/contain/varptrarray.h -postream.$(OBJ): postream.cc $D/pstream.h $D/pobject.h $D/pconfig.h $D/pconvert.h \ - $(ad)/hash/lhash2.h \ - $D/ptype.h $D/ptypeentry.h $(ad)/contain/variset.h \ - $D/po_impl.h -piostream.$(OBJ): piostream.cc $D/pstream.h $D/pobject.h $D/pconfig.h $D/pconvert.h \ - $(ad)/memory/mem.h \ - $D/ptype.h $D/ptypeentry.h -pfactory.$(OBJ): pfactory.cc $D/pfactory.h $D/pobject.h $D/pconfig.h $D/pconvert.h \ - $(ad)/hash/lhash.h \ - $D/ptype.h $D/ptypeentry.h -pmisc.$(OBJ): pmisc.cc $D/pobject.h $D/pconfig.h $D/pstream.h - -%.$(OBJ): %.cc - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cc) diff --git a/lib-src/persist/Makefile.mk b/lib-src/persist/Makefile.mk new file mode 100644 index 0000000..4ff67dd --- /dev/null +++ b/lib-src/persist/Makefile.mk @@ -0,0 +1,28 @@ +D := $(ad)/persist +S := persist + +SRC += $S/pstream.cc $S/pfactory.cc $S/pistream.cc $S/postream.cc $S/piostream.cc $S/pobject.cc $S/ptype.cc $S/pmisc.cc + +$S/pobject.$(OBJ): $S/pobject.cc $D/pstream.h $D/pobject.h $D/pconfig.h \ + $D/pconvert.h $D/ptype.h $D/ptypeentry.h +$S/ptype.$(OBJ): $S/ptype.cc $D/ptype.h $D/pstream.h $D/pobject.h \ + $D/pconfig.h $D/pconvert.h $D/ptypeentry.h \ + $(ad)/contain/vararray.h $D/pi_impl.h $D/po_impl.h \ + $(ad)/contain/variset.h $(ad)/contain/varptrarray.h +$S/pstream.$(OBJ): $S/pstream.cc $D/pstream.h $D/pobject.h $D/pconfig.h \ + $D/pconvert.h $D/ptype.h $D/ptypeentry.h +$S/pistream.$(OBJ): $S/pistream.cc $D/pstream.h $D/pobject.h $D/pconfig.h $D/pconvert.h \ + $(ad)/hash/lhash.h $(ad)/memory/mem.h $D/pi_impl.h \ + $D/ptype.h $D/ptypeentry.h $(ad)/contain/vararray.h \ + $(ad)/contain/varptrarray.h +$S/postream.$(OBJ): $S/postream.cc $D/pstream.h $D/pobject.h $D/pconfig.h $D/pconvert.h \ + $(ad)/hash/lhash2.h \ + $D/ptype.h $D/ptypeentry.h $(ad)/contain/variset.h \ + $D/po_impl.h +$S/piostream.$(OBJ): $S/piostream.cc $D/pstream.h $D/pobject.h $D/pconfig.h $D/pconvert.h \ + $(ad)/memory/mem.h \ + $D/ptype.h $D/ptypeentry.h +$S/pfactory.$(OBJ): $S/pfactory.cc $D/pfactory.h $D/pobject.h $D/pconfig.h $D/pconvert.h \ + $(ad)/hash/lhash.h \ + $D/ptype.h $D/ptypeentry.h +$S/pmisc.$(OBJ): $S/pmisc.cc $D/pobject.h $D/pconfig.h $D/pstream.h diff --git a/lib-src/pretty/Makefile b/lib-src/pretty/Makefile deleted file mode 100644 index f0cb23d..0000000 --- a/lib-src/pretty/Makefile +++ /dev/null @@ -1,37 +0,0 @@ -############################################################################# -# The following parameters must be altered for each platform and compiler. -# The default is for g++ on Unix and MSDOG. -############################################################################# -ADLIB_PATH = ../../include -CC = gcc -COPTS = -O6 -CINCLUDE = -I$(ADLIB_PATH) - -ad = $(ADLIB_PATH)/AD -D = $(ADLIB_PATH)/AD/pretty - -OBJS = pristream.$(OBJ) prostream.$(OBJ) priostream.$(OBJ) - -all: $(OBJS) - -qa: qa.cc $(OBJS) - $(CC) $(COPTS) $(CINCLUDE) -o qa qa.cc *.$(OBJ) -liostream - -pristream.$(OBJ): pristream.cc $(D)/pistream.h -prostream.$(OBJ): prostream.cc $(D)/postream.h -priostream.$(OBJ): priostream.cc $(D)/piostream.h $(D)/pistream.h $(D)/postream.h - -%.$(OBJ): %.cc - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cc) - -%.$(OBJ): %.cpp - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cpp) - -%.$(OBJ): %.cxx - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cxx) - -%.$(OBJ): %.C - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.C) - -%.$(OBJ): %.s - $(AS) $(@:.$(OBJ)=.s) -o $@ diff --git a/lib-src/pretty/Makefile.mk b/lib-src/pretty/Makefile.mk new file mode 100644 index 0000000..28f5f6e --- /dev/null +++ b/lib-src/pretty/Makefile.mk @@ -0,0 +1,8 @@ +D := $(ad)/pretty +S := pretty + +SRC += $S/pristream.cc $S/prostream.cc $S/priostream.cc + +$S/pristream.$(OBJ): $S/pristream.cc $(D)/pistream.h +$S/prostream.$(OBJ): $S/prostream.cc $(D)/postream.h +$S/priostream.$(OBJ): $S/priostream.cc $(D)/piostream.h $(D)/pistream.h $(D)/postream.h diff --git a/lib-src/prettypr/Makefile b/lib-src/prettypr/Makefile deleted file mode 100644 index 5c801d2..0000000 --- a/lib-src/prettypr/Makefile +++ /dev/null @@ -1,35 +0,0 @@ -############################################################################# -# The following parameters must be altered for each platform and compiler. -# The default is for g++ on Unix and MSDOG. -############################################################################# -ADLIB_PATH = ../../include -CC = gcc -COPTS = -g -O6 -CINCLUDE = -I$(ADLIB_PATH) - -ad = $(ADLIB_PATH)/AD -D = $(ADLIB_PATH)/AD/prettypr - -OBJS = prettypr.$(OBJ) - -all: $(OBJS) - -qa: qa.cc $(OBJS) - $(CC) $(COPTS) $(CINCLUDE) -o qa qa.cc *.$(OBJ) -liostream - -prettypr.$(OBJ): prettypr.cc $(D)/prettypr.h - -%.$(OBJ): %.cc - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cc) - -%.$(OBJ): %.cpp - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cpp) - -%.$(OBJ): %.cxx - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cxx) - -%.$(OBJ): %.C - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.C) - -%.$(OBJ): %.s - $(AS) $(@:.$(OBJ)=.s) -o $@ diff --git a/lib-src/prettypr/Makefile.mk b/lib-src/prettypr/Makefile.mk new file mode 100644 index 0000000..1fdcf95 --- /dev/null +++ b/lib-src/prettypr/Makefile.mk @@ -0,0 +1,6 @@ +D := $(ad)/prettypr +S := prettypr + +SRC += $S/prettypr.cc + +$S/prettypr.$(OBJ): $S/prettypr.cc $(D)/prettypr.h diff --git a/lib-src/prop/Makefile b/lib-src/prop/Makefile deleted file mode 100644 index 358f8ab..0000000 --- a/lib-src/prop/Makefile +++ /dev/null @@ -1,29 +0,0 @@ -############################################################################# -# The following parameters must be altered for each platform and compiler. -# The default is for g++ on Unix and MSDOG. -############################################################################# -ADLIB_PATH = ../../include -CC = g++ -COPTS = -O6 -CINCLUDE = -I$(ADLIB_PATH) - -ad = $(ADLIB_PATH)/AD -D = $(ADLIB_PATH)/AD/prop - -OBJS = trace.$(OBJ) - -all: $(OBJS) - -trace.$(OBJ): trace.cc $(ad)/generic/generic.h - -%.$(OBJ): %.cc - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cc) - -%.$(OBJ): %.C - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.C) - -%.$(OBJ): %.cpp - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cpp) - -%.$(OBJ): %.cxx - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cxx) diff --git a/lib-src/prop/Makefile.mk b/lib-src/prop/Makefile.mk new file mode 100644 index 0000000..d2e6b5f --- /dev/null +++ b/lib-src/prop/Makefile.mk @@ -0,0 +1,6 @@ +D := $(ad)/prop +S := prop + +SRC += $S/trace.cc + +$S/trace.$(OBJ): $S/trace.cc $(ad)/generic/generic.h diff --git a/lib-src/rete/Makefile b/lib-src/rete/Makefile deleted file mode 100644 index 21d3c86..0000000 --- a/lib-src/rete/Makefile +++ /dev/null @@ -1,45 +0,0 @@ -############################################################################# -# The following parameters must be altered for each platform and compiler. -# The default is for g++ on Unix and MSDOG. -############################################################################# -ADLIB_PATH = ../../include -CC = gcc -COPTS = -g -O6 -CINCLUDE = -I$(ADLIB_PATH) - -ad = $(ADLIB_PATH)/AD -D = $(ADLIB_PATH)/AD/rete - -OBJS = rete.$(OBJ) fact.$(OBJ) retenet.$(OBJ) gen_rete.$(OBJ) alphamem.$(OBJ) betamem.$(OBJ) token.$(OBJ) - -all: $(OBJS) - -rete.$(OBJ): rete.cc $D/rete.h $D/fact.h $D/retenet.h \ - $(ad)/contain/varqueue.h $(ad)/generic/ordering.h \ - $(ad)/generic/generic.h $(ad)/hash/chash.h \ - $(ad)/memory/mem.h $(ad)/memory/arena.h -fact.$(OBJ): fact.cc $D/fact.h -retenet.$(OBJ): retenet.cc $D/fact.h $D/retenet.h \ - $(ad)/memory/mem.h $(ad)/memory/boundtag.h \ - $(ad)/generic/generic.h -gen_rete.$(OBJ): gen_rete.cc $D/fact.h $D/gen_rete.h $D/token.h \ - $(ad)/memory/mem.h $(ad)/memory/boundtag.h \ - $(ad)/generic/generic.h $D/alphamem.h $D/betamem.h -alphamem.$(OBJ): alphamem.cc $D/alphamem.h $D/fact.h $D/token.h \ - $(ad)/memory/mem.h $(ad)/memory/boundtag.h \ - $(ad)/memory/arena.h -betamem.$(OBJ): betamem.cc $D/betamem.h $D/fact.h $D/token.h \ - $(ad)/memory/mem.h $(ad)/memory/boundtag.h \ - $(ad)/memory/arena.h - -%.$(OBJ): %.cc - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cc) - -%.$(OBJ): %.cpp - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cpp) - -%.$(OBJ): %.cxx - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cxx) - -%.$(OBJ): %.C - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.C) diff --git a/lib-src/rete/Makefile.mk b/lib-src/rete/Makefile.mk new file mode 100644 index 0000000..fdddb90 --- /dev/null +++ b/lib-src/rete/Makefile.mk @@ -0,0 +1,22 @@ +D := $(ad)/rete +S := rete + +SRC += $S/rete.cc $S/fact.cc $S/retenet.cc $S/gen_rete.cc $S/alphamem.cc $S/betamem.cc $S/token.$(OBJ) + +$S/rete.$(OBJ): $S/rete.cc $D/rete.h $D/fact.h $D/retenet.h \ + $(ad)/contain/varqueue.h $(ad)/generic/ordering.h \ + $(ad)/generic/generic.h $(ad)/hash/chash.h \ + $(ad)/memory/mem.h $(ad)/memory/arena.h +$S/fact.$(OBJ): $S/fact.cc $D/fact.h +$S/retenet.$(OBJ): $S/retenet.cc $D/fact.h $D/retenet.h \ + $(ad)/memory/mem.h $(ad)/memory/boundtag.h \ + $(ad)/generic/generic.h +$S/gen_rete.$(OBJ): $S/gen_rete.cc $D/fact.h $D/gen_rete.h $D/token.h \ + $(ad)/memory/mem.h $(ad)/memory/boundtag.h \ + $(ad)/generic/generic.h $D/alphamem.h $D/betamem.h +$S/alphamem.$(OBJ): $S/alphamem.cc $D/alphamem.h $D/fact.h $D/token.h \ + $(ad)/memory/mem.h $(ad)/memory/boundtag.h \ + $(ad)/memory/arena.h +$S/betamem.$(OBJ): $S/betamem.cc $D/betamem.h $D/fact.h $D/token.h \ + $(ad)/memory/mem.h $(ad)/memory/boundtag.h \ + $(ad)/memory/arena.h diff --git a/lib-src/rewrite/Makefile b/lib-src/rewrite/Makefile deleted file mode 100644 index 3e97bd0..0000000 --- a/lib-src/rewrite/Makefile +++ /dev/null @@ -1,81 +0,0 @@ -# -# A sample Makefile -# - -ADLIB_PATH = ../../include -CC = gcc -CINCLUDE = -I$(ADLIB_PATH) -COPTS = -g -O6 -#COPTS = -g -O6 -pg -PROP = ../../bin/prop -PROP_OPTS = -s - -D = $(ADLIB_PATH)/AD/rewrite -ad = $(ADLIB_PATH)/AD - -OBJS = twig.$(OBJ) b_item.$(OBJ) b_items.$(OBJ) b_rules.$(OBJ) burs_gen.$(OBJ) \ - twig_gen.$(OBJ) burs.$(OBJ) cache.$(OBJ) -SRC = b_rules.cc - -all: $(SRC) $(OBJS) - -src: $(SRC) - -b_rules.cc: b_rules.pcc $(ad)/automata/treegram.ph - -twig.$(OBJ): twig.cc $D/twig.h $(ad)/automata/topdown.h \ - $(ad)/automata/ac.h $(ad)/automata/sparsdfa.h \ - $(ad)/automata/compdfa.h $(ad)/automata/dfatable.h \ - $(ad)/memory/mem.h $(ad)/memory/boundtag.h \ - $(ad)/contain/bitset.h $(ad)/generic/generic.h -twig_gen.$(OBJ): twig_gen.cc $D/twig_gen.h $(ad)/automata/topdown.h \ - $(ad)/automata/ac.h $(ad)/automata/sparsdfa.h \ - $(ad)/automata/compdfa.h $(ad)/automata/dfatable.h \ - $(ad)/memory/mem.h $(ad)/memory/boundtag.h \ - $(ad)/contain/bitset.h $(ad)/generic/generic.h -b_item.$(OBJ): b_item.cc $D/b_item.h $(ad)/automata/treetab.h \ - $(ad)/automata/treegram.h $(ad)/memory/mem.h \ - $(ad)/generic/generic.h -b_items.$(OBJ): b_items.cc $D/b_items.h $D/b_item.h $(ad)/automata/treetab.h \ - $(ad)/automata/treegram.h $(ad)/memory/mem.h \ - $(ad)/generic/generic.h -b_rules.$(OBJ): b_rules.cc $D/b_rules.h $D/b_items.h $D/b_item.h \ - $(ad)/automata/treetab.h \ - $(ad)/automata/treegram.h $(ad)/memory/mem.h \ - $(ad)/generic/generic.h -burs.$(OBJ): burs.cc $D/burs.h \ - $(ad)/automata/treetab.h $(ad)/automata/treeauto.h \ - $(ad)/automata/treegram.h $(ad)/memory/mem.h -burs_gen.$(OBJ): burs_gen.cc $D/burs_gen.h \ - $D/b_items.h $D/b_item.h $D/b_rules.h \ - $(ad)/automata/treetab.h $(ad)/automata/treeauto.h \ - $(ad)/automata/treegram.h $(ad)/memory/mem.h \ - $(ad)/generic/generic.h $(ad)/hash/dchash.h \ - $(ad)/automata/dfatable.h $(ad)/automata/compdfa.h \ - $(ad)/automata/sparsdfa.h -burs_gn2.$(OBJ): burs_gn2.cc $D/burs_gn2.h $D/burs_gen.h \ - $D/b_items.h $D/b_item.h $D/b_rules.h \ - $(ad)/automata/treetab.h $(ad)/automata/treeauto.h \ - $(ad)/automata/treegram.h $(ad)/memory/mem.h \ - $(ad)/generic/generic.h $(ad)/hash/dchash.h \ - $(ad)/automata/dfatable.h $(ad)/automata/compdfa.h \ - $(ad)/automata/sparsdfa.h - - -%.$(OBJ): %.cc - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cc) - -%.$(OBJ): %.cpp - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cpp) - -%.$(OBJ): %.c++ - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.c++) - -%.$(OBJ): %.c - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.c) - -#%.cc: %.pcc -# $(PROP) $(PROP_OPTS) $(CINCLUDE) $(@:.cc=.pcc) - -#%.h: %.ph -# $(PROP) $(PROP_OPTS) $(CINCLUDE) $(@:.h=.ph) diff --git a/lib-src/rewrite/Makefile.mk b/lib-src/rewrite/Makefile.mk new file mode 100644 index 0000000..531631c --- /dev/null +++ b/lib-src/rewrite/Makefile.mk @@ -0,0 +1,44 @@ +D := $(ad)/rewrite +S := rewrite + +SRC += $S/twig.cc $S/b_item.cc $S/b_items.cc $S/b_rules.cc $S/burs_gen.cc $S/twig_gen.cc $S/burs.cc $S/cache.cc + +$S/b_rules.cc: $S/b_rules.pcc $(ad)/automata/treegram.ph + +$S/twig.$(OBJ): $S/twig.cc $D/twig.h $(ad)/automata/topdown.h \ + $(ad)/automata/ac.h $(ad)/automata/sparsdfa.h \ + $(ad)/automata/compdfa.h $(ad)/automata/dfatable.h \ + $(ad)/memory/mem.h $(ad)/memory/boundtag.h \ + $(ad)/contain/bitset.h $(ad)/generic/generic.h +$S/twig_gen.$(OBJ): $S/twig_gen.cc $D/twig_gen.h $(ad)/automata/topdown.h \ + $(ad)/automata/ac.h $(ad)/automata/sparsdfa.h \ + $(ad)/automata/compdfa.h $(ad)/automata/dfatable.h \ + $(ad)/memory/mem.h $(ad)/memory/boundtag.h \ + $(ad)/contain/bitset.h $(ad)/generic/generic.h +$S/b_item.$(OBJ): $S/b_item.cc $D/b_item.h $(ad)/automata/treetab.h \ + $(ad)/automata/treegram.h $(ad)/memory/mem.h \ + $(ad)/generic/generic.h +$S/b_items.$(OBJ): $S/b_items.cc $D/b_items.h $D/b_item.h $(ad)/automata/treetab.h \ + $(ad)/automata/treegram.h $(ad)/memory/mem.h \ + $(ad)/generic/generic.h +$S/b_rules.$(OBJ): $S/b_rules.cc $D/b_rules.h $D/b_items.h $D/b_item.h \ + $(ad)/automata/treetab.h \ + $(ad)/automata/treegram.h $(ad)/memory/mem.h \ + $(ad)/generic/generic.h +$S/burs.$(OBJ): $S/burs.cc $D/burs.h \ + $(ad)/automata/treetab.h $(ad)/automata/treeauto.h \ + $(ad)/automata/treegram.h $(ad)/memory/mem.h +$S/burs_gen.$(OBJ): $S/burs_gen.cc $D/burs_gen.h \ + $D/b_items.h $D/b_item.h $D/b_rules.h \ + $(ad)/automata/treetab.h $(ad)/automata/treeauto.h \ + $(ad)/automata/treegram.h $(ad)/memory/mem.h \ + $(ad)/generic/generic.h $(ad)/hash/dchash.h \ + $(ad)/automata/dfatable.h $(ad)/automata/compdfa.h \ + $(ad)/automata/sparsdfa.h +$S/burs_gn2.$(OBJ): $S/burs_gn2.cc $D/burs_gn2.h $D/burs_gen.h \ + $D/b_items.h $D/b_item.h $D/b_rules.h \ + $(ad)/automata/treetab.h $(ad)/automata/treeauto.h \ + $(ad)/automata/treegram.h $(ad)/memory/mem.h \ + $(ad)/generic/generic.h $(ad)/hash/dchash.h \ + $(ad)/automata/dfatable.h $(ad)/automata/compdfa.h \ + $(ad)/automata/sparsdfa.h diff --git a/lib-src/strings/Makefile b/lib-src/strings/Makefile deleted file mode 100644 index 29a02ea..0000000 --- a/lib-src/strings/Makefile +++ /dev/null @@ -1,44 +0,0 @@ -############################################################################# -# The following parameters must be altered for each platform and compiler. -# The default is for g++ on Unix and MSDOG. -############################################################################# -ADLIB_PATH = ../../include -CC = g++ -COPTS = -O6 -CINCLUDE = -I$(ADLIB_PATH) - -ad = $(ADLIB_PATH)/AD -D = $(ADLIB_PATH)/AD/strings - -OBJS = atom.$(OBJ) bm.$(OBJ) charesc.$(OBJ) fansu.$(OBJ) kmp.$(OBJ) kr.$(OBJ) -OBJS2 = quark.$(OBJ) regexp.$(OBJ) shiftadd.$(OBJ) string.$(OBJ) strmatch.$(OBJ) twoway.$(OBJ) - -all: $(OBJS) $(OBJS2) - -approx.$(OBJ): approx.cc $D/approx.h $D/shiftadd.h $(ad)/generic/generic.h -atom.$(OBJ): atom.cc $D/atom.h $(ad)/generic/generic.h $(ad)/hash/dchash.h -bm.$(OBJ): bm.cc $D/bm.h $D/strmatch.h $(ad)/generic/generic.h -charesc.$(OBJ): charesc.cc $D/charesc.h -fansu.$(OBJ): fansu.cc $D/fansu.h $(ad)/generic/generic.h -kmp.$(OBJ): kmp.cc $D/kmp.h $D/strmatch.h $(ad)/generic/generic.h -kr.$(OBJ): kr.cc $D/kr.h $D/strmatch.h $(ad)/generic/generic.h -quark.$(OBJ): quark.cc $D/quark.h $(ad)/hash/dchash.h \ - $(ad)/memory/strpool.h $(ad)/memory/mem.h $(ad)/generic/generic.h -regexp.$(OBJ): regexp.cc $D/regexp.h $(ad)/contain/charset.h \ - $(ad)/generic/generic.h -shiftadd.$(OBJ): shiftadd.cc $D/shiftadd.h $(ad)/generic/generic.h -string.$(OBJ): string.cc $D/string.h $(ad)/generic/generic.h -strmatch.$(OBJ): strmatch.cc $D/strmatch.h $(ad)/generic/generic.h -twoway.$(OBJ): twoway.cc $D/twoway.h $(ad)/generic/generic.h - -%.$(OBJ): %.cc - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cc) - -%.$(OBJ): %.C - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.C) - -%.$(OBJ): %.cpp - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cpp) - -%.$(OBJ): %.cxx - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cxx) diff --git a/lib-src/strings/Makefile.mk b/lib-src/strings/Makefile.mk new file mode 100644 index 0000000..bc3436b --- /dev/null +++ b/lib-src/strings/Makefile.mk @@ -0,0 +1,21 @@ +D := $(ad)/strings +S := strings + +SRC += $S/atom.cc $S/bm.cc $S/charesc.cc $S/fansu.cc $S/kmp.cc $S/kr.cc +SRC += $S/quark.cc $S/regexp.cc $S/shiftadd.cc $S/string.cc $S/strmatch.cc $S/twoway.cc + +$S/approx.$(OBJ): $S/approx.cc $D/approx.h $D/shiftadd.h $(ad)/generic/generic.h +$S/atom.$(OBJ): $S/atom.cc $D/atom.h $(ad)/generic/generic.h $(ad)/hash/dchash.h +$S/bm.$(OBJ): $S/bm.cc $D/bm.h $D/strmatch.h $(ad)/generic/generic.h +$S/charesc.$(OBJ): $S/charesc.cc $D/charesc.h +$S/fansu.$(OBJ): $S/fansu.cc $D/fansu.h $(ad)/generic/generic.h +$S/kmp.$(OBJ): $S/kmp.cc $D/kmp.h $D/strmatch.h $(ad)/generic/generic.h +$S/kr.$(OBJ): $S/kr.cc $D/kr.h $D/strmatch.h $(ad)/generic/generic.h +$S/quark.$(OBJ): $S/quark.cc $D/quark.h $(ad)/hash/dchash.h \ + $(ad)/memory/strpool.h $(ad)/memory/mem.h $(ad)/generic/generic.h +$S/regexp.$(OBJ): $S/regexp.cc $D/regexp.h $(ad)/contain/charset.h \ + $(ad)/generic/generic.h +$S/shiftadd.$(OBJ): $S/shiftadd.cc $D/shiftadd.h $(ad)/generic/generic.h +$S/string.$(OBJ): $S/string.cc $D/string.h $(ad)/generic/generic.h +$S/strmatch.$(OBJ): $S/strmatch.cc $D/strmatch.h $(ad)/generic/generic.h +$S/twoway.$(OBJ): $S/twoway.cc $D/twoway.h $(ad)/generic/generic.h diff --git a/lib-src/strings/quark.cc b/lib-src/strings/quark.cc index d50b059..06d12dd 100644 --- a/lib-src/strings/quark.cc +++ b/lib-src/strings/quark.cc @@ -1,24 +1,24 @@ ////////////////////////////////////////////////////////////////////////////// // NOTICE: // -// ADLib, Prop and their related set of tools and documentation are in the -// public domain. The author(s) of this software reserve no copyrights on +// ADLib, Prop and their related set of tools and documentation are in the +// public domain. The author(s) of this software reserve no copyrights on // the source code and any code generated using the tools. You are encouraged // to use ADLib and Prop to develop software, in both academic and commercial // settings, and are free to incorporate any part of ADLib and Prop into // your programs. // -// Although you are under no obligation to do so, we strongly recommend that +// Although you are under no obligation to do so, we strongly recommend that // you give away all software developed using our tools. // -// We also ask that credit be given to us when ADLib and/or Prop are used in -// your programs, and that this notice be preserved intact in all the source +// We also ask that credit be given to us when ADLib and/or Prop are used in +// your programs, and that this notice be preserved intact in all the source // code. // -// This software is still under development and we welcome any suggestions +// This software is still under development and we welcome any suggestions // and help from the users. // -// Allen Leung +// Allen Leung // 1994 ////////////////////////////////////////////////////////////////////////////// @@ -31,15 +31,15 @@ #include // Hash table #include // String pools -class QuarkMap +class QuarkMap { QuarkMap(const QuarkMap&); // no copy constructor void operator = (const QuarkMap&); // no assignment public: // A table of all strings encountered - LHashTable universe; + LHashTable universe; // A string pool to store the strings - StringPool pool; + StringPool pool; inline QuarkMap() : universe(397), pool(8196) {} }; @@ -49,16 +49,16 @@ static QuarkMap * map = 0; int Quark::entries() { return map ? map->universe.size() : 0; } void Quark::intern(const char * string) -{ +{ if (map == 0) map = new QuarkMap; - Ix key = map->universe.lookup((char * const)string); + Ix key = map->universe.lookup((char * const)string); // // If the string is already in the universe, use the old copy. // Otherwise, allocate a new string and put it into the map. // if (key) { - name = map->universe.key(key); + name = map->universe.key(key); } else { char * newName = map->pool[string]; // allocate the string from the pool map->universe.insert(newName,' '); // add the new key into the map @@ -69,91 +69,91 @@ void Quark::intern(const char * string) ////////////////////////////////////////////////////////////////////////////// // Constructors ////////////////////////////////////////////////////////////////////////////// -Quark::Quark(const char string[]) +Quark::Quark(const char string[]) { intern(string); } -Quark::Quark(const unsigned char string[]) +Quark::Quark(const unsigned char string[]) { intern((const char *)string); } -Quark::Quark(short n) - { char buf[32]; +Quark::Quark(short n) + { char buf[32]; std::ostrstream S(buf,sizeof(buf)); std::ostream& S2 = S; S2 << n << std::ends; - intern(buf); + intern(buf); } -Quark::Quark(unsigned short n) - { char buf[32]; +Quark::Quark(unsigned short n) + { char buf[32]; std::ostrstream S(buf,sizeof(buf)); std::ostream& S2 = S; S2 << n << std::ends; - intern(buf); + intern(buf); } -Quark::Quark(int n) - { char buf[32]; +Quark::Quark(int n) + { char buf[32]; std::ostrstream S(buf,sizeof(buf)); std::ostream& S2 = S; S2 << n << std::ends; - intern(buf); + intern(buf); } -Quark::Quark(const char string[], int n) +Quark::Quark(const char string[], int n) { std::ostrstream S; std::ostream& S2 = S; S2 << string << n << std::ends; - intern(S.str()); + intern(S.str()); S.rdbuf()->freeze(0); } -Quark::Quark(unsigned int n) - { char buf[32]; +Quark::Quark(unsigned int n) + { char buf[32]; std::ostrstream S(buf,sizeof(buf)); std::ostream& S2 = S; S2 << n << std::ends; - intern(buf); + intern(buf); } -Quark::Quark(long n) - { char buf[32]; +Quark::Quark(long n) + { char buf[32]; std::ostrstream S(buf,sizeof(buf)); std::ostream& S2 = S; S2 << n << std::ends; - intern(buf); + intern(buf); } -Quark::Quark(unsigned long n) - { char buf[32]; +Quark::Quark(unsigned long n) + { char buf[32]; std::ostrstream S(buf,sizeof(buf)); std::ostream& S2 = S; S2 << n << std::ends; - intern(buf); + intern(buf); } -Quark::Quark(double n) - { char buf[64]; +Quark::Quark(double n) + { char buf[64]; std::ostrstream S(buf,sizeof(buf)); std::ostream& S2 = S; S2 << n << std::ends; - intern(buf); + intern(buf); } Quark::Quark(char c) -{ char buf[32]; +{ char buf[32]; buf[0] = '\''; char * p = print_char(buf+1,c); *p++ = '\''; *p = '\0'; - intern(buf); + intern(buf); } Quark::Quark (const char s1[], const char s2[]) { std::ostrstream S; std::ostream& S2 = S; S2 << s1 << s2 << std::ends; - intern(S.str()); + intern(S.str()); S.rdbuf()->freeze(0); } Quark::Quark (const char s1[], const char s2[], const char s3[]) { std::ostrstream S; std::ostream& S2 = S; S2 << s1 << s2 << s3 << std::ends; - intern(S.str()); + intern(S.str()); S.rdbuf()->freeze(0); } Quark::Quark (const char s1[], const char s2[], const char s3[], const char s4[]) { std::ostrstream S; std::ostream& S2 = S; S2 << s1 << s2 << s3 << s4 << std::ends; - intern(S.str()); + intern(S.str()); S.rdbuf()->freeze(0); } @@ -177,4 +177,4 @@ unsigned int hash_nocase(const Quark& q) } int compare_nocase(const Quark& a, const Quark& b) -{ return strcasecmp(a.string(),b.string()); } +{ return stricmp(a.string(),b.string()); } diff --git a/lib-src/symbolic/Makefile b/lib-src/symbolic/Makefile deleted file mode 100644 index 6952142..0000000 --- a/lib-src/symbolic/Makefile +++ /dev/null @@ -1,47 +0,0 @@ -# -# A sample Makefile -# - -ADLIB_PATH = ../../include -CC = g++ -CINCLUDE = -I$(ADLIB_PATH) -COPTS = -O6 -PROP = prop -PROP_OPTS = -s -v - -D = $(ADLIB_PATH)/AD/symbolic -ad = $(ADLIB_PATH)/AD - -OBJS = bdd.$(OBJ) expr.$(OBJ) string.$(OBJ) atom.$(OBJ) term.$(OBJ) fouriermotzkin.$(OBJ) - -all: $(OBJS) - -src: $(SRC) - -bdd.$(OBJ): bdd.cc $D/bdd.h $(ad)/generic/generic.h -expr.$(OBJ): expr.cc $D/expr.h $(ad)/generic/generic.h -string.$(OBJ): string.cc $D/expr.h $D/string.h $(ad)/generic/generic.h \ - $(ad)/strings/string.h -atom.$(OBJ): atom.cc $D/atom.h $D/expr.h $D/string.h $(ad)/generic/generic.h \ - $(ad)/strings/string.h -term.$(OBJ): term.cc $D/term.h $D/expr.h $(ad)/generic/generic.h -fouriermotzkin.$(OBJ): fouriermotzkin.cc $D/fouriermotzkin.h \ - $(ad)/generic/generic.h $(ad)/memory/mem.h - -%.$(OBJ): %.cc - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cc) - -%.$(OBJ): %.cpp - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cpp) - -%.$(OBJ): %.c++ - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.c++) - -%.$(OBJ): %.c - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.c) - -%.cc: %.pcc - $(PROP) $(PROP_OPTS) $(CINCLUDE) $(@:.cc=.pcc) - -%.h: %.ph - $(PROP) $(PROP_OPTS) $(CINCLUDE) $(@:.h=.ph) diff --git a/lib-src/symbolic/Makefile.mk b/lib-src/symbolic/Makefile.mk new file mode 100644 index 0000000..e1fbfab --- /dev/null +++ b/lib-src/symbolic/Makefile.mk @@ -0,0 +1,14 @@ +D := $(ad)/symbolic +S := symbolic + +SRC += $S/bdd.cc $S/expr.cc $S/string.cc $S/atom.cc $S/term.cc $S/fouriermotzkin.$(OBJ) + +$S/bdd.$(OBJ): $S/bdd.cc $D/bdd.h $(ad)/generic/generic.h +$S/expr.$(OBJ): $S/expr.cc $D/expr.h $(ad)/generic/generic.h +$S/string.$(OBJ): $S/string.cc $D/expr.h $D/string.h $(ad)/generic/generic.h \ + $(ad)/strings/string.h +$S/atom.$(OBJ): $S/atom.cc $D/atom.h $D/expr.h $D/string.h $(ad)/generic/generic.h \ + $(ad)/strings/string.h +$S/term.$(OBJ): $S/term.cc $D/term.h $D/expr.h $(ad)/generic/generic.h +$S/fouriermotzkin.$(OBJ): $S/fouriermotzkin.cc $D/fouriermotzkin.h \ + $(ad)/generic/generic.h $(ad)/memory/mem.h diff --git a/lib-src/trees/Makefile b/lib-src/trees/Makefile deleted file mode 100644 index 47792a2..0000000 --- a/lib-src/trees/Makefile +++ /dev/null @@ -1,42 +0,0 @@ -############################################################################# -# The following parameters must be altered for each platform and compiler. -# The default is for g++ on Unix and MSDOG. -############################################################################# -ADLIB_PATH = ../../include -CC = gcc -COPTS = -g -O -CINCLUDE = -I$(ADLIB_PATH) - -ad = $(ADLIB_PATH)/AD -D = $(ADLIB_PATH)/AD/trees - -OBJS = avl.$(OBJ) fibheap.$(OBJ) leftist.$(OBJ) pagoda.$(OBJ) rlxheap.$(OBJ) splay.$(OBJ) trees.$(OBJ) vbpq.$(OBJ) - -all: $(OBJS) - -avl.$(OBJ): avl.cc $D/avl.h $D/trees.h \ - $(ad)/generic/ordering.h $(ad)/generic/generic.h -fibheap.$(OBJ): fibheap.cc $D/fibheap.h $D/trees.h \ - $(ad)/generic/ordering.h $(ad)/generic/generic.h -leftist.$(OBJ): leftist.cc $D/leftist.h $D/trees.h \ - $(ad)/generic/ordering.h $(ad)/generic/generic.h -pagoda.$(OBJ): pagoda.cc $D/pagoda.h $D/trees.h \ - $(ad)/generic/ordering.h $(ad)/generic/generic.h -rlxheap.$(OBJ): rlxheap.cc $D/rlxheap.h $D/trees.h \ - $(ad)/generic/ordering.h $(ad)/generic/generic.h -splay.$(OBJ): splay.cc $D/splay.h $D/trees.h \ - $(ad)/generic/ordering.h $(ad)/generic/generic.h -trees.$(OBJ): trees.cc $D/trees.h $(ad)/generic/ordering.h $(ad)/generic/generic.h -vbpq.$(OBJ): vbpq.cc $D/vbpq.h $(ad)/generic/ordering.h $(ad)/generic/generic.h - -%.$(OBJ): %.cc - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cc) - -%.$(OBJ): %.cpp - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cpp) - -%.$(OBJ): %.cxx - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cxx) - -%.$(OBJ): %.C - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.C) diff --git a/lib-src/trees/Makefile.mk b/lib-src/trees/Makefile.mk new file mode 100644 index 0000000..40b3280 --- /dev/null +++ b/lib-src/trees/Makefile.mk @@ -0,0 +1,19 @@ +D := $(ad)/trees +S := trees + +SRC += $S/avl.cc $S/fibheap.cc $S/leftist.cc $S/pagoda.cc $S/rlxheap.cc $S/splay.cc $S/trees.cc $S/vbpq.$(OBJ) + +$S/avl.$(OBJ): $S/avl.cc $D/avl.h $D/trees.h \ + $(ad)/generic/ordering.h $(ad)/generic/generic.h +$S/fibheap.$(OBJ): $S/fibheap.cc $D/fibheap.h $D/trees.h \ + $(ad)/generic/ordering.h $(ad)/generic/generic.h +$S/leftist.$(OBJ): $S/leftist.cc $D/leftist.h $D/trees.h \ + $(ad)/generic/ordering.h $(ad)/generic/generic.h +$S/pagoda.$(OBJ): $S/pagoda.cc $D/pagoda.h $D/trees.h \ + $(ad)/generic/ordering.h $(ad)/generic/generic.h +$S/rlxheap.$(OBJ): $S/rlxheap.cc $D/rlxheap.h $D/trees.h \ + $(ad)/generic/ordering.h $(ad)/generic/generic.h +$S/splay.$(OBJ): $S/splay.cc $D/splay.h $D/trees.h \ + $(ad)/generic/ordering.h $(ad)/generic/generic.h +$S/trees.$(OBJ): $S/trees.cc $D/trees.h $(ad)/generic/ordering.h $(ad)/generic/generic.h +$S/vbpq.$(OBJ): $S/vbpq.cc $D/vbpq.h $(ad)/generic/ordering.h $(ad)/generic/generic.h diff --git a/lib-src/tries/Makefile b/lib-src/tries/Makefile deleted file mode 100644 index e92c354..0000000 --- a/lib-src/tries/Makefile +++ /dev/null @@ -1,33 +0,0 @@ -############################################################################# -# The following parameters must be altered for each platform and compiler. -# The default is for g++ on Unix and MSDOG. -############################################################################# -ADLIB_PATH = ../../include -CC = gcc -COPTS = -g -O -CINCLUDE = -I$(ADLIB_PATH) - -ad = $(ADLIB_PATH)/AD -D = $(ADLIB_PATH)/AD/tries - -OBJS = briandai.$(OBJ) comptrie.$(OBJ) hashtrie.$(OBJ) patricia.$(OBJ) trie.$(OBJ) - -all: $(OBJS) - -briandai.$(OBJ): briandai.cc $D/briandai.h $(ad)/generic/generic.h -comptrie.$(OBJ): comptrie.cc $D/comptrie.h $(ad)/generic/generic.h -hashtrie.$(OBJ): hashtrie.cc $D/hashtrie.h $(ad)/generic/generic.h -patricia.$(OBJ): patricia.cc $D/patricia.h $(ad)/generic/generic.h -trie.$(OBJ): trie.cc $D/trie.h $(ad)/generic/generic.h - -%.$(OBJ): %.cc - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cc) - -%.$(OBJ): %.cpp - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cpp) - -%.$(OBJ): %.cxx - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cxx) - -%.$(OBJ): %.C - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.C) diff --git a/lib-src/tries/Makefile.mk b/lib-src/tries/Makefile.mk new file mode 100644 index 0000000..1d14571 --- /dev/null +++ b/lib-src/tries/Makefile.mk @@ -0,0 +1,10 @@ +D := $(ADLIB_PATH)/AD/tries +S := tries + +SRC += $S/briandai.cc $S/comptrie.cc $S/hashtrie.cc $S/patricia.cc $S/trie.cc + +$S/briandai.$(OBJ): $S/briandai.cc $D/briandai.h $(ad)/generic/generic.h +$S/comptrie.$(OBJ): $S/comptrie.cc $D/comptrie.h $(ad)/generic/generic.h +$S/hashtrie.$(OBJ): $S/hashtrie.cc $D/hashtrie.h $(ad)/generic/generic.h +$S/patricia.$(OBJ): $S/patricia.cc $D/patricia.h $(ad)/generic/generic.h +$S/trie.$(OBJ): $S/trie.cc $D/trie.h $(ad)/generic/generic.h diff --git a/lib-src/visualize/Makefile b/lib-src/visualize/Makefile deleted file mode 100644 index 0bfd038..0000000 --- a/lib-src/visualize/Makefile +++ /dev/null @@ -1,43 +0,0 @@ -############################################################################# -# The following parameters must be altered for each platform and compiler. -# The default is for g++ on Unix and MSDOG. -############################################################################# -ADLIB_PATH = ../../include -CC = gcc -COPTS = -O6 -fexternal-templates -g -CINCLUDE = -I$(ADLIB_PATH) - -ad = $(ADLIB_PATH)/AD -D = $(ADLIB_PATH)/AD/visualize - -OBJS = vcg.$(OBJ) - -all: $(OBJS) - -qa: qa.cc $(OBJS) - $(CC) $(COPTS) $(CINCLUDE) -o qa qa.cc *.$(OBJ) -liostream - -vcg.$(OBJ): vcg.cc $(D)/vcg.h $(ad)/generic/generic.h \ - $(ad)/hash/lhash.h \ - $(ad)/visualize/vcg.h \ - $(ad)/hash/lhash.h \ - $(ad)/memory/strpool.h \ - $(ad)/contain/varstack.h \ - $(ad)/strings/charesc.h \ - $(ad)/pretty/postream.h - - -%.$(OBJ): %.cc - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cc) - -%.$(OBJ): %.cpp - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cpp) - -%.$(OBJ): %.cxx - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.cxx) - -%.$(OBJ): %.C - $(CC) -c $(COPTS) $(CINCLUDE) $(@:.$(OBJ)=.C) - -%.$(OBJ): %.s - $(AS) $(@:.$(OBJ)=.s) -o $@ diff --git a/lib-src/visualize/Makefile.mk b/lib-src/visualize/Makefile.mk new file mode 100644 index 0000000..a12b708 --- /dev/null +++ b/lib-src/visualize/Makefile.mk @@ -0,0 +1,13 @@ +D := $(ad)/visualize +S := visualize + +SRC += $S/vcg.cc + +$S/vcg.$(OBJ): $S/vcg.cc $(D)/vcg.h $(ad)/generic/generic.h \ + $(ad)/hash/lhash.h \ + $(ad)/visualize/vcg.h \ + $(ad)/hash/lhash.h \ + $(ad)/memory/strpool.h \ + $(ad)/contain/varstack.h \ + $(ad)/strings/charesc.h \ + $(ad)/pretty/postream.h -- 2.11.4.GIT