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 | |
---|
1 | include ../Makefile.config |
---|
2 | include ../Makefile.common |
---|
3 | |
---|
4 | SRCS = conf.c dialogs.c main.c trcellrenderertorrent.c util.c |
---|
5 | OBJS = $(SRCS:%.c=%.o) |
---|
6 | |
---|
7 | CFLAGS += $(CFLAGS_GTK) -I../libtransmission |
---|
8 | LDFLAGS += $(LDFLAGS_GTK) |
---|
9 | |
---|
10 | transmission-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 | |
---|
16 | clean: |
---|
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 | |
---|
23 | include .depend |
---|
Note: See
TracBrowser
for help on using the repository browser.