cachesyncd/Makefile

26 lines
454 B
Makefile
Raw Normal View History

2006-06-23 22:02:31 +02:00
# Toplevel Makefile
2006-07-27 18:53:57 +02:00
SRC := cachesyncd.c configfile.c logging.c multicast.c selector.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-07-27 18:53:57 +02:00
rm -rf *.d *.o cachesyncd cachesyncd.log cachesync.sock
2006-06-23 22:02:31 +02:00
-include $(SRC:.c=.d)