linux 2.6 conntrack stats
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
408B

  1. CFLAGS := -O2 -pipe -Wall
  2. LDFLAGS := -lpthread -lnfnetlink -lnetfilter_conntrack -lmysqlclient
  3. OBJS := configfile.o conntrack.o database.o hashtable.o logging.o ctstats.o
  4. all: ctstats
  5. ctstats: $(OBJS)
  6. $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
  7. %.o: %.c
  8. $(CC) $(CFLAGS) -c $< -o $@
  9. %.d: %.c
  10. $(CC) $(CFLAGS) -MM -c $< -o $@
  11. clean:
  12. rm -f ctstats *.d *.o *.log
  13. DEPS := $(wildcard *.c)
  14. -include $(DEPS:.c=.d)