-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile.in
58 lines (47 loc) · 1.58 KB
/
Makefile.in
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
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
sbindir=@sbindir@
libexecdir=@libexecdir@
datadir=@datadir@
mandir=@mandir@
sysconfdir=@sysconfdir@
srcdir=@srcdir@
top_srcdir=@top_srcdir@
VPATH=@srcdir@
CC=@CC@
LDFLAGS=@LDFLAGS@
CFLAGS=@CFLAGS@
CPPFLAGS=-I$(srcdir) @CPPFLAGS@
LIBS=@LIBS@
EXEEXT=@EXEEXT@
INSTALL=@INSTALL@
#CFLAGS+=-DFLOW_RB # Use red-black tree for flows
CFLAGS+=-DFLOW_SPLAY # Use splay tree for flows
CFLAGS+=-DEXPIRY_RB # Use red-black tree for expiry events
#CFLAGS+=-DEXPIRY_SPLAY # Use splay tree for expiry events
TARGETS=softflowd${EXEEXT} softflowctl${EXEEXT}
COMMON=convtime.o strlcpy.o strlcat.o closefrom.o daemon.o
SOFTFLOWD=softflowd.o log.o netflow1.o netflow5.o netflow9.o ipfix.o freelist.o
all: $(TARGETS)
softflowd${EXEEXT}: ${SOFTFLOWD} $(COMMON)
$(CC) $(LDFLAGS) -o $@ ${SOFTFLOWD} $(COMMON) $(LIBS)
softflowctl${EXEEXT}: softflowctl.o $(COMMON)
$(CC) $(LDFLAGS) -o $@ softflowctl.o $(COMMON) $(LIBS)
clean:
rm -f $(TARGETS) *.o core *.core
realclean: clean
rm -rf autom4te.cache Makefile config.log config.status
distclean: realclean
rm -f config.h* configure
strip:
strip $(TARGETS)
install:
[ -d $(DESTDIR)$(sbindir) ] || \
$(srcdir)/mkinstalldirs $(DESTDIR)$(sbindir)
[ -d $(DESTDIR)$(mandir)/man8 ] || \
$(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/man8
$(INSTALL) -m 0755 -s softflowd $(DESTDIR)$(sbindir)/softflowd
$(INSTALL) -m 0755 -s softflowctl $(DESTDIR)$(sbindir)/softflowctl
$(INSTALL) -m 0644 softflowd.8 $(DESTDIR)$(mandir)/man8/softflowd.8
$(INSTALL) -m 0644 softflowctl.8 $(DESTDIR)$(mandir)/man8/softflowctl.8