smarty template cache syncing daemon (PoC)
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.

26 lines
462B

  1. # Toplevel Makefile
  2. SRC := cachesyncd.c configfile.c event.c logging.c multicast.c unixsock.c
  3. CFLAGS := -O2 -Wall
  4. # ############################
  5. all: cachesyncd testclient
  6. cachesyncd: $(SRC:%.c=%.o)
  7. $(CC) $(CFLAGS) $^ -o $@
  8. testclient: testclient.o
  9. $(CC) $(CFLAGS) $^ -o $@
  10. %.d: %.c
  11. $(CC) $(CFLAGS) -MM -c $< -o $@
  12. %.o: %.c
  13. $(CC) $(CFLAGS) -o $@ -c $<
  14. clean:
  15. rm -rf *.d *.o cachesyncd cachesyncd.log cachesync.sock testclient
  16. -include $(SRC:.c=.d)