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