source: trunk/libtransmission/Makefile @ 134

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

Started to switch to a Makefile-based build system (still very incomplete,
so the Jamfile are still there).
Set a few svn:ignore properties.

File size: 602 bytes
Line 
1include ../Makefile.config
2include ../Makefile.common
3
4SRCS = transmission.c bencode.c net.c tracker.c peer.c inout.c \
5       metainfo.c sha1.c utils.c fdlimit.c clients.c completion.c \
6       platform.c ratecontrol.c choking.c
7OBJS = $(SRCS:%.c=%.o)
8
9CFLAGS += -D__TRANSMISSION__
10
11libtransmission.a: $(OBJS)
12        libtool -static $(OBJS) -o $@
13
14%.o: %.c ../Makefile.config ../Makefile.common Makefile
15        $(CC) $(CFLAGS) -o $@ -c $<
16
17clean:
18        $(RM) libtransmission.a $(OBJS)
19
20.depend: $(SRCS) Makefile
21        $(RM) .depend
22        $(foreach SRC, $(SRCS), $(CC) -MM $(SRC) -D__TRANSMISSION__ >> .depend;)
23
24include .depend
Note: See TracBrowser for help on using the repository browser.