c9feed3f56
This is the devel branch of hping: it's the same, but with a TCL scripting feature. PR: ports/88552 Submitted by: Nicolas Jombart
39 lines
1.2 KiB
Text
39 lines
1.2 KiB
Text
--- Makefile.in.orig Sat Apr 10 01:38:56 2004
|
|
+++ Makefile.in Mon Oct 31 10:48:24 2005
|
|
@@ -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@ @TCL_INC@ @USE_TCL@
|
|
+CCOPT= -Wall @CFLAGS@ @PCAP_INCLUDE@ @TCL_INC@ @USE_TCL@
|
|
DEBUG= -g
|
|
#uncomment the following if you need libpcap based build under linux
|
|
#(not raccomanded)
|
|
@@ -50,20 +50,20 @@
|
|
$(RANLIB) $@
|
|
|
|
hping3: byteorder.h $(OBJ)
|
|
- $(CC) -o hping3 $(CCOPT) $(DEBUG) $(OBJ) -L/usr/local/lib $(PCAP) @SOLARISLIB@ @TCL_LIB@
|
|
+ $(CC) -o hping3 $(CCOPT) $(OBJ) -L/usr/local/lib $(PCAP) @SOLARISLIB@ @TCL_LIB@
|
|
@echo
|
|
./hping3 -v
|
|
@echo "use \`make strip' to strip hping3 binary"
|
|
@echo "use \`make install' to install hping3"
|
|
|
|
hping3-static: byteorder.h $(OBJ)
|
|
- $(CC) -static -o hping3-static $(CCOPT) $(DEBUG) $(OBJ) -L/usr/local/lib $(PCAP) @SOLARISLIB@ @TCL_LIB@ -ldl
|
|
+ $(CC) -static -o hping3-static $(CCOPT) $(OBJ) -L/usr/local/lib $(PCAP) @SOLARISLIB@ @TCL_LIB@ -ldl
|
|
|
|
byteorder.h:
|
|
./configure
|
|
|
|
.c.o:
|
|
- $(CC) -c $(CCOPT) $(DEBUG) $(COMPILE_TIME) $<
|
|
+ $(CC) -c $(CCOPT) $(COMPILE_TIME) $<
|
|
|
|
clean:
|
|
rm -rf hping3 *.o libars.a
|