blob: 5b9449fa0be96887497bb809419c5acf47f6e13e (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
$NetBSD: patch-ab,v 1.2 2006/03/30 13:51:29 salo Exp $
--- Makefile.in.orig 2004-05-03 11:29:39.000000000 +0200
+++ Makefile.in 2005-11-05 21:07:50.000000000 +0100
@@ -6,14 +6,14 @@
# $date: Sun Jul 25 17:56:15 MET DST 1999$
# $rev: 3$
-CC= gcc
-AR=/usr/bin/ar
-RANLIB=/usr/bin/ranlib
-CCOPT= -O2 -Wall @PCAP_INCLUDE@
-DEBUG= -g
+#CC= gcc
+#AR=/usr/bin/ar
+#RANLIB=/usr/bin/ranlib
+#CCOPT= -O2 -Wall @PCAP_INCLUDE@
+#DEBUG= -g
#uncomment the following if you need libpcap based build under linux
#(not raccomanded)
-COMPILE_TIME= @FORCE_LIBPCAP@
+#COMPILE_TIME= @FORCE_LIBPCAP@
INSTALL_MANPATH=@MANPATH@
@PCAP@
@@ -39,21 +39,17 @@
all: hping2
libars.a: $(ARSOBJ)
- $(AR) rc $@ $^
+ $(AR) rc $@ $>
$(RANLIB) $@
hping2: byteorder.h $(OBJ)
- $(CC) -o hping2 $(CCOPT) $(DEBUG) $(OBJ) $(PCAP) @SOLARISLIB@
- @echo
- ./hping2 -v
- @echo "use \`make strip' to strip hping2 binary"
- @echo "use \`make install' to install hping2"
+ $(CC) -o hping2 $(LDFLAGS) $(OBJ) $(PCAP) @SOLARISLIB@
byteorder.h:
./configure
.c.o:
- $(CC) -c $(CCOPT) $(DEBUG) $(COMPILE_TIME) $<
+ $(CC) -c $(CFLAGS) $<
clean:
rm -rf hping2 *.o *.a
|