Files
@ r24113:2f12c9d6363e
Branch filter:
Location: cpp/openttd-patchpack/source/Makefile.setting.in - annotation
r24113:2f12c9d6363e
2.9 KiB
text/plain
Doc: [Script] Add a note about how wagon connectivity works for scripts
r17414:35690285ddcd r17414:35690285ddcd r17414:35690285ddcd r17414:35690285ddcd r17414:35690285ddcd r17414:35690285ddcd r17414:35690285ddcd r17414:35690285ddcd r17414:35690285ddcd r19448:41de09e68222 r17414:35690285ddcd r17414:35690285ddcd r17414:35690285ddcd r17414:35690285ddcd r17414:35690285ddcd r17414:35690285ddcd r17414:35690285ddcd r17414:35690285ddcd r17414:35690285ddcd r17414:35690285ddcd r17414:35690285ddcd r17414:35690285ddcd r17414:35690285ddcd r17414:35690285ddcd r17414:35690285ddcd r21398:056774308933 r17414:35690285ddcd r19448:41de09e68222 r17414:35690285ddcd r22836:7ecb38ec6e8e r17414:35690285ddcd r19448:41de09e68222 r17414:35690285ddcd r21398:056774308933 r17414:35690285ddcd r19448:41de09e68222 r17414:35690285ddcd r22836:7ecb38ec6e8e r17417:6d2ef4fd9984 r19448:41de09e68222 r17417:6d2ef4fd9984 r21398:056774308933 r17419:c35536c1a16e r19448:41de09e68222 r17414:35690285ddcd r17419:c35536c1a16e r17414:35690285ddcd r19448:41de09e68222 r17414:35690285ddcd r17414:35690285ddcd r17414:35690285ddcd r17414:35690285ddcd r17414:35690285ddcd r17414:35690285ddcd r17414:35690285ddcd r17414:35690285ddcd r17414:35690285ddcd r17414:35690285ddcd r23099:b5845c308d16 r17414:35690285ddcd r17414:35690285ddcd r17414:35690285ddcd r17414:35690285ddcd | # This file is part of OpenTTD.
# OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
# OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
SETTINGSGEN = !!SETTINGSGEN!!
SRC_DIR = !!SRC_DIR!!
CXX_BUILD = !!CXX_BUILD!!
CFLAGS_BUILD = !!CFLAGS_BUILD!!
CXXFLAGS_BUILD = !!CXXFLAGS_BUILD!!
LDFLAGS_BUILD = !!LDFLAGS_BUILD!!
STAGE = !!STAGE!!
SETTING_OBJS_DIR = !!SETTING_OBJS_DIR!!
# Check if we want to show what we are doing
ifdef VERBOSE
Q =
E = @true
else
Q = @
E = @echo
endif
all: table/settings.h
settingsgen.o: $(SRC_DIR)/settingsgen/settingsgen.cpp $(SRC_DIR)/string_func.h $(SRC_DIR)/strings_type.h $(SRC_DIR)/misc/getoptdata.h $(SRC_DIR)/ini_type.h $(SRC_DIR)/core/smallvec_type.hpp $(SRC_DIR)/safeguards.h
$(E) '$(STAGE) Compiling $(<:$(SRC_DIR)/%.cpp=%.cpp)'
$(Q)$(CXX_BUILD) $(CFLAGS_BUILD) $(CXXFLAGS_BUILD) -DSETTINGSGEN -c -o $@ $<
alloc_func.o: $(SRC_DIR)/core/alloc_func.cpp $(SRC_DIR)/safeguards.h
$(E) '$(STAGE) Compiling $(<:$(SRC_DIR)/%.cpp=%.cpp)'
$(Q)$(CXX_BUILD) $(CFLAGS_BUILD) $(CXXFLAGS_BUILD) -DSETTINGSGEN -c -o $@ $<
getoptdata.o: $(SRC_DIR)/misc/getoptdata.cpp $(SRC_DIR)/misc/getoptdata.h $(SRC_DIR)/safeguards.h
$(E) '$(STAGE) Compiling $(<:$(SRC_DIR)/misc/%.cpp=%.cpp)'
$(Q)$(CXX_BUILD) $(CFLAGS_BUILD) $(CXXFLAGS_BUILD) -DSETTINGSGEN -c -o $@ $<
string.o: $(SRC_DIR)/string.cpp $(SRC_DIR)/safeguards.h
$(E) '$(STAGE) Compiling $(<:$(SRC_DIR)/%.cpp=%.cpp)'
$(Q)$(CXX_BUILD) $(CFLAGS_BUILD) $(CXXFLAGS_BUILD) -DSETTINGSGEN -c -o $@ $<
ini_load.o: $(SRC_DIR)/ini_load.cpp $(SRC_DIR)/core/alloc_func.hpp $(SRC_DIR)/core/mem_func.hpp $(SRC_DIR)/ini_type.h $(SRC_DIR)/string_func.h $(SRC_DIR)/safeguards.h
$(E) '$(STAGE) Compiling $(<:$(SRC_DIR)/%.cpp=%.cpp)'
$(Q)$(CXX_BUILD) $(CFLAGS_BUILD) $(CXXFLAGS_BUILD) -DSETTINGSGEN -c -o $@ $<
$(SETTINGSGEN): alloc_func.o string.o ini_load.o settingsgen.o getoptdata.o
$(E) '$(STAGE) Compiling and Linking $@'
$(Q)$(CXX_BUILD) $(CFLAGS_BUILD) $(CXXFLAGS_BUILD) $(LDFLAGS_BUILD) $^ -o $@
table/settings.h: $(SETTINGSGEN) $(SRC_DIR)/table/settings.h.preamble $(SRC_DIR)/table/settings.h.postamble $(SRC_DIR)/table/*.ini
$(E) '$(STAGE) Generating $@'
@mkdir -p table
$(Q)./$(SETTINGSGEN) -o table/settings.h -b $(SRC_DIR)/table/settings.h.preamble -a $(SRC_DIR)/table/settings.h.postamble $(SRC_DIR)/table/*.ini
depend:
clean:
$(E) '$(STAGE) Cleaning up settings files'
$(Q)rm -f settingsgen.o alloc_func.o getoptdata.o string.o ini_load.o $(SETTINGSGEN) table/settings.h
mrproper: clean
.PHONY: all mrproper depend clean
|