Makefile.in 1.6 KB

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