Use uintptr_t Opaque type
[tedtools.git] / Makefile
1 topbuilddir=.
2
3 PROGRAM=sfxtest hextest inftest kilter psortex flatdbtest \
4                 tbtreetest gendata memtest glisttest prstest
5
6 LIBRARY=libtedtools.a
7 LIBOBJ=tlog.o tmalloc.o tools.o prs_hmap.o sfxstr.o \
8         regis.o prs_inf.o shmem.o tcp.o udp.o connpool.o \
9         psort.o flatdb.o tbtree.o glist.o
10
11 include $(topbuilddir)/Makefile.global
12
13 clean: clean-test
14
15 clean-test:
16         rm -rf sfxtest.log sfxtest.dump BTREE
17         rm -rf results diffs temp
18
19 test: all
20         @[ -d results ] || mkdir results
21         @[ -d diffs ] || mkdir diffs
22         @[ -d temp ] || mkdir temp
23         @for FILE in btree flatdb hex inf mem psort sfxmem glist prsqs ; do \
24                 echo -n $$FILE "        ........ " ; \
25                 if sh tests/$$FILE > results/$$FILE 2>results/$$FILE.errout && diff -c expected/$$FILE results/$$FILE > diffs/$$FILE ; then \
26                         echo ok ; \
27                 else \
28                         echo FAILED ; \
29                 fi ; \
30         done