cachesyncd/Makefile

26 lines
462 B
Makefile
Raw Normal View History

2006-06-23 22:02:31 +02:00
# Toplevel Makefile
2006-10-04 21:45:18 +02:00
SRC := cachesyncd.c configfile.c event.c logging.c multicast.c unixsock.c
2006-06-23 22:02:31 +02:00
CFLAGS := -O2 -Wall
# ############################
2006-07-27 18:53:57 +02:00
all: cachesyncd testclient
2006-06-23 22:02:31 +02:00
cachesyncd: $(SRC:%.c=%.o)
2006-07-27 18:53:57 +02:00
$(CC) $(CFLAGS) $^ -o $@
testclient: testclient.o
$(CC) $(CFLAGS) $^ -o $@
2006-06-23 22:02:31 +02:00
%.d: %.c
$(CC) $(CFLAGS) -MM -c $< -o $@
%.o: %.c
$(CC) $(CFLAGS) -o $@ -c $<
clean:
2006-09-26 20:59:08 +02:00
rm -rf *.d *.o cachesyncd cachesyncd.log cachesync.sock testclient
2006-06-23 22:02:31 +02:00
-include $(SRC:.c=.d)