1 # --------------------------------------------------------------------
2 # Philip Kovacs (kovacsp3@comcast.net) 2005
3 # Make programs for testing libtcp-portmon and hash stuff up in ../src
4 # Sorry no autoconf/automake for this stuff as of now.
7 # --------------------------------------------------------------------
10 CFLAGS = -g -Wall -DHASH_DEBUG
13 all: test-hash test-portmon
15 test-hash: test-hash.o hash.o
16 $(CC) $(CFLAGS) -o $@ test-hash.o hash.o
18 test-portmon: test-portmon.o libtcp-portmon.o hash.o
19 $(CC) $(CFLAGS) -o $@ test-portmon.o libtcp-portmon.o hash.o -lm
21 test-hash.o: test-hash.c hash.h
22 test-portmon.o: test-portmon.c libtcp-portmon.h hash.h
30 libtcp-portmon.h: ../src/libtcp-portmon.h
31 cp ../src/libtcp-portmon.h .
33 libtcp-portmon.c: ../src/libtcp-portmon.c
34 cp ../src/libtcp-portmon.c .
36 libtcp-portmon.o: libtcp-portmon.c libtcp-portmon.h
43 /bin/rm -f *.o test-portmon test-hash hash.? libtcp-portmon.?