# Makefile CC?=cc #DEBUG=-g -DDEBUG # Add -DLINUX if you compile on Linux # Thanks to Gary Miller <gem@rellim.com> CFLAGS?=-O -pipe OBJS=main.o null.o ether.o ip.o LIBS= -lpcap SRC=$(OBJS:%.o=%.c) all: tdetect tdetect: $(OBJS) $(CC) $(OBJS) $(LIBS) $(DEBUG) -s -o tdetect clean: rm -f *.o tdetect *.b .c.o: $(CC) $(CFLAGS) $(DEBUG) -c $< null.o: ip.h ether.o: ip.h