diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-11-13 13:34:20 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-11-13 13:34:20 +0100 |
commit | 6f416f1957a18e6b00963db6f8d416e1c41bb044 (patch) | |
tree | 67553466aac7309ba6dd07a316565fbbb7c6a38e /src/arch/blinkenrocket | |
parent | d8b578f42c5fbac101c77249c05939fd04d50722 (diff) |
Distinguish between C and C++ targets
Diffstat (limited to 'src/arch/blinkenrocket')
-rw-r--r-- | src/arch/blinkenrocket/Makefile.inc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/arch/blinkenrocket/Makefile.inc b/src/arch/blinkenrocket/Makefile.inc index 1d596fd..c3ae7ea 100644 --- a/src/arch/blinkenrocket/Makefile.inc +++ b/src/arch/blinkenrocket/Makefile.inc @@ -17,17 +17,17 @@ ifeq (${aspectc}, 1) CXX = ag++ -r build/repo.acp -v 0 --c_compiler avr-g++ -p . --Xcompiler endif -TARGETS += src/arch/blinkenrocket/arch.cc -TARGETS += src/arch/blinkenrocket/driver/gpio.cc -TARGETS += src/arch/blinkenrocket/driver/stdout.cc -TARGETS += src/arch/blinkenrocket/driver/uptime.cc +CXX_TARGETS += src/arch/blinkenrocket/arch.cc +CXX_TARGETS += src/arch/blinkenrocket/driver/gpio.cc +CXX_TARGETS += src/arch/blinkenrocket/driver/stdout.cc +CXX_TARGETS += src/arch/blinkenrocket/driver/uptime.cc ifneq ($(findstring softi2c,${drivers}), ) else ifneq ($(findstring i2c,${arch_drivers}), ) - TARGETS += src/arch/blinkenrocket/driver/i2c.cc + CXX_TARGETS += src/arch/blinkenrocket/driver/i2c.cc endif -OBJECTS = ${TARGETS:.cc=.o} +OBJECTS = ${CXX_TARGETS:.cc=.o} .cc.o: ${CXX} ${INCLUDES} ${COMMON_FLAGS} ${CXXFLAGS} -c -o $@ ${@:.o=.cc} |