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.

27 lines
731B

  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. targets = zyklonb kike kike.msg
  11. all: $(targets)
  12. clean:
  13. rm -f $(targets)
  14. zyklonb: src/zyklonb.c src/common.c src/siphash.c
  15. $(CC) src/zyklonb.c src/siphash.c -o $@ $(CFLAGS) $(LDFLAGS)
  16. kike: src/kike.c src/common.c src/siphash.c
  17. $(CC) src/kike.c src/siphash.c -o $@ $(CFLAGS) $(LDFLAGS)
  18. kike.msg: src/kike.c
  19. $(SHELL) kike-extract-messages.sh < $< > $@