summaryrefslogtreecommitdiff
path: root/net/hping/files/patch-Makefile.in
blob: da0dfa76aff1d73a3c4d32b23a7f6d9a53b46508 (plain) (blame)
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
32
33
--- Makefile.in.orig	Mon May  3 11:29:39 2004
+++ Makefile.in	Wed May 19 11:23:43 2004
@@ -6,10 +6,10 @@
 # $date: Sun Jul 25 17:56:15 MET DST 1999$ 
 # $rev: 3$ 
 
-CC= gcc
+CC?= gcc
 AR=/usr/bin/ar
 RANLIB=/usr/bin/ranlib
-CCOPT= -O2 -Wall @PCAP_INCLUDE@
+CCOPT= -Wall @CFLAGS@ @PCAP_INCLUDE@
 DEBUG= -g
 #uncomment the following if you need libpcap based build under linux
 #(not raccomanded)
@@ -43,7 +43,7 @@
 	$(RANLIB) $@
 
 hping2: byteorder.h $(OBJ)
-	$(CC) -o hping2 $(CCOPT) $(DEBUG) $(OBJ) $(PCAP) @SOLARISLIB@
+	$(CC) -o hping2 $(CCOPT) $(OBJ) $(PCAP) @SOLARISLIB@
 	@echo
 	./hping2 -v
 	@echo "use \`make strip' to strip hping2 binary"
@@ -53,7 +53,7 @@
 	./configure
 
 .c.o:
-	$(CC) -c $(CCOPT) $(DEBUG) $(COMPILE_TIME) $<
+	$(CC) -c $(CCOPT) $(COMPILE_TIME) $<
 
 clean:
 	rm -rf hping2 *.o *.a