|
@@ -56,18 +56,18 @@
|
|
|
# PROFILE: build in profile mode, disables -s and -fomit-frame-pointer
|
|
|
# DISPLAY_WARNINGS: when off, some errors are not displayed while compiling
|
|
|
# TRANSLATOR: build in translator mode (untranslated strings are prepended by
|
|
|
# a <TODO> mark)
|
|
|
# RELEASE: this will be the released version number. It replaces all places
|
|
|
# where it normally would print the revision number
|
|
|
# MIDI: if set, it will use it as custom path to midi player.
|
|
|
# MIDI: if set, it will use it as custom path to midi player.
|
|
|
# If unset, it will use the hardcoded path in the c code
|
|
|
# NOVERBOSE: supress all warnings and errors during compilation.
|
|
|
# NOVERBOSE: supress all warnings and errors during compilation.
|
|
|
# It looks nicer, but you will not know what went wrong. Use it on released (stable) sources only
|
|
|
#
|
|
|
# DATA_DIR_PREFIX: This sets the dir OpenTTD looks for the needed files.
|
|
|
# DATA_DIR_PREFIX: This sets the dir OpenTTD looks for the needed files.
|
|
|
# MUST END WITH / if defined
|
|
|
#
|
|
|
# STATIC: link statically
|
|
|
# CYGWIN: build in Cygwin environment
|
|
|
# MINGW: build with MingW compiler, link with MingW libraries
|
|
|
#
|
|
@@ -131,20 +131,20 @@ ENABLE_NETWORK:=1 # sets network on by
|
|
|
-include $(LIB_DETECTION)
|
|
|
endif
|
|
|
|
|
|
# Verbose filter
|
|
|
|
|
|
ifdef NOVERBOSE
|
|
|
VERBOSE_FILTER = >/dev/null 2>&1
|
|
|
VERBOSE_FILTER = >/dev/null 2>&1
|
|
|
else
|
|
|
VERBOSE_FILTER =
|
|
|
VERBOSE_FILTER =
|
|
|
endif
|
|
|
|
|
|
ifdef DISPLAY_WARNINGS
|
|
|
WARNING_DISPLAY:=-fstrict-aliasing
|
|
|
VERBOSE_FILTER =
|
|
|
VERBOSE_FILTER =
|
|
|
else
|
|
|
WARNING_DISPLAY:=-fno-strict-aliasing
|
|
|
endif
|
|
|
|
|
|
ifdef SUPRESS_LANG_ERRORS
|
|
|
ifndef VERBOSE_FILTER
|
|
@@ -514,20 +514,20 @@ OSX:=OSX
|
|
|
endif
|
|
|
|
|
|
|
|
|
all: endian.h $(UPDATECONFIG) $(TTD) $(OSX) $(endwarnings)
|
|
|
|
|
|
endian.h: $(ENDIAN_CHECK)
|
|
|
@# Check if system is LITTLE_ENDIAN or BIG_ENDIAN
|
|
|
@# Check if system is LITTLE_ENDIAN or BIG_ENDIAN
|
|
|
@echo 'Running endian_check'; \
|
|
|
./$(ENDIAN_CHECK) > $@
|
|
|
|
|
|
$(ENDIAN_CHECK): endian_check.c
|
|
|
@echo 'Compiling and Linking $@'; \
|
|
|
$(CC) $(BASECFLAGS) $(CDEFS) endian_check.c -o $@
|
|
|
|
|
|
|
|
|
|
|
|
$(TTD): table/strings.h $(ttd_OBJS) $(LANGS) $(MAKE_CONFIG)
|
|
|
@echo 'Compiling and Linking $@'; \
|
|
|
$(C_LINK) $@ $(TTDLDFLAGS) $(ttd_OBJS) $(LIBS) $(VERBOSE_FILTER)
|
|
|
|
|
|
$(OSX):
|
|
@@ -552,13 +552,13 @@ endian.h: $(ENDIAN_CHECK)
|
|
|
@echo 'Compiling and Linking $@'; \
|
|
|
$(CC) $(BASECFLAGS) $(CDEFS) -o $@ $^ $(VERBOSE_FILTER)
|
|
|
|
|
|
lang/english.lng: lang/english.txt $(STRGEN)
|
|
|
@echo 'Generating $@'; \
|
|
|
$(STRGEN)
|
|
|
|
|
|
|
|
|
table/strings.h: lang/english.lng
|
|
|
|
|
|
lang/%.lng: lang/%.txt $(STRGEN)
|
|
|
@echo 'Generating $@'; \
|
|
|
$(STRGEN) $(STRGEN_FLAGS) $< $(VERBOSE_FILTER) $(LANG_ERRORS)
|
|
|
|
|
@@ -618,13 +618,13 @@ love:
|
|
|
|
|
|
.PHONY: clean all $(OSX) install $(64_bit_warnings) $(endwarnings) love
|
|
|
|
|
|
|
|
|
### Automatic configuration
|
|
|
-include $(CONFIG_WRITER)
|
|
|
|
|
|
|
|
|
|
|
|
# Export all variables set to subprocesses (a bit dirty)
|
|
|
.EXPORT_ALL_VARIABLES:
|
|
|
upgradeconf: $(MAKE_CONFIG)
|
|
|
rm $(MAKE_CONFIG)
|
|
|
$(MAKE) $(MAKE_CONFIG)
|