diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-05-07 16:51:46 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-05-15 14:01:56 -0400 |
commit | 450c14b28631455ea61eb15bebe5579268b228ef (patch) | |
tree | 53955a1030126194918ed98347ddcb627a2052b9 /src | |
parent | 33dfc386c9f9ccf4507125c8109f114a1292c5c9 (diff) | |
download | kutter-450c14b28631455ea61eb15bebe5579268b228ef.tar.gz kutter-450c14b28631455ea61eb15bebe5579268b228ef.tar.xz kutter-450c14b28631455ea61eb15bebe5579268b228ef.zip |
build: Rename makefile CFLAGS-y to CFLAGS and LDFLAGS-y to CFLAGS_klipper.elf
Rename some makefile variables.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/avr/Makefile | 4 | ||||
-rw-r--r-- | src/sam3x8e/Makefile | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/avr/Makefile b/src/avr/Makefile index 444df365..fa9258b1 100644 --- a/src/avr/Makefile +++ b/src/avr/Makefile @@ -5,7 +5,7 @@ CROSS_PREFIX=avr- dirs-y += src/avr lib/pjrc_usb_serial -CFLAGS-y += -mmcu=$(CONFIG_MCU) +CFLAGS += -mmcu=$(CONFIG_MCU) # Add avr source files src-y += avr/main.c avr/timer.c avr/gpio.c @@ -14,7 +14,7 @@ src-$(CONFIG_AVR_USBSERIAL) += avr/usbserial.c ../lib/pjrc_usb_serial/usb_serial src-$(CONFIG_AVR_SERIAL) += avr/serial.c # Suppress broken "misspelled signal handler" warnings on gcc 4.8.1 -CFLAGS_klipper.o := $(if $(filter 4.8.1, $(shell $(CC) -dumpversion)), -w) +CFLAGS_klipper.o := $(CFLAGS_klipper.o) $(if $(filter 4.8.1, $(shell $(CC) -dumpversion)), -w) # Build the additional hex output file target-y += $(OUT)klipper.elf.hex diff --git a/src/sam3x8e/Makefile b/src/sam3x8e/Makefile index e3379630..5cf805e8 100644 --- a/src/sam3x8e/Makefile +++ b/src/sam3x8e/Makefile @@ -6,13 +6,13 @@ CROSS_PREFIX=arm-none-eabi- dirs-y += src/sam3x8e src/generic dirs-y += lib/cmsis-sam3x8e/source lib/cmsis-sam3x8e/source/gcc -CFLAGS-y += -mthumb -mcpu=cortex-m3 -CFLAGS-y += -Ilib/cmsis-sam3x8e/include -Ilib/cmsis-sam3x8e/cmsis-include -CFLAGS-y += -D__SAM3X8E__ +CFLAGS += -mthumb -mcpu=cortex-m3 +CFLAGS += -Ilib/cmsis-sam3x8e/include -Ilib/cmsis-sam3x8e/cmsis-include +CFLAGS += -D__SAM3X8E__ -LDFLAGS-y += -Llib/cmsis-sam3x8e/source/gcc -LDFLAGS-y += -T lib/cmsis-sam3x8e/source/gcc/sam3x8e_flash.ld -LDFLAGS-y += --specs=nano.specs --specs=nosys.specs +CFLAGS_klipper.elf += -Llib/cmsis-sam3x8e/source/gcc +CFLAGS_klipper.elf += -T lib/cmsis-sam3x8e/source/gcc/sam3x8e_flash.ld +CFLAGS_klipper.elf += --specs=nano.specs --specs=nosys.specs # Add source files src-y += sam3x8e/main.c sam3x8e/timer.c sam3x8e/gpio.c |