mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
cf56d58f06
Add italian translation. Add an install make target for transmissioncli and transmission-gtk.
83 lines
1.8 KiB
Text
83 lines
1.8 KiB
Text
VERSION_MAJOR = 0
|
|
VERSION_MINOR = 5
|
|
VERSION_STRING = 0.6-svn-r$(SVN_REVISION)
|
|
|
|
TMPCFLAGS = -g -Wall -W -O3 -funroll-loops -D_FILE_OFFSET_BITS=64 \
|
|
-D_LARGEFILE_SOURCE -D_GNU_SOURCE \
|
|
-DVERSION_MAJOR=$(VERSION_MAJOR) \
|
|
-DVERSION_MINOR=$(VERSION_MINOR) \
|
|
-DVERSION_STRING=\"$(VERSION_STRING)\" \
|
|
-DSYS_$(shell echo $(SYSTEM) | tr a-z A-Z)
|
|
TMPCXXFLAGS = $(TMPCFLAGS)
|
|
TMPLDFLAGS =
|
|
|
|
ifeq ($(SYSTEM),BeOS)
|
|
TMPCXXFLAGS += -Wno-multichar
|
|
ifeq ($(BEOS_NETSERVER),yes)
|
|
TMPCFLAGS += -DBEOS_NETSERVER
|
|
TMPLDFLAGS += -lnet
|
|
else
|
|
TMPLDFLAGS += -lbind -lsocket
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(PTHREAD),yes)
|
|
ifeq ($(SYSTEM),FreeBSD)
|
|
TMPLDFLAGS += -pthread
|
|
else
|
|
TMPLDFLAGS += -lpthread
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(OPENSSL),yes)
|
|
TMPCFLAGS += -DHAVE_OPENSSL
|
|
TMPLDFLAGS += -lcrypto
|
|
endif
|
|
|
|
CFLAGS := $(TMPCFLAGS) $(CFLAGS)
|
|
CXXFLAGS := $(TMPCXXFLAGS) $(CXXFLAGS)
|
|
LDFLAGS := $(TMPLDFLAGS) $(LDFLAGS)
|
|
|
|
#
|
|
# Utils
|
|
#
|
|
|
|
define DEP_RULE
|
|
@echo "Checking dependencies..."
|
|
@$(RM) .depend
|
|
@$(foreach SRC, $(SRCS), $(CC) -MM $(SRC) $(CFLAGS) >> .depend;)
|
|
endef
|
|
|
|
define CC_RULE
|
|
@echo "Cc $@"
|
|
@CMD="$(CC) $(CFLAGS) -o $@ -c $<"; $$CMD || \
|
|
( echo "Compile line for $@ was:"; echo $$CMD; false )
|
|
endef
|
|
|
|
define LINK_RULE
|
|
@echo "Link $@"
|
|
@CMD="$(CC) -o $@ $(OBJS) $(LDFLAGS)"; $$CMD || \
|
|
( echo "Compile line for $@ was:"; echo $$CMD; false )
|
|
endef
|
|
|
|
define MSGFMT_RULE
|
|
@echo "Msgfmt $<"
|
|
@msgfmt -f $< -o $@
|
|
endef
|
|
|
|
define INSTALL_BIN_RULE
|
|
@echo "Install $<"
|
|
@$(MKDIR) $(PREFIX)/bin
|
|
@$(CP) $< $(PREFIX)/bin/
|
|
endef
|
|
|
|
define INSTALL_LOCALE_RULE
|
|
@echo "Install $<"
|
|
@$(MKDIR) $(LOCALEDIR)/$*/LC_MESSAGES
|
|
@$(CP) $< $(LOCALEDIR)/$*/LC_MESSAGES/transmission-gtk.mo
|
|
endef
|
|
|
|
RM = rm -Rf
|
|
CP = cp -f
|
|
MKDIR = mkdir -p
|
|
MAKE += --no-print-directory
|