source: trunk/mk/cli.mk @ 1125

Last change on this file since 1125 was 947, checked in by titer, 15 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
3include ../mk/config.mk
4include ../mk/common.mk
5
6SRCS = transmissioncli.c
7OBJS = $(SRCS:%.c=%.o)
8
9CFLAGS  += -I../libtransmission
10LDLIBS  += ../libtransmission/libtransmission.a
11
12transmissioncli: $(OBJS) ../libtransmission/libtransmission.a
13        $(LINK_RULE)
14
15%.o: %.c ../mk/config.mk ../mk/common.mk ../mk/cli.mk
16        $(CC_RULE)
17
18clean:
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
27install: install-bin install-man
28
29install-bin: transmissioncli
30        $(INSTALL_BIN_RULE)
31
32install-man: transmissioncli.1
33        $(INSTALL_MAN_RULE)
34
35-include .depend
Note: See TracBrowser for help on using the repository browser.