| •1 |
CFLAGS+=-Wall -O2 -g -D_REENTRANT -std=gnu89 -ffile-prefix-map=$(CURDIR)=. |
| 2 |
#CFLAGS+=-DSYNC_FAST |
| 3 |
#CFLAGS+=-D_WITH_LINUX_KERNEL_HDR |
| 4 |
|
| •5 |
#LDFLAGS= |
| 6 |
#LDFLAGS=-static |
| 7 |
|
| 8 |
OBJ=hunt.o main.o c/list.o c/hash.o c/array.o util.o net.o \ |
| 9 |
rst.o menu.o hijack.o rstd.o sniff.o macdisc.o \ |
| 10 |
tap.o arphijack.o tty.o synchijack.o arpspoof.o hostup.o \ |
| 11 |
addpolicy.o options.o resolv.o timer.o pktrelay.o |
| 12 |
|
| 13 |
hunt: $(OBJ) |
| 14 |
$(CC) ${LDFLAGS} -o $@ $^ -lpthread |
| 15 |
|
| 16 |
hunt_static: $(OBJ) |
| 17 |
$(CC) ${LDFLAGS} -static -o $@ $^ -lpthread |
| 18 |
|
| 19 |
all: hunt hunt_static |
| 20 |
|
| 21 |
dist: all clean |
| 22 |
strip hunt |
| 23 |
strip hunt_static |
| 24 |
|
| 25 |
clean: |
| 26 |
rm -f *.o core c/*.o c/core c/list_test c/hash_test c/array_test |
| 27 |
$(MAKE) -C tpserv clean |
| 28 |
# rm -rf .sniff |
| 29 |
|
| 30 |
distclean: |
| 31 |
rm -f *.o core c/*.o c/core c/list_test c/hash_test c/array_test |
| 32 |
rm -f hunt hunt_static |
| 33 |
$(MAKE) -C tpserv distclean |
| 34 |
# rm -rf .sniff |
| 35 |
|
| 36 |
cleandist: distclean |
| 37 |
|
| 38 |
clean-dist: distclean |
| 39 |
|
| 40 |
dist-clean: distclean |
| 41 |
|