2006-05-29 21:21:23 +00:00
|
|
|
# $Id$
|
|
|
|
|
2006-05-31 12:54:53 +00:00
|
|
|
include ../mk/config.mk
|
|
|
|
include ../mk/common.mk
|
2006-04-03 19:29:09 +00:00
|
|
|
|
2006-05-03 06:58:16 +00:00
|
|
|
SRCS = conf.c dialogs.c io.c ipc.c main.c tr_backend.c tr_torrent.c \
|
|
|
|
tr_cell_renderer_torrent.c util.c
|
2006-04-03 19:29:09 +00:00
|
|
|
OBJS = $(SRCS:%.c=%.o)
|
|
|
|
|
|
|
|
CFLAGS += $(CFLAGS_GTK) -I../libtransmission
|
2006-04-04 20:23:19 +00:00
|
|
|
LDFLAGS += $(LDFLAGS_GTK) ../libtransmission/libtransmission.a
|
2006-04-03 19:29:09 +00:00
|
|
|
|
2006-04-25 08:14:37 +00:00
|
|
|
all: transmission-gtk .po
|
|
|
|
@true
|
|
|
|
|
2006-04-10 09:13:15 +00:00
|
|
|
transmission-gtk: $(OBJS) ../libtransmission/libtransmission.a
|
2006-04-04 20:23:19 +00:00
|
|
|
$(LINK_RULE)
|
2006-04-03 19:29:09 +00:00
|
|
|
|
2006-04-25 08:14:37 +00:00
|
|
|
.po:
|
2006-05-31 12:54:53 +00:00
|
|
|
@$(MAKE) -C po -f ../../mk/po.mk
|
2006-04-25 08:14:37 +00:00
|
|
|
|
2006-05-31 12:54:53 +00:00
|
|
|
%.o: %.c ../mk/config.mk ../mk/common.mk ../mk/gtk.mk
|
2006-04-04 20:23:19 +00:00
|
|
|
$(CC_RULE)
|
2006-04-03 19:29:09 +00:00
|
|
|
|
|
|
|
clean:
|
2006-04-04 20:23:19 +00:00
|
|
|
@echo "Clean transmission-gtk"
|
|
|
|
@$(RM) transmission-gtk
|
|
|
|
@echo "Clean $(OBJS)"
|
|
|
|
@$(RM) $(OBJS)
|
2006-05-31 12:54:53 +00:00
|
|
|
@$(MAKE) -C po -f ../../mk/po.mk clean
|
2006-04-03 19:29:09 +00:00
|
|
|
|
2006-05-31 12:54:53 +00:00
|
|
|
.depend: $(SRCS) ../mk/config.mk ../mk/common.mk ../mk/gtk.mk
|
2006-04-04 20:23:19 +00:00
|
|
|
$(DEP_RULE)
|
2006-04-03 19:29:09 +00:00
|
|
|
|
2006-04-25 08:14:37 +00:00
|
|
|
install: transmission-gtk .po
|
|
|
|
$(INSTALL_BIN_RULE)
|
2006-05-31 12:54:53 +00:00
|
|
|
@$(MAKE) -C po -f ../../mk/po.mk install
|
2006-04-25 08:14:37 +00:00
|
|
|
|
|
|
|
morepot: $(SRCS)
|
|
|
|
xgettext --output=po/transmission-gtk.pot --from-code=UTF-8 --add-comments --keyword=_ --keyword=N_ $^
|
|
|
|
|
2006-04-05 09:45:09 +00:00
|
|
|
-include .depend
|