File: Makefile.in

package info (click to toggle)
ngrep 1.43-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,776 kB
  • ctags: 1,246
  • sloc: ansic: 28,753; sh: 10,488; makefile: 487; perl: 192
file content (78 lines) | stat: -rw-r--r-- 1,879 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
67
68
69
70
71
72
73
74
75
76
77
78
#
# $Id: Makefile.in,v 1.19 2005/02/23 23:15:12 jpr5 Exp $
#
# Copyright (c) 2005  Jordan Ritter <jpr5@darkridge.com>
#
# Please refer to the LICENSE file for more information.

CC=@CC@

CFLAGS=@CFLAGS@ -D@OS@ @DEFS@ @EXTRA_DEFINES@ 
INCLUDES=-I@srcdir@ @PCAP_INCLUDE@ @EXTRA_INCLUDES@

LDFLAGS=@LDFLAGS@ @PCAP_LINK@
LIBS=-lpcap -lpcre @EXTRA_LIBS@ 

STRIPFLAG=@STRIPFLAG@

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

prefix      = @prefix@
exec_prefix = @exec_prefix@

bindir      = $(prefix)/bin
datadir     = $(prefix)/share
mandir      = $(datadir)/man

BINDIR_INSTALL = $(prefix)/bin
MANDIR_INSTALL = $(mandir)/man8

INSTALL = ./install-sh

REGEX_TARGET=@REGEX_TARGET@
REGEX_OBJS=@REGEX_OBJS@


all: $(TARGET) 

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

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

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

install: $(TARGET)
	$(INSTALL) -c -m 0755 $(TARGET)  $(DESTDIR)/$(BINDIR_INSTALL)/$(TARGET)
	$(INSTALL) -c -m 0644 $(MANPAGE) $(DESTDIR)/$(MANDIR_INSTALL)/$(MANPAGE)

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

distclean: clean
	rm -f config.status config.cache config.log config.h Makefile 

$(OBJS): Makefile

.c.o:	
	$(CC) $(CFLAGS) $(INCLUDES) -g -c $<
pcre: 
	@cd pcre-5.0 && make $(REGEX_OBJS) && cp -f $(REGEX_OBJS) .. 

clean-pcre:
	cd pcre-5.0 && test -f ./Makefile && make distclean 
	cd pcre-5.0 && rm -f RunTest dftables libpcre.pc

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

clean-regex:
	cd regex-0.12 && test -f ./Makefile && make distclean
	cd regex-0.12 && rm -f Makefile doc/Makefile test/Makefile config.cache config.log config.status

ngrep.o: ngrep.c ngrep.h