7 CFLAGS=-Wall -g -O2 -pedantic -ansi -DASSERT_CORE -DHAVE_POLL_H -DHAVE_HSTRERROR
14 CFLAGS+= -DHAVE_POLL_H
18 CFLAGS+= -DHAVE_SYS_POLL_H -D_GNU_SOURCE -D_LARGE_FILES -D_FILE_OFFSET_BITS=64
21 LIB=-g -L. -ltedtools -lm
23 OBJS=tlog.o tmalloc.o tools.o prs_hmap.o sfxstr.o \
24 regis.o prs_inf.o shmem.o tcp.o udp.o connpool.o \
25 psort.o flatdb.o tbtree.o glist.o
26 PROGS=sfxtest hextest inftest kilter psortex flatdbtest \
27 tbtreetest gendata memtest glisttest
31 all: libtedtools.a $(PROGS)
36 $(PROGS): libtedtools.a
38 libtedtools.a: $(OBJS)
43 $(CC) $(CFLAGS) $(INCLUDE) -c $<
47 @[ -d results ] || mkdir results
48 @[ -d diffs ] || mkdir diffs
49 @[ -d temp ] || mkdir temp
50 @for FILE in btree flatdb hex inf mem psort sfxmem glist ; do \
51 echo -n $$FILE " ........ " ; \
52 if sh tests/$$FILE > results/$$FILE 2>results/$$FILE.errout && diff -c expected/$$FILE results/$$FILE > diffs/$$FILE ; then \
63 rm -rf *core *gmon* nohup.out
64 rm -rf sfxtest.log BTREE
65 rm -rf results diffs temp