Experimental IRC client, daemon and bot
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.

29 lines
763B

  1. SHELL = /bin/sh
  2. CC = clang
  3. # -Wunused-function is pretty annoying here, as everything is static and not
  4. # all parts of common.c are used in all the executables
  5. CFLAGS = -std=c99 -Wall -Wextra -Wno-unused-function \
  6. -ggdb -fsanitize=address,undefined
  7. # -lpthread is only there for debugging (gdb & errno)
  8. LDFLAGS = `pkg-config --libs libssl` -lpthread
  9. .PHONY: all clean
  10. .SUFFIXES:
  11. targets = zyklonb kike
  12. all: $(targets)
  13. clean:
  14. rm -f $(targets) kike-replies.c
  15. zyklonb: zyklonb.c common.c siphash.c
  16. $(CC) zyklonb.c siphash.c -o $@ $(CFLAGS) $(LDFLAGS)
  17. kike: kike.c common.c siphash.c kike-replies.c
  18. $(CC) kike.c siphash.c -o $@ $(CFLAGS) $(LDFLAGS)
  19. # Generates kike.msg as a by-product
  20. kike-replies.c: kike-replies
  21. $(SHELL) kike-gen-replies.sh < $< > $@