7 CFLAGS=-Wall -g -O2 -pedantic -ansi -DASSERT_CORE -D_GNU_SOURCE -DHAVE_POLL_H -DHAVE_SYS_POLL_H -DHAVE_HSTRERROR
8 LIB=-g -L. -ltedtools -lm
10 OBJS=tlog.o tmalloc.o tools.o prs_hmap.o sfxstr.o \
11 regis.o prs_inf.o shmem.o tcp.o udp.o connpool.o \
12 psort.o flatdb.o tbtree.o
13 PROGS=sfxtest hextest inftest kilter psortex flatdbtest tbtreetest gendata
17 all: libtedtools.a $(PROGS)
22 $(PROGS): libtedtools.a
24 libtedtools.a: $(OBJS)
29 $(CC) $(CFLAGS) $(INCLUDE) -c $<
33 @[ -d results ] || mkdir results
34 @[ -d diffs ] || mkdir diffs
35 @[ -d temp ] || mkdir temp
36 @for FILE in `ls tests/* | sed -e 's#^tests/##'` ; do \
37 echo -n $$FILE " ........ " ; \
38 if sh tests/$$FILE > results/$$FILE 2>results/$$FILE.errout && diff -c expected/$$FILE results/$$FILE > diffs/$$FILE ; then \
49 rm -rf *core *gmon* nohup.out
50 rm -rf sfxtest.log BTREE
51 rm -rf results diffs temp