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
|
#
# $Id: Makefile.in,v 1.12 1999/06/29 02:20:02 jpr5 Exp $
#
# Modified for Debian GNU/Linux by Nathan E. Sandver <nsandver@debian.org>
CC=@CC@
INCLUDES=-I@srcdir@ @PCAP_INCLUDE@
CFLAGS=@CFLAGS@ @DEFS@
LIBS=-lpcap @EXTRA_LIBS@
SRC=ngrep.c regex.c
OBJS=ngrep.o regex.o
TARGET=ngrep
MANPAGE=ngrep.8
INSTALL=./install-sh
BINDEST=@prefix@/bin
MANDEST=@mandir@/man8
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) -s -o $(TARGET) $(OBJS) $(LIBS)
debug: $(OBJS)
$(CC) $(CFLAGS) -g -o $(TARGET) $(OBJS) $(LIBS)
static: $(OBJS)
$(CC) $(CFLAGS) -static -o $(TARGET) $(OBJS) $(LIBS)
install: $(TARGET)
$(INSTALL) -c -m 0755 $(TARGET) $(BINDEST)
$(INSTALL) -c -m 0644 $(MANPAGE) $(MANDEST)
.c.o:
$(CC) $(CFLAGS) $(INCLUDES) -g -c $<
clean:
rm -f *~ *.o $(TARGET) config.status config.cache config.log
test:
mv -f html RCS ..
(cd ..; tar zcvf ngrep-`cat ngrep/ngrep.c | grep Revision | sed 's/^.*Revision: \(.*\) .*$$/\1/'`-test.tar.gz ngrep)
mv -f ../html ../RCS .
ngrep.o: ngrep.c ngrep.h
regex.o: regex.c regex.h
|