2006-05-29 21:21:23 +00:00
|
|
|
# $Id$
|
|
|
|
|
2006-05-31 12:54:53 +00:00
|
|
|
include ../mk/config.mk
|
|
|
|
include ../mk/common.mk
|
2006-03-07 20:23:40 +00:00
|
|
|
|
|
|
|
SRCS = transmission.c bencode.c net.c tracker.c peer.c inout.c \
|
|
|
|
metainfo.c sha1.c utils.c fdlimit.c clients.c completion.c \
|
|
|
|
platform.c ratecontrol.c choking.c
|
|
|
|
OBJS = $(SRCS:%.c=%.o)
|
|
|
|
|
|
|
|
CFLAGS += -D__TRANSMISSION__
|
|
|
|
|
|
|
|
libtransmission.a: $(OBJS)
|
2006-04-04 20:23:19 +00:00
|
|
|
@echo "Library $@"
|
|
|
|
@ar ru $@ $(OBJS)
|
|
|
|
@ranlib $@
|
2006-03-07 20:23:40 +00:00
|
|
|
|
2006-05-31 12:54:53 +00:00
|
|
|
%.o: %.c ../mk/config.mk ../mk/common.mk ../mk/cli.mk
|
2006-04-04 20:23:19 +00:00
|
|
|
$(CC_RULE)
|
2006-03-07 20:23:40 +00:00
|
|
|
|
|
|
|
clean:
|
2006-04-04 20:23:19 +00:00
|
|
|
@echo "Clean libtransmission.a"
|
|
|
|
@echo "Clean $(OBJS)"
|
|
|
|
@$(RM) libtransmission.a $(OBJS)
|
2006-03-07 20:23:40 +00:00
|
|
|
|
2006-05-31 12:54:53 +00:00
|
|
|
.depend: $(SRCS) ../mk/config.mk ../mk/common.mk ../mk/cli.mk
|
2006-04-04 20:23:19 +00:00
|
|
|
$(DEP_RULE)
|
2006-03-07 20:23:40 +00:00
|
|
|
|
2006-04-05 09:45:09 +00:00
|
|
|
-include .depend
|