source: trunk/gtk/Makefile @ 195

Last change on this file since 195 was 195, checked in by joshe, 16 years ago

Use CFLAGS when generating dependencies for GTK sources.

File size: 578 bytes
Line 
1include ../Makefile.config
2include ../Makefile.common
3
4SRCS = conf.c dialogs.c main.c trcellrenderertorrent.c util.c
5OBJS = $(SRCS:%.c=%.o)
6
7CFLAGS  += $(CFLAGS_GTK) -I../libtransmission
8LDFLAGS += $(LDFLAGS_GTK)
9
10transmission-gtk: $(OBJS)
11        $(CC) -o $@ $(OBJS) ../libtransmission/libtransmission.a $(LDFLAGS)
12
13%.o: %.c ../Makefile.config ../Makefile.common Makefile
14        $(CC) $(CFLAGS) -o $@ -c $<
15
16clean:
17        $(RM) transmission-gtk $(OBJS)
18
19.depend: $(SRCS) Makefile
20        $(RM) .depend
21        $(foreach SRC, $(SRCS), $(CC) -MM $(SRC) $(CFLAGS) -D__TRANSMISSION__ >> .depend;)
22
23include .depend
Note: See TracBrowser for help on using the repository browser.