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
|
#
# try ./configure first to fill in all the definitions corresponding
# to your system, but you always can edit the sections below manually.
#
CC= @CC@
CFLAGS= @CFLAGS@
LIBS= @LIBS@
DEFS= @DEFS@
INSTALL= @INSTALL@
prefix=
binprefix = ${prefix}/sbin
#
# ------------ you shouldn't need to configure below here -----------------
#
TARGET = ipgrab
OBJS = ipgrab.o parse_cl.o error.o open_pcap.o version.o addrtoname.o ethernet.o raw.o slip.o ip.o in_cksum.o udp.o tcp.o arp.o payload.o
.c.o:
$(CC) -c $(CFLAGS) $(DEFS) $<
$(TARGET): $(OBJS)
$(CC) -o $@ $(OBJS) $(LIBS)
version.o: version.c
version.c: VERSION
@rm -f $@
sed -e 's/.*/char version[] = "&";/' VERSION > $@
install:
$(INSTALL) $(TARGET) $(binprefix)/$(TARGET)
clean:
rm -f *.o version.c *~ $(TARGET)
distclean:
rm -f *.o version.c *~ $(TARGET) Makefile config.cache config.log config.status config.h
|