File: Makefile.in

package info (click to toggle)
ngrep 1.40.1-2.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,812 kB
  • ctags: 1,171
  • sloc: ansic: 14,461; sh: 10,088; makefile: 403; perl: 306; awk: 15; sed: 8
file content (66 lines) | stat: -rw-r--r-- 1,516 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#
# $Id: Makefile.in,v 1.5 2001/12/31 22:05:21 jpr5 Exp $
#
# Copyright (c) 2001  Jordan Ritter <jpr5@darkridge.com>
#
# Please refer to the COPYRIGHT file for more information.


CC=@CC@

INCLUDES=-I@srcdir@ @PCAP_INCLUDE@
CFLAGS=@CFLAGS@ @DEFS@
LDFLAGS=@LDFLAGS@ @PCAP_LINK@
LIBS=-lpcap @EXTRA_LIBS@
STRIPFLAG=@STRIPFLAG@

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

INSTALL=./install-sh
BINDEST=${prefix}/@prefix@/bin
MANDEST=${prefix}/@prefix@/share/man/man8

REGEX_TARGET=@REGEX_TARGET@
REGEX_OBJS=@REGEX_OBJS@


all: $(TARGET) 

$(TARGET): $(REGEX_TARGET) $(OBJS) 
	$(CC) $(CFLAGS) $(LDFLAGS) $(STRIPFLAG) -o $(TARGET) $(OBJS) $(REGEX_OBJS) $(LIBS) 

debug: $(OBJS)
	$(CC) $(CFLAGS) $(LDFLAGS) -g -o $(TARGET) $(OBJS) $(REGEX_OBJS) $(LIBS) 

static: $(OBJS)
	$(CC) $(CFLAGS) $(LDFLAGS) $(STRIPFLAG) -o $(TARGET).static -static $(OBJS) $(REGEX_OBJS) $(LIBS) 

install: $(TARGET)
	$(INSTALL) -c -m 0755 $(TARGET) $(BINDEST)
	$(INSTALL) -c -m 0644 $(MANPAGE) $(MANDEST)

pcre: 
	@( cd pcre-3.4; make $(REGEX_OBJS) && cp -f $(REGEX_OBJS) .. )

regex: 
	@( cd regex-0.12; make $(REGEX_OBJS) && cp -f $(REGEX_OBJS) .. )

.c.o:	
	$(CC) $(CFLAGS) $(INCLUDES) -g -c $<

clean:
	rm -f *~ $(OBJS) $(REGEX_OBJS) $(TARGET) 

distclean: clean clean-$(REGEX_TARGET)
	rm -f config.status config.cache config.log Makefile .depends

clean-pcre:
	( cd pcre-3.4; if [ -f ./Makefile ]; then make distclean; fi )

clean-regex:
	( cd regex-0.12; if [ -f ./Makefile ]; then make distclean; fi )

ngrep.o: ngrep.c ngrep.h