source: trunk/mk/gtk.mk @ 310

Last change on this file since 310 was 265, checked in by titer, 16 years ago

Split and moved makefiles into a seperate folder, fixes and speed-up to
the retrieving of the SVN revision, OS X packages now show the revision
if this isn't a release build

  • Property svn:keywords set to Date Rev Author Id
File size: 968 bytes
Line 
1# $Id: gtk.mk 265 2006-05-31 12:54:53Z joshe $
2
3include ../mk/config.mk
4include ../mk/common.mk
5
6SRCS = conf.c dialogs.c io.c ipc.c main.c tr_backend.c tr_torrent.c \
7        tr_cell_renderer_torrent.c util.c
8OBJS = $(SRCS:%.c=%.o)
9
10CFLAGS  += $(CFLAGS_GTK) -I../libtransmission
11LDFLAGS += $(LDFLAGS_GTK) ../libtransmission/libtransmission.a
12
13all: transmission-gtk .po
14        @true
15
16transmission-gtk: $(OBJS) ../libtransmission/libtransmission.a
17        $(LINK_RULE)
18
19.po:
20        @$(MAKE) -C po -f ../../mk/po.mk
21
22%.o: %.c ../mk/config.mk ../mk/common.mk ../mk/gtk.mk
23        $(CC_RULE)
24
25clean:
26        @echo "Clean transmission-gtk"
27        @$(RM) transmission-gtk
28        @echo "Clean $(OBJS)"
29        @$(RM) $(OBJS)
30        @$(MAKE) -C po -f ../../mk/po.mk clean
31
32.depend: $(SRCS) ../mk/config.mk ../mk/common.mk ../mk/gtk.mk
33        $(DEP_RULE)
34
35install: transmission-gtk .po
36        $(INSTALL_BIN_RULE)
37        @$(MAKE) -C po -f ../../mk/po.mk install
38
39morepot: $(SRCS)
40        xgettext --output=po/transmission-gtk.pot --from-code=UTF-8 --add-comments --keyword=_ --keyword=N_ $^
41
42-include .depend
Note: See TracBrowser for help on using the repository browser.