mirror of
https://github.com/isfshax/isfshax.git
synced 2024-11-06 03:35:05 +01:00
Makefile: apply defines to asm files
This commit is contained in:
parent
fcb7273103
commit
332c25237b
6
Makefile
6
Makefile
@ -32,15 +32,17 @@ DATA :=
|
||||
#---------------------------------------------------------------------------------
|
||||
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 \
|
||||
-fomit-frame-pointer -ffunction-sections \
|
||||
$(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
|
||||
|
||||
ASFLAGS := -g $(ARCH)
|
||||
ASFLAGS := -g $(ARCH) $(DEFINES)
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user