GNUmakefile.in 866 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
9

10
include $(TESTBED_SRCDIR)/GNUmakerules
11

12
13
DBFLAGS	+= -DTBDBNAME='"$(TBDBNAME)"' -I/usr/local/include

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 -DUSESOCKETS
21

22
capture: capture.c capdecls.h
23
	cc $(CFLAGS) -o capture $<
24

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

29
#
30
# Do not capture install by default.
31
#
32
33
install:	all $(INSTALL_SBINDIR)/capserver

34
real-install:	all $(INSTALL_SBINDIR)/capserver
35
36
	install -s capture $(DESTDIR)/usr/site/bin

37
38
39
tipserv-install:	all
	install -s capture $(DESTDIR)/usr/site/bin

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