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.

30 lines
800B

  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. # -lrt is only for glibc < 2.17
  9. LDFLAGS = `pkg-config --libs libssl` -lpthread -lrt
  10. .PHONY: all clean
  11. .SUFFIXES:
  12. targets = zyklonb kike
  13. all: $(targets)
  14. clean:
  15. rm -f $(targets) kike-replies.c
  16. zyklonb: zyklonb.c common.c siphash.c
  17. $(CC) zyklonb.c siphash.c -o $@ $(CFLAGS) $(LDFLAGS)
  18. kike: kike.c common.c siphash.c kike-replies.c
  19. $(CC) kike.c siphash.c -o $@ $(CFLAGS) $(LDFLAGS)
  20. # Generates kike.msg as a by-product
  21. kike-replies.c: kike-replies
  22. $(SHELL) kike-gen-replies.sh < $< > $@