| 1 |
#-- Imported variables from top level makefile |
| 2 |
# BIN_DIR AUX_BIN_DIR CXX CC CFLAGS CXXFLAGS LDFLAGS |
| 3 |
|
| 4 |
##include ../Makedef |
| 5 |
|
| 6 |
LIBBASEDIR=../libbasedir |
| 7 |
INCLUDEDIR=../libbasedir |
| 8 |
|
| 9 |
# the following flags determines the maximal allowed input size of |
| 10 |
# the suffix tree construction |
| 11 |
# STREESMALL means that the maximal sequence length is 2 MB |
| 12 |
# STREELARGE means that the maximal sequence length is 134 MB |
| 13 |
# STREEHUGE means that the maximal sequence length is 500 MB |
| 14 |
|
| 15 |
#SIZEFLAG=-DSTREESMALL |
| 16 |
#SIZEFLAG=-DSTREELARGE |
| 17 |
SIZEFLAG=-DSTREEHUGE |
| 18 |
|
| 19 |
override CFLAGS+=-I$(INCLUDEDIR) $(SIZEFLAG) |
| 20 |
##CFLAGS=${DEFINECFLAGS} -I$(INCLUDEDIR) $(SIZEFLAG) |
| 21 |
##LDFLAGS=${DEFINELDFLAGS} |
| 22 |
SPLINTFLAGS=${SIZEFLAG} -I${INCLUDEDIR} -f ../Splintoptions -DDEBUG |
| 23 |
|
| 24 |
#-DSTARTFACTOR=0.5 |
| 25 |
|
| 26 |
LD=${CC} |
| 27 |
|
| 28 |
LIBBASE=${LIBBASEDIR}/libbase.a |
| 29 |
LIBBASEDBG=${LIBBASEDIR}/libbase.dbg.a |
| 30 |
|
| 31 |
PROTOFILES=access.c scanpref.c linkloc.c depthtab.c\ |
| 32 |
ex2leav.c dfs.c overmax.c oversucc.c\ |
| 33 |
addleafcount.c iterator.c streedbg.c |
| 34 |
|
| 35 |
OBJECTS4=construct.4.o access.4.o scanpref.4.o linkloc.4.o depthtab.4.o\ |
| 36 |
ex2leav.4.o dfs.4.o overmax.4.o oversucc.4.o\ |
| 37 |
addleafcount.4.o iterator.4.o |
| 38 |
|
| 39 |
OBJECTS=construct.o access.o scanpref.o linkloc.o depthtab.o\ |
| 40 |
ex2leav.o dfs.o overmax.o oversucc.o\ |
| 41 |
addleafcount.o iterator.o |
| 42 |
|
| 43 |
DBGOBJECTS4=construct.dbg.4.o access.dbg.4.o streedbg.dbg.4.o\ |
| 44 |
depthtab.dbg.4.o scanpref.dbg.4.o linkloc.dbg.4.o\ |
| 45 |
ex2leav.dbg.4.o dfs.dbg.4.o overmax.dbg.4.o oversucc.dbg.4.o\ |
| 46 |
addleafcount.dbg.4.o iterator.dbg.4.o |
| 47 |
|
| 48 |
DBGOBJECTS=construct.dbg.o access.dbg.o streedbg.dbg.o depthtab.dbg.o\ |
| 49 |
scanpref.dbg.o linkloc.dbg.o ex2leav.dbg.o dfs.dbg.o\ |
| 50 |
overmax.dbg.o oversucc.dbg.o addleafcount.dbg.o iterator.dbg.o |
| 51 |
|
| 52 |
SPLINTALL=access.splint scanpref.splint linkloc.splint depthtab.splint\ |
| 53 |
ex2leav.splint dfs.splint overmax.splint oversucc.splint\ |
| 54 |
addleafcount.splint iterator.splint streedbg.splint\ |
| 55 |
loc.splint stree.splint |
| 56 |
|
| 57 |
.SUFFIXES: .o .4.o .dbg.o .dbg.4.o .a .dbg.a .4.a .dbg.4.a .x .dbg.x |
| 58 |
|
| 59 |
all: libs progs |
| 60 |
|
| 61 |
libs: libstree.a libstree.dbg.a |
| 62 |
|
| 63 |
progs: stree.x stree.dbg.x loc.x loc.dbg.x |
| 64 |
|
| 65 |
include Filegoals.mf |
| 66 |
|
| 67 |
libstree.4.a: $(OBJECTS4) |
| 68 |
ar sruv $@ $(OBJECTS4) |
| 69 |
|
| 70 |
libstree.a: $(OBJECTS) |
| 71 |
ar sruv $@ $(OBJECTS) |
| 72 |
|
| 73 |
libstree.dbg.4.a: $(DBGOBJECTS4) |
| 74 |
ar sruv $@ $(DBGOBJECTS4) |
| 75 |
|
| 76 |
libstree.dbg.a: $(DBGOBJECTS) |
| 77 |
ar sruv $@ $(DBGOBJECTS) |
| 78 |
|
| 79 |
|
| 80 |
stree.x: stree.o libstree.a |
| 81 |
$(LD) $(LDFLAGS) stree.o libstree.a $(LIBBASE) -o $@ |
| 82 |
|
| 83 |
loc.x: loc.o libstree.a |
| 84 |
$(LD) $(LDFLAGS) loc.o libstree.a $(LIBBASE) -o $@ |
| 85 |
|
| 86 |
stree.dbg.x: stree.dbg.o libstree.dbg.a |
| 87 |
$(LD) $(LDFLAGS) stree.dbg.o libstree.dbg.a $(LIBBASEDBG) -o $@ |
| 88 |
|
| 89 |
loc.dbg.x: loc.dbg.o libstree.dbg.a |
| 90 |
$(LD) $(LDFLAGS) loc.dbg.o libstree.dbg.a $(LIBBASEDBG) -o $@ |
| 91 |
|
| 92 |
streeproto.h: $(PROTOFILES) Mkstreeproto.sh |
| 93 |
@echo "make $@" |
| 94 |
@Mkstreeproto.sh ${PROTOFILES} > $@ |
| 95 |
|
| 96 |
.PHONY:clean |
| 97 |
clean:splintclean |
| 98 |
rm -f *.[aox] *~ |
| 99 |
|
| 100 |
stree.dbg.o: streedbg.o construct.dbg.o |
| 101 |
|
| 102 |
construct.dbg.o: construct.gen |
| 103 |
|
| 104 |
include Dependencies.mf |