source: trunk/mk/lib.mk @ 620

Last change on this file since 620 was 265, checked in by titer, 16 years ago

Split and moved makefiles into a seperate folder, fixes and speed-up to
the retrieving of the SVN revision, OS X packages now show the revision
if this isn't a release build

  • Property svn:keywords set to Date Rev Author Id
File size: 623 bytes
Line 
1# $Id: lib.mk 265 2006-05-31 12:54:53Z titer $
2
3include ../mk/config.mk
4include ../mk/common.mk
5
6SRCS = transmission.c bencode.c net.c tracker.c peer.c inout.c \
7       metainfo.c sha1.c utils.c fdlimit.c clients.c completion.c \
8       platform.c ratecontrol.c choking.c
9OBJS = $(SRCS:%.c=%.o)
10
11CFLAGS += -D__TRANSMISSION__
12
13libtransmission.a: $(OBJS)
14        @echo "Library $@"
15        @ar ru $@ $(OBJS)
16        @ranlib $@
17
18%.o: %.c ../mk/config.mk ../mk/common.mk ../mk/cli.mk
19        $(CC_RULE)
20
21clean:
22        @echo "Clean libtransmission.a"
23        @echo "Clean $(OBJS)"
24        @$(RM) libtransmission.a $(OBJS)
25
26.depend: $(SRCS) ../mk/config.mk ../mk/common.mk ../mk/cli.mk
27        $(DEP_RULE)
28
29-include .depend
Note: See TracBrowser for help on using the repository browser.