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.
|
# Toplevel Makefile
|
|
|
|
SRC := cachesyncd.c configfile.c event.c logging.c multicast.c unixsock.c
|
|
CFLAGS := -O2 -Wall
|
|
|
|
# ############################
|
|
|
|
all: cachesyncd testclient
|
|
|
|
cachesyncd: $(SRC:%.c=%.o)
|
|
$(CC) $(CFLAGS) $^ -o $@
|
|
|
|
testclient: testclient.o
|
|
$(CC) $(CFLAGS) $^ -o $@
|
|
|
|
%.d: %.c
|
|
$(CC) $(CFLAGS) -MM -c $< -o $@
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) -o $@ -c $<
|
|
|
|
clean:
|
|
rm -rf *.d *.o cachesyncd cachesyncd.log cachesync.sock testclient
|
|
|
|
-include $(SRC:.c=.d)
|