Last change
on this file since 1061 was
947,
checked in by titer, 16 years ago
|
List libT.a before the -l* flags on the command line (otherwise this can cause problems with LDFLAGS=-Wl,--as-needed)
Patch by Daniel T. Lin
|
-
Property svn:keywords set to
Date Rev Author Id
|
File size:
664 bytes
|
Line | |
---|
1 | # $Id: cli.mk 947 2006-09-28 16:04:06Z livings124 $ |
---|
2 | |
---|
3 | include ../mk/config.mk |
---|
4 | include ../mk/common.mk |
---|
5 | |
---|
6 | SRCS = transmissioncli.c |
---|
7 | OBJS = $(SRCS:%.c=%.o) |
---|
8 | |
---|
9 | CFLAGS += -I../libtransmission |
---|
10 | LDLIBS += ../libtransmission/libtransmission.a |
---|
11 | |
---|
12 | transmissioncli: $(OBJS) ../libtransmission/libtransmission.a |
---|
13 | $(LINK_RULE) |
---|
14 | |
---|
15 | %.o: %.c ../mk/config.mk ../mk/common.mk ../mk/cli.mk |
---|
16 | $(CC_RULE) |
---|
17 | |
---|
18 | clean: |
---|
19 | @echo "Clean transmissioncli" |
---|
20 | @$(RM) transmissioncli |
---|
21 | @echo "Clean $(OBJS)" |
---|
22 | @$(RM) $(OBJS) |
---|
23 | |
---|
24 | .depend: $(SRCS) ../mk/config.mk ../mk/common.mk ../mk/cli.mk |
---|
25 | $(DEP_RULE) |
---|
26 | |
---|
27 | install: install-bin install-man |
---|
28 | |
---|
29 | install-bin: transmissioncli |
---|
30 | $(INSTALL_BIN_RULE) |
---|
31 | |
---|
32 | install-man: transmissioncli.1 |
---|
33 | $(INSTALL_MAN_RULE) |
---|
34 | |
---|
35 | -include .depend |
---|
Note: See
TracBrowser
for help on using the repository browser.