1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-30 19:46:56 +00:00
transmission/mk/daemon.mk

71 lines
1.7 KiB
Makefile
Raw Normal View History

2007-04-18 16:39:10 +00:00
# $Id$
include ../mk/config.mk
include ../mk/common.mk
2007-05-24 03:44:40 +00:00
COMSRCS = errors.c misc.c
2007-04-18 16:39:10 +00:00
SRVSRCS = daemon.c server.c torrents.c
CLISRCS = client.c remote.c
PXYSRCS = proxy.c
COMOBJS = $(COMSRCS:%.c=%.o)
SRVOBJS = $(SRVSRCS:%.c=%.o)
CLIOBJS = $(CLISRCS:%.c=%.o)
PXYOBJS = $(PXYSRCS:%.c=%.o)
SRCS = $(COMSRCS) $(SRVSRCS) $(CLISRCS) $(PXYSRCS)
2007-07-19 00:09:09 +00:00
CFLAGS += $(CFLAGS_EVENT) -I..
2007-04-18 16:39:10 +00:00
LDLIBS += ../libtransmission/libtransmission.a
LDFLAGS += $(LDFLAGS_EVENT)
all: transmission-daemon transmission-remote transmission-proxy
transmission-daemon: OBJS = $(SRVOBJS) $(COMOBJS)
transmission-daemon: $(LDLIBS) $(SRVOBJS) $(COMOBJS)
$(LINK_RULE)
transmission-remote: OBJS = $(CLIOBJS) $(COMOBJS)
transmission-remote: $(LDLIBS) $(CLIOBJS) $(COMOBJS)
$(LINK_RULE)
transmission-proxy: OBJS = $(PXYOBJS) $(COMOBJS)
transmission-proxy: $(LDLIBS) $(PXYOBJS) $(COMOBJS)
$(LINK_RULE)
%.o: %.c ../mk/config.mk ../mk/common.mk ../mk/daemon.mk
$(CC_RULE)
clean:
@echo "Clean transmission-daemon"
@echo "Clean transmission-remote"
@echo "Clean transmission-proxy"
@echo "Clean $(COMOBJS) $(SRVOBJS) $(CLIOBJS) $(PXYOBJS)"
@$(RM) transmission-daemon transmission-remote
@$(RM) $(COMOBJS) $(SRVOBJS) $(CLIOBJS) $(PXYOBJS)
.depend: $(SRCS) ../mk/config.mk ../mk/common.mk ../mk/daemon.mk
$(DEP_RULE)
install: install.srv install.srv.man install.cli install.cli.man \
install.pxy install.pxy.man
install.srv: transmission-daemon
$(INSTALL_BIN_RULE)
install.srv.man: transmission-daemon.1
$(INSTALL_MAN_RULE)
install.cli: transmission-remote
$(INSTALL_BIN_RULE)
install.cli.man: transmission-remote.1
$(INSTALL_MAN_RULE)
install.pxy: transmission-proxy
$(INSTALL_BIN_RULE)
install.pxy.man: transmission-proxy.1
$(INSTALL_MAN_RULE)
-include .depend