diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-11-13 15:33:41 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-11-13 15:33:41 +0100 |
commit | 36316c2e4a9dbeab28b97fa18fefc37eed4a6782 (patch) | |
tree | 791d220b4701e29bd28cf5d17d9a4e086cc50320 /src/arch/arduino-nano-168/Makefile.inc | |
parent | 6f416f1957a18e6b00963db6f8d416e1c41bb044 (diff) |
Support C targets
Diffstat (limited to 'src/arch/arduino-nano-168/Makefile.inc')
-rw-r--r-- | src/arch/arduino-nano-168/Makefile.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/arch/arduino-nano-168/Makefile.inc b/src/arch/arduino-nano-168/Makefile.inc index e1e1028..2f501f6 100644 --- a/src/arch/arduino-nano-168/Makefile.inc +++ b/src/arch/arduino-nano-168/Makefile.inc @@ -64,11 +64,14 @@ endif COMMON_FLAGS += -DBAUD=${uart_baud}UL -OBJECTS = ${CXX_TARGETS:.cc=.o} +OBJECTS = ${CXX_TARGETS:.cc=.o} ${C_TARGETS:.c=.o} .cc.o: ${QUIET}${CXX} ${INCLUDES} ${COMMON_FLAGS} ${CXXFLAGS} -c -o $@ ${@:.o=.cc} +.c.o: + ${QUIET}${CC} ${INCLUDES} ${COMMON_FLAGS} ${CFLAGS} -c -o $@ ${@:.o=.c} + build/system.elf: ${OBJECTS} ${QUIET}${CXX} ${COMMON_FLAGS} ${CXXFLAGS} -Wl,--gc-sections -o $@ ${OBJECTS} ${QUIET}avr-size --format=avr --mcu=${MCU} $@ |