Annotation of embedaddon/hping2/Makefile.in, revision 1.1.1.1.2.1
1.1 misho 1: # $smu-mark$
2: # $name: Makefile.in$
3: # $author: Salvatore Sanfilippo 'antirez'$
4: # $copyright: Copyright (C) 1999 by Salvatore Sanfilippo$
5: # $license: This software is under GPL version 2 of license$
6: # $date: Sun Jul 25 17:56:15 MET DST 1999$
7: # $rev: 3$
8:
1.1.1.1.2.1! misho 9: CC= gcc
1.1 misho 10: AR=/usr/bin/ar
11: RANLIB=/usr/bin/ranlib
1.1.1.1.2.1! misho 12: CCOPT= -O2 -Wall @PCAP_INCLUDE@
1.1 misho 13: DEBUG= -g
14: #uncomment the following if you need libpcap based build under linux
15: #(not raccomanded)
16: COMPILE_TIME= @FORCE_LIBPCAP@
17: INSTALL_MANPATH=@MANPATH@
18: @PCAP@
19:
20: OBJ= main.o getifname.o getlhs.o \
21: linux_sockpacket.o parseoptions.o datafiller.o \
22: datahandler.o gethostname.o \
23: binding.o getusec.o opensockraw.o \
24: logicmp.o waitpacket.o resolve.o \
25: sendip.o sendicmp.o sendudp.o \
26: sendtcp.o cksum.o statistics.o \
27: usage.o version.o antigetopt.o \
28: sockopt.o listen.o \
29: sendhcmp.o memstr.o rtt.o \
30: relid.o sendip_handler.o \
31: libpcap_stuff.o memlockall.o memunlockall.o \
32: memlock.o memunlock.o ip_opt_build.o \
33: display_ipopt.o sendrawip.o signal.o send.o \
34: strlcpy.o arsglue.o random.o scan.o \
35: hstring.o libars.a
36:
37: ARSOBJ = ars.o apd.o split.o
38:
39: all: hping2
40:
41: libars.a: $(ARSOBJ)
42: $(AR) rc $@ $^
43: $(RANLIB) $@
44:
45: hping2: byteorder.h $(OBJ)
1.1.1.1.2.1! misho 46: $(CC) -o hping2 $(CCOPT) $(DEBUG) $(OBJ) $(PCAP) @SOLARISLIB@
1.1 misho 47: @echo
48: ./hping2 -v
49: @echo "use \`make strip' to strip hping2 binary"
50: @echo "use \`make install' to install hping2"
51:
52: byteorder.h:
53: ./configure
54:
55: .c.o:
1.1.1.1.2.1! misho 56: $(CC) -c $(CCOPT) $(DEBUG) $(COMPILE_TIME) $<
1.1 misho 57:
58: clean:
59: rm -rf hping2 *.o *.a
60: -(cd utils; $(MAKE) clean)
61:
62: distclean:
63: rm -rf hping2 *.o *.a byteorder byteorder.h systype.h Makefile
64: -(cd utils; $(MAKE) clean)
65:
66: install: hping2
67: cp -f hping2 /usr/sbin/
68: chmod 755 /usr/sbin/hping2
69: ln -sf /usr/sbin/hping2 /usr/sbin/hping
70: @if [ -d ${INSTALL_MANPATH}/man8 ]; then \
71: cp ./docs/hping2.8 ${INSTALL_MANPATH}/man8; \
72: chmod 644 ${INSTALL_MANPATH}/man8/hping2.8; \
73: else \
74: echo "@@@@@@ WARNING @@@@@@"; \
75: echo "Can't install the man page: ${INSTALL_MANPATH}/man8 does not exist"; \
76: fi
77:
78: strip: hping2
79: @ls -l ./hping2
80: strip hping2
81: @ls -l ./hping2
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>