2007-05-15 17:39:34 +02:00
|
|
|
CFLAGS := -O2 -pipe -Wall
|
|
|
|
|
2007-06-18 15:44:05 +02:00
|
|
|
OBJS := configfile.o connection.o event.o httpd.o linebuffer.o logging.o sockaddr.o tcpsocket.o
|
2007-05-15 17:39:34 +02:00
|
|
|
|
|
|
|
all: torrent-stats
|
|
|
|
|
|
|
|
torrent-stats: $(OBJS) torrent-stats.o
|
|
|
|
$(CC) $(CFLAGS) $^ -o $@
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
|
|
|
|
%.d: %.c
|
|
|
|
$(CC) $(CFLAGS) -MM -c $< -o $@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f torrent-stats *.d *.o *.log
|
|
|
|
|
|
|
|
DEPS := $(wildcard *.c)
|
|
|
|
-include $(DEPS:.c=.d)
|