ctorrent stat collector
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
396B

  1. TARGET = torrent-stats
  2. CFLAGS = -Wall -O2 -MD -MP -MF $(*F).d
  3. # ------
  4. SRC := $(wildcard *.c)
  5. all: $(TARGET)
  6. $(TARGET): $(SRC:.c=.o)
  7. @echo " Linking file: $@"
  8. @$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) > /dev/null
  9. %.o: %.c
  10. @echo " Building file: $<"
  11. @$(CC) -c $(CFLAGS) $< -o $@
  12. clean:
  13. rm -rf $(TARGET) *.o *.d $(TARGET).log $(TARGET).pid
  14. -include $(shell find . -name \*.d 2> /dev/null)