simulator: Makefile uses spaces ...

... tabs are reserved for recipes
This commit is contained in:
Nathan Schulte 2022-11-18 00:59:27 -06:00 committed by rusefillc
parent a0c1b738e6
commit 814f69cd39
1 changed files with 36 additions and 36 deletions

View File

@ -32,24 +32,24 @@ PCHSUB = simulator
CONFDIR = . CONFDIR = .
ifneq ($(OS),Windows_NT) ifneq ($(OS),Windows_NT)
SANITIZE = yes SANITIZE = yes
else else
SANITIZE = no SANITIZE = no
endif endif
# Compiler options here. # Compiler options here.
ifeq ($(USE_OPT),) ifeq ($(USE_OPT),)
USE_OPT = -Wall -Wno-error=implicit-fallthrough -Wno-error=write-strings -Wno-error=strict-aliasing USE_OPT = -Wall -Wno-error=implicit-fallthrough -Wno-error=write-strings -Wno-error=strict-aliasing
# If you would like to debug the simulator, swap which of these lines is commented. It's commented because debug info causes a 10-15x increase in binary size. # If you would like to debug the simulator, swap which of these lines is commented. It's commented because debug info causes a 10-15x increase in binary size.
USE_OPT += -O2 USE_OPT += -O2
# USE_OPT += -O0 -g # USE_OPT += -O0 -g
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
USE_OPT += -DEFI_SIM_IS_WINDOWS=1 USE_OPT += -DEFI_SIM_IS_WINDOWS=1
else else
USE_OPT += -m32 -DEFI_SIM_IS_WINDOWS=0 USE_OPT += -m32 -DEFI_SIM_IS_WINDOWS=0
endif endif
endif endif
# See explanation in main firmware Makefile for these three defines # See explanation in main firmware Makefile for these three defines
@ -57,14 +57,14 @@ USE_OPT += $(RUSEFI_OPT) -DEFI_UNIT_TEST=0 -DEFI_PROD_CODE=0 -DEFI_SIMULATOR=1
# Enable address sanitizer, but not on Windows since x86_64-w64-mingw32-g++ doesn't support it. # Enable address sanitizer, but not on Windows since x86_64-w64-mingw32-g++ doesn't support it.
ifeq ($(SANITIZE),yes) ifeq ($(SANITIZE),yes)
USE_OPT += -fsanitize=address USE_OPT += -fsanitize=address
endif endif
ifeq ($(CCACHE_DIR),) ifeq ($(CCACHE_DIR),)
$(info No CCACHE_DIR) $(info No CCACHE_DIR)
else else
$(info CCACHE_DIR is ${CCACHE_DIR}) $(info CCACHE_DIR is ${CCACHE_DIR})
CCPREFIX=ccache CCPREFIX=ccache
endif endif
# C specific options here (added to USE_OPT). # C specific options here (added to USE_OPT).
@ -168,33 +168,33 @@ CSRC = $(ALLCSRC) \
# setting. # setting.
CPPSRC = $(ALLCPPSRC) \ CPPSRC = $(ALLCPPSRC) \
$(CHIBIOS)/os/various/cpp_wrappers/ch.cpp \ $(CHIBIOS)/os/various/cpp_wrappers/ch.cpp \
$(PROJECT_DIR)/development/sensor_chart.cpp \ $(PROJECT_DIR)/development/sensor_chart.cpp \
$(HW_LAYER_DRIVERS_CPP) \ $(HW_LAYER_DRIVERS_CPP) \
$(HW_LAYER_DRIVERS_CORE_CPP) \ $(HW_LAYER_DRIVERS_CORE_CPP) \
$(CONSOLE_SRC_CPP) \ $(CONSOLE_SRC_CPP) \
$(DEV_SIMULATOR_SRC_CPP) \ $(DEV_SIMULATOR_SRC_CPP) \
simulator/rusEfiFunctionalTest.cpp \ simulator/rusEfiFunctionalTest.cpp \
simulator/can/hal_can_lld.cpp \ simulator/can/hal_can_lld.cpp \
simulator/framework.cpp \ simulator/framework.cpp \
simulator/boards.cpp \ simulator/boards.cpp \
$(TEST_SRC_CPP) \ $(TEST_SRC_CPP) \
$(RUSEFI_LIB_CPP) \ $(RUSEFI_LIB_CPP) \
main.cpp main.cpp
# List ASM source files here # List ASM source files here
ASMSRC = $(PORTASM) ASMSRC = $(PORTASM)
INCDIR = . \ INCDIR = . \
$(PCH_DIR) \ $(PCH_DIR) \
$(ALLINC) \ $(ALLINC) \
$(CHIBIOS)/os/various/cpp_wrappers \ $(CHIBIOS)/os/various/cpp_wrappers \
$(PROJECT_DIR)/hw_layer/drivers/can \ $(PROJECT_DIR)/hw_layer/drivers/can \
${CHIBIOS}/os/various \ ${CHIBIOS}/os/various \
$(CHIBIOS)/os/hal/lib/streams \ $(CHIBIOS)/os/hal/lib/streams \
$(RUSEFI_LIB_INC) \ $(RUSEFI_LIB_INC) \
simulator/can \ simulator/can \
simulator simulator
# List ASM source files here # List ASM source files here
ASMSRC = ASMSRC =