Makefile: apply defines to asm files

This commit is contained in:
rw-r-r-0644 2021-05-30 20:07:40 +02:00
parent fcb7273103
commit 332c25237b

View File

@ -32,15 +32,17 @@ DATA :=
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
ARCH := -march=armv5te -mcpu=arm926ej-s -marm -mthumb-interwork -mbig-endian -mfloat-abi=soft ARCH := -march=armv5te -mcpu=arm926ej-s -marm -mthumb-interwork -mbig-endian -mfloat-abi=soft
DEFINES := -DCAN_HAZ_IRQ -D_GNU_SOURCE
CFLAGS := -g -std=c11 -Wall -Wno-unused-function -O3 \ CFLAGS := -g -std=c11 -Wall -Wno-unused-function -O3 \
-fomit-frame-pointer -ffunction-sections \ -fomit-frame-pointer -ffunction-sections \
$(ARCH) $(ARCH)
CFLAGS += $(INCLUDE) -DCAN_HAZ_IRQ -D_GNU_SOURCE -fno-builtin-printf -Wno-nonnull CFLAGS += $(INCLUDE) $(DEFINES) -fno-builtin-printf -Wno-nonnull
CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions
ASFLAGS := -g $(ARCH) ASFLAGS := -g $(ARCH) $(DEFINES)
LDFLAGS = -n -nostartfiles -g --specs=../stage2/link.specs $(ARCH) -Wl,--gc-sections,-Map,$(TARGET).map \ LDFLAGS = -n -nostartfiles -g --specs=../stage2/link.specs $(ARCH) -Wl,--gc-sections,-Map,$(TARGET).map \
-L$(DEVKITARM)/lib/gcc/arm-none-eabi/5.3.0/be -L$(DEVKITARM)/arm-none-eabi/lib/be -L$(DEVKITARM)/lib/gcc/arm-none-eabi/5.3.0/be -L$(DEVKITARM)/arm-none-eabi/lib/be