cachesyncd/Makefile

23 lines
351 B
Makefile
Raw Normal View History

2006-06-23 22:02:31 +02:00
# Toplevel Makefile
SRC := cachesyncd.c configfile.c logging.c multicast.c unixsock.c
CFLAGS := -O2 -Wall
# ############################
all: cachesyncd
cachesyncd: $(SRC:%.c=%.o)
$(CC) $(LDFLAGS) $^ -o $@
%.d: %.c
$(CC) $(CFLAGS) -MM -c $< -o $@
%.o: %.c
$(CC) $(CFLAGS) -o $@ -c $<
clean:
rm -rf *.d *.o cachesyncd
-include $(SRC:.c=.d)