2006-07-16 19:39:23 +00:00
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include ../mk/config.mk
|
|
|
|
include ../mk/common.mk
|
|
|
|
|
2007-06-18 03:40:41 +00:00
|
|
|
SRCS = bencode.c choking.c clients.c completion.c fastresume.c fdlimit.c \
|
|
|
|
http.c inout.c ipcparse.c makemeta.c metainfo.c natpmp.c net.c \
|
|
|
|
peer.c platform.c ratecontrol.c sha1.c shared.c strlcat.c strlcpy.c \
|
|
|
|
torrent.c tracker.c transmission.c upnp.c utils.c xml.c
|
2007-01-19 04:42:31 +00:00
|
|
|
|
2006-07-16 19:39:23 +00:00
|
|
|
OBJS = $(SRCS:%.c=%.o)
|
|
|
|
|
|
|
|
CFLAGS += -D__TRANSMISSION__
|
|
|
|
|
|
|
|
libtransmission.a: $(OBJS)
|
|
|
|
@echo "Library $@"
|
|
|
|
@ar ru $@ $(OBJS)
|
|
|
|
@ranlib $@
|
|
|
|
|
|
|
|
%.o: %.c ../mk/config.mk ../mk/common.mk ../mk/cli.mk
|
|
|
|
$(CC_RULE)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@echo "Clean libtransmission.a"
|
|
|
|
@echo "Clean $(OBJS)"
|
|
|
|
@$(RM) libtransmission.a $(OBJS)
|
|
|
|
|
|
|
|
.depend: $(SRCS) ../mk/config.mk ../mk/common.mk ../mk/cli.mk
|
|
|
|
$(DEP_RULE)
|
|
|
|
|
|
|
|
-include .depend
|