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

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

Add a daemon frontend.

  • Property svn:keywords set to Date Rev Author Id
File size: 1.4 KB
Line 
1# $Id: daemon.mk 1617 2007-03-31 20:00:40Z 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
9
10COMOBJS  = $(COMSRCS:%.c=%.o)
11SRVOBJS  = $(SRVSRCS:%.c=%.o)
12CLIOBJS  = $(CLISRCS:%.c=%.o)
13SRCS     = $(COMSRCS) $(SRVSRCS) $(CLISRCS)
14
15CFLAGS  += $(CFLAGS_EVENT) -I../libtransmission
16LDLIBS  += ../libtransmission/libtransmission.a
17LDFLAGS += $(LDFLAGS_EVENT)
18
19all: transmission-daemon transmission-remote
20
21transmission-daemon: OBJS    = $(SRVOBJS) $(COMOBJS)
22transmission-daemon: $(LDLIBS) $(SRVOBJS) $(COMOBJS)
23        $(LINK_RULE)
24
25transmission-remote: OBJS    = $(CLIOBJS) $(COMOBJS)
26transmission-remote: $(LDLIBS) $(CLIOBJS) $(COMOBJS)
27        $(LINK_RULE)
28
29%.o: %.c ../mk/config.mk ../mk/common.mk ../mk/daemon.mk
30        $(CC_RULE)
31
32clean:
33        @echo "Clean transmission-daemon"
34        @echo "Clean transmission-remote"
35        @echo "Clean $(COMOBJS) $(SRVOBJS) $(CLIOBJS)"
36        @$(RM) transmission-daemon transmission-remote
37        @$(RM) $(COMOBJS) $(SRVOBJS) $(CLIOBJS)
38
39.depend: $(SRCS) ../mk/config.mk ../mk/common.mk ../mk/daemon.mk
40        $(DEP_RULE)
41
42install: install.srv install.srv.man install.cli install.cli.man
43
44install.srv: transmission-daemon
45        $(INSTALL_BIN_RULE)
46
47install.srv.man: transmission-daemon.1
48        $(INSTALL_MAN_RULE)
49
50install.cli: transmission-remote
51        $(INSTALL_BIN_RULE)
52
53install.cli.man: transmission-remote.1
54        $(INSTALL_MAN_RULE)
55
56-include .depend
Note: See TracBrowser for help on using the repository browser.