cachesyncd/Makefile
2006-07-27 18:53:57 +02:00

26 lines
454 B
Makefile

# Toplevel Makefile
SRC := cachesyncd.c configfile.c logging.c multicast.c selector.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
-include $(SRC:.c=.d)