2006-04-03 19:29:09 +00:00
|
|
|
include ../Makefile.config
|
|
|
|
include ../Makefile.common
|
|
|
|
|
|
|
|
SRCS = conf.c dialogs.c main.c trcellrenderertorrent.c util.c
|
|
|
|
OBJS = $(SRCS:%.c=%.o)
|
|
|
|
|
|
|
|
CFLAGS += $(CFLAGS_GTK) -I../libtransmission
|
|
|
|
LDFLAGS += $(LDFLAGS_GTK)
|
|
|
|
|
|
|
|
transmission-gtk: $(OBJS)
|
|
|
|
$(CC) -o $@ $(OBJS) ../libtransmission/libtransmission.a $(LDFLAGS)
|
|
|
|
|
|
|
|
%.o: %.c ../Makefile.config ../Makefile.common Makefile
|
|
|
|
$(CC) $(CFLAGS) -o $@ -c $<
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) transmission-gtk $(OBJS)
|
|
|
|
|
|
|
|
.depend: $(SRCS) Makefile
|
|
|
|
$(RM) .depend
|
2006-04-04 10:34:15 +00:00
|
|
|
$(foreach SRC, $(SRCS), $(CC) -MM $(SRC) $(CFLAGS) -D__TRANSMISSION__ >> .depend;)
|
2006-04-03 19:29:09 +00:00
|
|
|
|
|
|
|
include .depend
|