GNUmakefile.in 525 Bytes
Newer Older
1
2
3
4
5
6
SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ..
SUBDIR		= capture

include $(OBJDIR)/Makeconf
7
8
9

all: capture

10
include $(TESTBED_SRCDIR)/GNUmakerules
11

12
DESTDIR=
13
14
15
16
17
18

#
# Define LOG_DROPS to record warnings in syslog whenever chars were dropped
# due to the output device/pty being full.
#
CFLAGS= -g -O2 -DLOG_DROPS
19
20
21
22

capture: capture.c
	cc $(CFLAGS) -o capture capture.c

23
24
25
26
27
#
# Do not install by default.
#
install:
real-install:	all
28
29
	install -s capture $(DESTDIR)/usr/site/bin

30
clean:
31
	rm -f *.o capture core errs Errs