Annotation of embedaddon/hping2/Makefile.in, revision 1.1.1.1.4.2
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.4.2! misho 9: CC?=gcc
! 10: AR?=ar
! 11: RANLIB?=ranlib
! 12: CROSSCOMPILE?=-D__LITTLE_ENDIAN_BITFIELD
! 13: CCOPT= -Wall $(CROSSCOMPILE) @CFLAGS@ @PCAP_INCLUDE@
1.1 misho 14: DEBUG= -g
15: #uncomment the following if you need libpcap based build under linux
16: #(not raccomanded)
17: COMPILE_TIME= @FORCE_LIBPCAP@
18: INSTALL_MANPATH=@MANPATH@
19: @PCAP@
20:
21: OBJ= main.o getifname.o getlhs.o \
22: linux_sockpacket.o parseoptions.o datafiller.o \
23: datahandler.o gethostname.o \
24: binding.o getusec.o opensockraw.o \
25: logicmp.o waitpacket.o resolve.o \
26: sendip.o sendicmp.o sendudp.o \
27: sendtcp.o cksum.o statistics.o \
28: usage.o version.o antigetopt.o \
29: sockopt.o listen.o \
30: sendhcmp.o memstr.o rtt.o \
31: relid.o sendip_handler.o \
32: libpcap_stuff.o memlockall.o memunlockall.o \
33: memlock.o memunlock.o ip_opt_build.o \
34: display_ipopt.o sendrawip.o signal.o send.o \
35: strlcpy.o arsglue.o random.o scan.o \
1.1.1.1.4.1 misho 36: hstring.o ars.o apd.o split.o
1.1 misho 37:
38: ARSOBJ = ars.o apd.o split.o
39:
40: all: hping2
41:
42: libars.a: $(ARSOBJ)
43: $(AR) rc $@ $^
44: $(RANLIB) $@
45:
46: hping2: byteorder.h $(OBJ)
47: $(CC) -o hping2 $(CCOPT) $(OBJ) $(PCAP) @SOLARISLIB@
48: @echo
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:
56: $(CC) -c $(CCOPT) $(COMPILE_TIME) $<
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>