mirror of
https://github.com/transmission/transmission
synced 2024-12-27 01:57:52 +00:00
29 lines
652 B
Makefile
29 lines
652 B
Makefile
# $Id$
|
|
|
|
include ../mk/config.mk
|
|
include ../mk/common.mk
|
|
|
|
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 natpmp.c upnp.c http.c xml.c
|
|
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
|