summaryrefslogtreecommitdiff
blob: fe9c14c15f9451ed37d45f8552ac2741d6bcad22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Do not build or link against included libpcap.
Respect CFLAGS and LDFLAGS.

--- a/Makefile.in	1998-07-16 18:17:10.000000000 +0200
+++ b/Makefile.in	2010-09-13 00:10:51.000000000 +0200
@@ -10,10 +10,10 @@
 LIBS       = @LIBS@
 DEFS	   = @DEFS@
 OS_OPT     = @OS_OPT@
-OBJ_FLAG   = -w -O2 -c
-OBJ_OPT    = -I./libpcap -L./libpcap
-EXE_FLAG   = -w -O2 -o sniffit
-EXE_OPT    = -I./libpcap -L./libpcap -lpcap
+OBJ_FLAG   = $(CFLAGS) -c
+OBJ_OPT    = -I/usr/include/pcap -L/usr/lib
+EXE_FLAG   = $(CFLAGS) $(LDFLAGS) -o sniffit
+EXE_OPT    = -I/usr/include/pcap -lpcap
 EXE_OBJ    = sn_packets.o sn_generation.o sn_interface.o sn_cfgfile.o \
              sn_logfile.o sn_resolv.o
 DEP_FILES  = sn_config.h ./libpcap/pcap.h sn_data.h sn_defines.h sn_plugins.h \
@@ -26,9 +26,7 @@
 	@echo "Succesfull compilation..."
 
 sniffit: $(SNIFFIT) $(DEP_FILES)
-	cd libpcap; make; cd ..
 	$(CC) $(EXE_FLAG) $(SNIFFIT) $(EXE_OBJ) $(EXE_OPT) $(LIBS) $(DEFS) $(OS_OPT) 
-	strip sniffit
 
 sn_cfgfile.o: sn_cfgfile.h sn_cfgfile.c sn_defines.h sn_structs.h sn_config.h
 	$(CC) $(OBJ_FLAG) sn_cfgfile.c $(OBJ_OPT) $(DEFS)