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

include $(OBJDIR)/Makeconf
7

8
all: capture capserver capture-tty
9

10
include $(TESTBED_SRCDIR)/GNUmakerules
11

12
DBFLAGS	+= -I/usr/local/include
13

14
DESTDIR=
15 16 17 18 19

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

22
capture: capture.c capdecls.h
23
	cc $(CFLAGS) -DUSESOCKETS -DWITHSSL -DPREFIX=\"$(TBROOT)\" -o capture $< -lssl -lcrypto
24 25 26

capture-tty: capture.c capdecls.h
	cc $(CFLAGS) -o capture-tty $<
27

28 29 30 31
capserver:	capserver.c capdecls.h
	cc $(CFLAGS) $(DBFLAGS) -o capserver $< \
		-L/usr/local/lib/mysql -lmysqlclient

32
#
33
# Do not capture install by default.
34
#
35 36
install:	all $(INSTALL_SBINDIR)/capserver

37
real-install:	all $(INSTALL_SBINDIR)/capserver $(INSTALL_SBINDIR)/capture
38

39
tipserv-install:	all $(INSTALL_SBINDIR)/capture
40

41
clean:
42
	rm -f *.o capture core errs Errs