Branch oldpackages for 14.07
[14.07/packages.git] / net / hping3 / patches / 100-makefile.patch
1 --- a/Makefile
2 +++ b/Makefile
3 @@ -6,15 +6,15 @@
4  # $date: Sun Jul 25 17:56:15 MET DST 1999$ 
5  # $rev: 3$ 
6  
7 -CC= gcc
8 -AR=/usr/bin/ar
9 -RANLIB=/usr/bin/ranlib
10 -CCOPT= -O2 -Wall  -I/usr/include/tcl8.4 -DUSE_TCL
11 -DEBUG= -g
12 +#CC= gcc
13 +#AR=/usr/bin/ar
14 +#RANLIB=/usr/bin/ranlib
15 +#CCOPT= -O2 -Wall   
16 +#DEBUG= -g
17  #uncomment the following if you need libpcap based build under linux
18  #(not raccomanded)
19  COMPILE_TIME=
20 -INSTALL_MANPATH=/usr/local/man
21 +#INSTALL_MANPATH=/usr/local/man
22  PCAP=-lpcap
23  
24  ARSOBJ = ars.o apd.o split.o rapd.o
25 @@ -50,20 +50,16 @@ libars.a: $(ARSOBJ)
26         $(RANLIB) $@
27  
28  hping3: byteorder.h $(OBJ)
29 -       $(CC) -o hping3 $(CCOPT) $(DEBUG) $(OBJ) -L/usr/local/lib $(PCAP)  -ltcl8.4 -lm -lpthread
30 -       @echo
31 -       ./hping3 -v
32 -       @echo "use \`make strip' to strip hping3 binary"
33 -       @echo "use \`make install' to install hping3"
34 +       $(CC) -o hping3 $(CFLAGS) $(LDFLAGS) $(DEBUG) $(OBJ) $(PCAP) -lm -lpthread
35  
36  hping3-static: byteorder.h $(OBJ)
37 -       $(CC) -static -o hping3-static $(CCOPT) $(DEBUG) $(OBJ) -L/usr/local/lib $(PCAP)  -ltcl8.4 -lm -lpthread -ldl
38 +       $(CC) -static -o hping3-static $(CFLAGS) $(LDFLAGS) $(DEBUG) $(OBJ) $(PCAP) -lm -lpthread -ldl
39  
40  byteorder.h:
41         ./configure
42  
43  .c.o:
44 -       $(CC) -c $(CCOPT) $(DEBUG) $(COMPILE_TIME) $<
45 +       $(CC) -c $(CFLAGS) $(LDFLAGS) $(DEBUG) $(COMPILE_TIME) $<
46  
47  clean:
48         rm -rf hping3 *.o libars.a