2006-05-29 21:21:23 +00:00
|
|
|
# $Id$
|
|
|
|
|
2006-03-07 20:23:40 +00:00
|
|
|
include ../Makefile.config
|
|
|
|
include ../Makefile.common
|
|
|
|
|
|
|
|
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__
|
|
|
|
|
2006-04-25 08:14:37 +00:00
|
|
|
all: libtransmission.a
|
|
|
|
@true
|
|
|
|
|
2006-03-07 20:23:40 +00:00
|
|
|
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
|
|
|
|
|
|
|
%.o: %.c ../Makefile.config ../Makefile.common Makefile
|
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-04-04 20:23:19 +00:00
|
|
|
.depend: $(SRCS) ../Makefile.config ../Makefile.common Makefile
|
|
|
|
$(DEP_RULE)
|
2006-03-07 20:23:40 +00:00
|
|
|
|
2006-04-05 09:45:09 +00:00
|
|
|
-include .depend
|