source: trunk/cli/Makefile @ 262

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

Get revision at build time

  • Property svn:keywords set to Date Rev Author Id
File size: 731 bytes
Line 
1# $Id: Makefile 262 2006-05-29 21:58:22Z titer $
2
3include ../Makefile.config
4include ../Makefile.version
5include ../Makefile.common
6
7SRCS = transmissioncli.c
8OBJS = $(SRCS:%.c=%.o)
9
10CFLAGS  += -I../libtransmission
11LDFLAGS += ../libtransmission/libtransmission.a
12
13all: transmissioncli
14        @true
15
16transmissioncli: $(OBJS) ../libtransmission/libtransmission.a
17        $(LINK_RULE)
18
19%.o: %.c ../Makefile.config ../Makefile.common Makefile
20        $(CC_RULE)
21
22clean:
23        @echo "Clean transmissioncli"
24        @$(RM) transmissioncli
25        @echo "Clean $(OBJS)"
26        @$(RM) $(OBJS)
27
28.depend: $(SRCS) ../Makefile.config ../Makefile.common Makefile
29        $(DEP_RULE)
30
31install: install-bin install-man
32
33install-bin: transmissioncli
34        $(INSTALL_BIN_RULE)
35
36install-man: transmissioncli.1
37        $(INSTALL_MAN_RULE)
38
39-include .depend
Note: See TracBrowser for help on using the repository browser.