ebt_ulog based arpwatch
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
407B

  1. CFLAGS := -O2 -pipe -Wall
  2. LDFLAGS := -lpthread -lnfnetlink -lnetfilter_log
  3. OBJS := configfile.o datastore.o event.o logging.o netlink.o ulogparse.o
  4. all: brarpwatch
  5. brarpwatch: $(OBJS) brarpwatch.o
  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 brarpwatch *.d *.o *.log
  13. DEPS := $(wildcard *.c)
  14. -include $(DEPS:.c=.d)