source: branches/daemon/mk/daemon.mk @ 1623

Last change on this file since 1623 was 1623, checked in by joshe, 15 years ago

Add an ipc proxy to make remote daemon connections easier.

  • Property svn:keywords set to Date Rev Author Id
File size: 1.8 KB
Line 
1# $Id: daemon.mk 1623 2007-03-31 23:07:59Z joshe $
2
3include ../mk/config.mk
4include ../mk/common.mk
5
6COMSRCS  = errors.c ipc.c misc.c
7SRVSRCS  = daemon.c server.c torrents.c
8CLISRCS  = client.c remote.c
9PXYSRCS  = proxy.c
10
11COMOBJS  = $(COMSRCS:%.c=%.o)
12SRVOBJS  = $(SRVSRCS:%.c=%.o)
13CLIOBJS  = $(CLISRCS:%.c=%.o)
14PXYOBJS  = $(PXYSRCS:%.c=%.o)
15SRCS     = $(COMSRCS) $(SRVSRCS) $(CLISRCS) $(PXYSRCS)
16
17CFLAGS  += $(CFLAGS_EVENT) -I../libtransmission
18LDLIBS  += ../libtransmission/libtransmission.a
19LDFLAGS += $(LDFLAGS_EVENT)
20
21all: transmission-daemon transmission-remote transmission-proxy
22
23transmission-daemon: OBJS    = $(SRVOBJS) $(COMOBJS)
24transmission-daemon: $(LDLIBS) $(SRVOBJS) $(COMOBJS)
25        $(LINK_RULE)
26
27transmission-remote: OBJS    = $(CLIOBJS) $(COMOBJS)
28transmission-remote: $(LDLIBS) $(CLIOBJS) $(COMOBJS)
29        $(LINK_RULE)
30
31transmission-proxy:  OBJS    = $(PXYOBJS) $(COMOBJS)
32transmission-proxy:  $(LDLIBS) $(PXYOBJS) $(COMOBJS)
33        $(LINK_RULE)
34
35%.o: %.c ../mk/config.mk ../mk/common.mk ../mk/daemon.mk
36        $(CC_RULE)
37
38clean:
39        @echo "Clean transmission-daemon"
40        @echo "Clean transmission-remote"
41        @echo "Clean transmission-proxy"
42        @echo "Clean $(COMOBJS) $(SRVOBJS) $(CLIOBJS) $(PXYOBJS)"
43        @$(RM) transmission-daemon transmission-remote
44        @$(RM) $(COMOBJS) $(SRVOBJS) $(CLIOBJS) $(PXYOBJS)
45
46.depend: $(SRCS) ../mk/config.mk ../mk/common.mk ../mk/daemon.mk
47        $(DEP_RULE)
48
49install: install.srv install.srv.man install.cli install.cli.man \
50         install.pxy install.pxy.man
51
52install.srv: transmission-daemon
53        $(INSTALL_BIN_RULE)
54
55install.srv.man: transmission-daemon.1
56        $(INSTALL_MAN_RULE)
57
58install.cli: transmission-remote
59        $(INSTALL_BIN_RULE)
60
61install.cli.man: transmission-remote.1
62        $(INSTALL_MAN_RULE)
63
64install.pxy: transmission-proxy
65        $(INSTALL_BIN_RULE)
66
67install.pxy.man: transmission-proxy.1
68        $(INSTALL_MAN_RULE)
69
70-include .depend
Note: See TracBrowser for help on using the repository browser.