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