torrent-stats/Makefile
2009-02-25 14:17:23 +01:00

23 lines
368 B
Makefile

TARGET = torrent-stats
CFLAGS = -Wall -O2 -MD -MP -MF $(*F).d
# ------
SRC := $(wildcard *.c)
all: $(TARGET)
$(TARGET): $(SRC:.c=.o)
@echo " Linking file: $@"
@$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) > /dev/null
%.o: %.c
@echo " Building file: $<"
@$(CC) -c $(CFLAGS) $< -o $@
clean:
rm -rf $(TARGET) *.o *.d
-include $(shell find . -name \*.d 2> /dev/null)