From b1355998c859cf4a1531b1035ca0ccb4a9e97409 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 13 Apr 2021 09:04:40 +0200 Subject: prepare for switch to config.h instead of CFLAGS defines --- src/arch/arduino-nano/Makefile.inc | 4 ++-- src/arch/atmega2560/Makefile.inc | 4 ++-- src/arch/blinkenrocket/Makefile.inc | 4 ++-- src/arch/esp8266/Makefile.inc | 4 ++-- src/arch/lm4f120h5qr-stellaris/Makefile.inc | 8 ++++---- src/arch/msp430fr5969lp/Makefile.inc | 6 +++--- src/arch/msp430fr5994lp/Makefile.inc | 6 +++--- src/arch/posix/Makefile.inc | 4 ++-- src/arch/stm32f446re-nucleo/Makefile.inc | 8 ++++---- 9 files changed, 24 insertions(+), 24 deletions(-) (limited to 'src/arch') diff --git a/src/arch/arduino-nano/Makefile.inc b/src/arch/arduino-nano/Makefile.inc index 12777d9..0ce2ef7 100644 --- a/src/arch/arduino-nano/Makefile.inc +++ b/src/arch/arduino-nano/Makefile.inc @@ -140,10 +140,10 @@ COMMON_FLAGS += -DBAUD=${uart_baud}UL OBJECTS = ${CXX_TARGETS:.cc=.o} ${C_TARGETS:.c=.o} -.cc.o: +%.o : %.cc | include/config.h ${QUIET}${CXX} ${INCLUDES} ${COMMON_FLAGS} ${CXXFLAGS} -c -o $@ ${@:.o=.cc} -.c.o: +%.o : %.c | include/config.h ${QUIET}${CC} ${INCLUDES} ${COMMON_FLAGS} ${CFLAGS} -c -o $@ ${@:.o=.c} build/system.elf: ${OBJECTS} diff --git a/src/arch/atmega2560/Makefile.inc b/src/arch/atmega2560/Makefile.inc index d78db66..acfd65a 100644 --- a/src/arch/atmega2560/Makefile.inc +++ b/src/arch/atmega2560/Makefile.inc @@ -135,10 +135,10 @@ COMMON_FLAGS += -DBAUD=${uart_baud}UL OBJECTS = ${CXX_TARGETS:.cc=.o} ${C_TARGETS:.c=.o} -.cc.o: +%.o : %.cc | include/config.h ${QUIET}${CXX} ${INCLUDES} ${COMMON_FLAGS} ${CXXFLAGS} -c -o $@ ${@:.o=.cc} -.c.o: +%.o : %.c | include/config.h ${QUIET}${CC} ${INCLUDES} ${COMMON_FLAGS} ${CFLAGS} -c -o $@ ${@:.o=.c} build/system.elf: ${OBJECTS} diff --git a/src/arch/blinkenrocket/Makefile.inc b/src/arch/blinkenrocket/Makefile.inc index 41e1de3..64e87f5 100644 --- a/src/arch/blinkenrocket/Makefile.inc +++ b/src/arch/blinkenrocket/Makefile.inc @@ -54,10 +54,10 @@ endif OBJECTS = ${CXX_TARGETS:.cc=.o} ${C_TARGETS:.c=.o} -.cc.o: +%.o : %.cc | include/config.h ${QUIET}${CXX} ${INCLUDES} ${COMMON_FLAGS} ${CXXFLAGS} -c -o $@ ${@:.o=.cc} -.c.o: +%.o : %.c | include/config.h ${QUIET}${CC} ${INCLUDES} ${COMMON_FLAGS} ${CFLAGS} -c -o $@ ${@:.o=.c} build/system.elf: ${OBJECTS} diff --git a/src/arch/esp8266/Makefile.inc b/src/arch/esp8266/Makefile.inc index 18877ee..7bbc2f1 100644 --- a/src/arch/esp8266/Makefile.inc +++ b/src/arch/esp8266/Makefile.inc @@ -64,11 +64,11 @@ ifdef CONFIG_arch_esp8266_driver_uptime CXX_TARGETS += src/arch/esp8266/driver/uptime.cc endif -.cc.o: +%.o : %.cc | include/config.h ${QUIET}${CXX} ${INCLUDES} ${COMMON_FLAGS} ${CXXFLAGS} -c -o $@ ${@:.o=.cc} ${QUIET}${OBJCOPY} --rename-section .text=.irom0.text --rename-section .literal=.irom0.literal $@ -.c.o: +%.o : %.c | include/config.h ${QUIET}${CC} ${INCLUDES} ${COMMON_FLAGS} ${CFLAGS} -c -o $@ ${@:.o=.c} ${QUIET}${OBJCOPY} --rename-section .text=.irom0.text --rename-section .literal=.irom0.literal $@ diff --git a/src/arch/lm4f120h5qr-stellaris/Makefile.inc b/src/arch/lm4f120h5qr-stellaris/Makefile.inc index d49391b..7d1e5e9 100644 --- a/src/arch/lm4f120h5qr-stellaris/Makefile.inc +++ b/src/arch/lm4f120h5qr-stellaris/Makefile.inc @@ -73,16 +73,16 @@ endif OBJECTS = ${CXX_TARGETS:.cc=.o} ${C_TARGETS:.c=.o} ${ASM_TARGETS:.S=.o} -.cc.o: +%.o : %.cc | include/config.h ${QUIET}${CXX} ${INCLUDES} ${COMMON_FLAGS} ${CXXFLAGS} -c -o $@ ${@:.o=.cc} -.c.o: +%.o : %.c | include/config.h ${QUIET}${CC} ${INCLUDES} ${COMMON_FLAGS} ${CFLAGS} -c -o $@ ${@:.o=.c} -.S.o: +%.o : %.S | include/config.h ${QUIET}${CC} ${INCLUDES} ${COMMON_FLAGS} -c -o $@ ${@:.o=.S} -.s.o: +%.o : %.s | include/config.h ${QUIET}${CC} ${INCLUDES} ${COMMON_FLAGS} -c -o $@ ${@:.o=.S} ext/libopencm3/Makefile: diff --git a/src/arch/msp430fr5969lp/Makefile.inc b/src/arch/msp430fr5969lp/Makefile.inc index f9d9a28..d6f4d9f 100644 --- a/src/arch/msp430fr5969lp/Makefile.inc +++ b/src/arch/msp430fr5969lp/Makefile.inc @@ -112,13 +112,13 @@ endif OBJECTS = ${CXX_TARGETS:.cc=.o} ${C_TARGETS:.c=.o} ${ASM_TARGETS:.S=.o} -.cc.o: +%.o : %.cc | include/config.h ${QUIET}${CXX} ${INCLUDES} ${COMMON_FLAGS} ${CXXFLAGS} -c -o $@ ${@:.o=.cc} -.c.o: +%.o : %.c | include/config.h ${QUIET}${CC} ${INCLUDES} ${COMMON_FLAGS} ${CFLAGS} -c -o $@ ${@:.o=.c} -.S.o: +%.o : %.S | include/config.h ${QUIET}${CC} ${INCLUDES} ${COMMON_FLAGS} -Wa,-gstabs,-ggdb -x assembler-with-cpp -c -o $@ ${@:.o=.S} build/system.elf: ${OBJECTS} diff --git a/src/arch/msp430fr5994lp/Makefile.inc b/src/arch/msp430fr5994lp/Makefile.inc index 57a7d2c..cffb395 100644 --- a/src/arch/msp430fr5994lp/Makefile.inc +++ b/src/arch/msp430fr5994lp/Makefile.inc @@ -154,13 +154,13 @@ endif OBJECTS = ${CXX_TARGETS:.cc=.o} ${C_TARGETS:.c=.o} ${ASM_TARGETS:.S=.o} -.cc.o: +%.o : %.cc | include/config.h ${QUIET}${CXX} ${INCLUDES} ${COMMON_FLAGS} ${CXXFLAGS} -c -o $@ ${@:.o=.cc} -.c.o: +%.o : %.c | include/config.h ${QUIET}${CC} ${INCLUDES} ${COMMON_FLAGS} ${CFLAGS} -c -o $@ ${@:.o=.c} -.S.o: +%.o : %.S | include/config.h ${QUIET}${CC} ${INCLUDES} ${COMMON_FLAGS} -Wa,-gstabs,-ggdb -x assembler-with-cpp -c -o $@ ${@:.o=.S} build/system.elf: ${OBJECTS} diff --git a/src/arch/posix/Makefile.inc b/src/arch/posix/Makefile.inc index 32a56cc..5e7e7ee 100644 --- a/src/arch/posix/Makefile.inc +++ b/src/arch/posix/Makefile.inc @@ -45,10 +45,10 @@ ifdef CONFIG_gpio_trace COMMON_FLAGS += -DGPIO_TRACE endif -.cc.o: +%.o : %.cc | include/config.h ${QUIET}${CXX} ${INCLUDES} ${COMMON_FLAGS} ${CXXFLAGS} -c -o $@ ${@:.o=.cc} -.c.o: +%.o: %.c | include/config.h ${QUIET}${CC} ${INCLUDES} ${COMMON_FLAGS} ${CFLAGS} -c -o $@ ${@:.o=.c} build/system.elf: ${OBJECTS} diff --git a/src/arch/stm32f446re-nucleo/Makefile.inc b/src/arch/stm32f446re-nucleo/Makefile.inc index dd0de00..2aec12b 100644 --- a/src/arch/stm32f446re-nucleo/Makefile.inc +++ b/src/arch/stm32f446re-nucleo/Makefile.inc @@ -72,16 +72,16 @@ endif OBJECTS = ${CXX_TARGETS:.cc=.o} ${C_TARGETS:.c=.o} ${ASM_TARGETS:.S=.o} -.cc.o: +%.o : %.cc | include/config.h ${QUIET}${CXX} ${INCLUDES} ${COMMON_FLAGS} ${CXXFLAGS} -c -o $@ ${@:.o=.cc} -.c.o: +%.o : %.c | include/config.h ${QUIET}${CC} ${INCLUDES} ${COMMON_FLAGS} ${CFLAGS} -c -o $@ ${@:.o=.c} -.S.o: +%.o : %.S | include/config.h ${QUIET}${CC} ${INCLUDES} ${COMMON_FLAGS} -c -o $@ ${@:.o=.S} -.s.o: +%.o : %.s | include/config.h ${QUIET}${CC} ${INCLUDES} ${COMMON_FLAGS} -c -o $@ ${@:.o=.S} ext/libopencm3/Makefile: -- cgit v1.2.3