source: trunk/mk/gtk.mk @ 1125

Last change on this file since 1125 was 947, checked in by titer, 15 years ago

List libT.a before the -l* flags on the command line (otherwise this can cause problems with LDFLAGS=-Wl,--as-needed)

Patch by Daniel T. Lin

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