summaryrefslogtreecommitdiff
blob: c226b6f00d456e6fb52d19f3813e767c120e2b08 (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
31
--- a/Makefile.in
+++ b/Makefile.in
@@ -10,13 +10,13 @@
 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 \
+DEP_FILES  = sn_config.h sn_data.h sn_defines.h sn_plugins.h \
              sn_analyse.c sn_conn_desc.c \
              sn_packets.o \
              sn_generation.o sn_interface.o sn_cfgfile.o sn_logfile.o \
@@ -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)