summaryrefslogtreecommitdiff
path: root/src/arch/blinkenrocket
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-11-13 15:33:41 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-11-13 15:33:41 +0100
commit36316c2e4a9dbeab28b97fa18fefc37eed4a6782 (patch)
tree791d220b4701e29bd28cf5d17d9a4e086cc50320 /src/arch/blinkenrocket
parent6f416f1957a18e6b00963db6f8d416e1c41bb044 (diff)
Support C targets
Diffstat (limited to 'src/arch/blinkenrocket')
-rw-r--r--src/arch/blinkenrocket/Makefile.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/arch/blinkenrocket/Makefile.inc b/src/arch/blinkenrocket/Makefile.inc
index c3ae7ea..277ab33 100644
--- a/src/arch/blinkenrocket/Makefile.inc
+++ b/src/arch/blinkenrocket/Makefile.inc
@@ -27,10 +27,13 @@ else ifneq ($(findstring i2c,${arch_drivers}), )
CXX_TARGETS += src/arch/blinkenrocket/driver/i2c.cc
endif
-OBJECTS = ${CXX_TARGETS:.cc=.o}
+OBJECTS = ${CXX_TARGETS:.cc=.o} ${C_TARGETS:.c=.o}
.cc.o:
- ${CXX} ${INCLUDES} ${COMMON_FLAGS} ${CXXFLAGS} -c -o $@ ${@:.o=.cc}
+ ${QUIET}${CXX} ${INCLUDES} ${COMMON_FLAGS} ${CXXFLAGS} -c -o $@ ${@:.o=.cc}
+
+.cc.o:
+ ${QUIET}${CC} ${INCLUDES} ${COMMON_FLAGS} ${CFLAGS} -c -o $@ ${@:.o=.c}
build/system.elf: ${OBJECTS}
${CXX} ${COMMON_FLAGS} ${CXXFLAGS} -Wl,--gc-sections -o $@ ${OBJECTS}