File: Makefile

package info (click to toggle)
ngrep 1.35-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 388 kB
  • ctags: 388
  • sloc: ansic: 3,494; sh: 1,760; makefile: 67
file content (47 lines) | stat: -rw-r--r-- 1,267 bytes parent folder | download
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
# Generated automatically from Makefile.in by configure.
#
# $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=gcc

INCLUDES=-I. 
CFLAGS=-g -O2  -DSTDC_HEADERS=1 -DHAVE_IF_ETHER_H=1 -DDLT_RAW=12 -DRETSIGTYPE=void -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -D_BSD_SOURCE=1 -D__FAVOR_BSD=1 -DLINUX=1 -DHAVE_LIBPCAP=1 -DPCAP_RESTART=pcap_restart  
LIBS=-lpcap 

SRC=ngrep.c regex.c
OBJS=ngrep.o regex.o
TARGET=ngrep
MANPAGE=ngrep.8

INSTALL=./install-sh
BINDEST=/home/ares/src/ngrep-1.35/debian/tmp/usr/bin
MANDEST=${prefix}/share/man/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