Makefile.in 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # $Id$
  2. prefix=@prefix@
  3. exec_prefix=@exec_prefix@
  4. bindir=@bindir@
  5. sbindir=@sbindir@
  6. libexecdir=@libexecdir@
  7. datadir=@datadir@
  8. mandir=@mandir@
  9. sysconfdir=@sysconfdir@
  10. srcdir=@srcdir@
  11. top_srcdir=@top_srcdir@
  12. VPATH=@srcdir@
  13. CC=@CC@
  14. LDFLAGS=@LDFLAGS@
  15. CFLAGS=@CFLAGS@
  16. CPPFLAGS=-I$(srcdir) @CPPFLAGS@
  17. LIBS=@LIBS@
  18. EXEEXT=@EXEEXT@
  19. INSTALL=@INSTALL@
  20. #CFLAGS+=-DFLOW_RB # Use red-black tree for flows
  21. CFLAGS+=-DFLOW_SPLAY # Use splay tree for flows
  22. CFLAGS+=-DEXPIRY_RB # Use red-black tree for expiry events
  23. #CFLAGS+=-DEXPIRY_SPLAY # Use splay tree for expiry events
  24. TARGETS=softflowd${EXEEXT} softflowctl${EXEEXT}
  25. COMMON=convtime.o strlcpy.o strlcat.o closefrom.o daemon.o
  26. SOFTFLOWD=softflowd.o log.o netflow1.o netflow5.o netflow9.o freelist.o
  27. all: $(TARGETS)
  28. softflowd${EXEEXT}: ${SOFTFLOWD} $(COMMON)
  29. $(CC) $(LDFLAGS) -o $@ ${SOFTFLOWD} $(COMMON) $(LIBS)
  30. softflowctl${EXEEXT}: softflowctl.o $(COMMON)
  31. $(CC) $(LDFLAGS) -o $@ softflowctl.o $(COMMON) $(LIBS)
  32. clean:
  33. rm -f $(TARGETS) *.o core *.core
  34. realclean: clean
  35. rm -rf autom4te.cache Makefile config.log config.status
  36. distclean: realclean
  37. rm -f config.h* configure
  38. strip:
  39. strip $(TARGETS)
  40. install:
  41. [ -d $(DESTDIR)$(sbindir) ] || \
  42. $(srcdir)/mkinstalldirs $(DESTDIR)$(sbindir)
  43. [ -d $(DESTDIR)$(mandir)/man8 ] || \
  44. $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/man8
  45. $(INSTALL) -m 0755 -s softflowd $(DESTDIR)$(sbindir)/softflowd
  46. $(INSTALL) -m 0755 -s softflowctl $(DESTDIR)$(sbindir)/softflowctl
  47. $(INSTALL) -m 0644 softflowd.8 $(DESTDIR)$(mandir)/man8/softflowd.8
  48. $(INSTALL) -m 0644 softflowctl.8 $(DESTDIR)$(mandir)/man8/softflowctl.8