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 | |
parent | 6f416f1957a18e6b00963db6f8d416e1c41bb044 (diff) |
Support C targets
Diffstat (limited to 'src/arch/arduino-nano')
-rw-r--r-- | src/arch/arduino-nano/Makefile.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/arch/arduino-nano/Makefile.inc b/src/arch/arduino-nano/Makefile.inc index dd8eb30..9a3c1e3 100644 --- a/src/arch/arduino-nano/Makefile.inc +++ b/src/arch/arduino-nano/Makefile.inc @@ -45,11 +45,14 @@ else COMMON_FLAGS += -DF_CPU=16000000UL endif -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} $@ |