GNUmakefile.in 504 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

capture: capture.c
21
	cc $(CFLAGS) -o capture $<
22

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

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