mirror of
https://github.com/transmission/transmission.git
synced 2026-04-18 16:07:21 +01:00
Nicer make output. Also moved the CLI client to its own folder like
other interfaces.
This commit is contained in:
16
gtk/Makefile
16
gtk/Makefile
@@ -5,19 +5,21 @@ SRCS = conf.c dialogs.c main.c trcellrenderertorrent.c util.c
|
||||
OBJS = $(SRCS:%.c=%.o)
|
||||
|
||||
CFLAGS += $(CFLAGS_GTK) -I../libtransmission
|
||||
LDFLAGS += $(LDFLAGS_GTK)
|
||||
LDFLAGS += $(LDFLAGS_GTK) ../libtransmission/libtransmission.a
|
||||
|
||||
transmission-gtk: $(OBJS)
|
||||
$(CC) -o $@ $(OBJS) ../libtransmission/libtransmission.a $(LDFLAGS)
|
||||
$(LINK_RULE)
|
||||
|
||||
%.o: %.c ../Makefile.config ../Makefile.common Makefile
|
||||
$(CC) $(CFLAGS) -o $@ -c $<
|
||||
$(CC_RULE)
|
||||
|
||||
clean:
|
||||
$(RM) transmission-gtk $(OBJS)
|
||||
@echo "Clean transmission-gtk"
|
||||
@$(RM) transmission-gtk
|
||||
@echo "Clean $(OBJS)"
|
||||
@$(RM) $(OBJS)
|
||||
|
||||
.depend: $(SRCS) Makefile
|
||||
$(RM) .depend
|
||||
$(foreach SRC, $(SRCS), $(CC) -MM $(SRC) $(CFLAGS) -D__TRANSMISSION__ >> .depend;)
|
||||
.depend: $(SRCS) ../Makefile.config ../Makefile.common Makefile
|
||||
$(DEP_RULE)
|
||||
|
||||
include .depend
|
||||
|
||||
Reference in New Issue
Block a user