Skip to content
Snippets Groups Projects
Commit c00a200c authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

add optional aspectc++ support

parent f9d2d27f
No related branches found
No related tags found
No related merge requests found
default: build/system.elf default: build/system.elf
INCLUDES = -Iinclude INCLUDES = -Iinclude
COMMON_FLAGS = -g -Os -Wall -Wextra -unused -fno-rtti COMMON_FLAGS = -g -Os -Wall -Wextra -fno-rtti
CFLAGS = -std=c99 CFLAGS = -std=c99
CXXFLAGS = -std=c++14 CXXFLAGS = -std=c++14
......
...@@ -14,6 +14,10 @@ NM = avr-nm ...@@ -14,6 +14,10 @@ NM = avr-nm
OBJCOPY = avr-objcopy OBJCOPY = avr-objcopy
OBJDUMP = avr-objdump OBJDUMP = avr-objdump
ifeq (${aspectc}, 1)
CXX = ag++ -r build/repo.acp -v 0 --c_compiler avr-g++ -p . --Xcompiler
endif
TARGETS += src/arch/arduino-nano/arch.cc TARGETS += src/arch/arduino-nano/arch.cc
TARGETS += src/arch/arduino-nano/driver/gpio.cc TARGETS += src/arch/arduino-nano/driver/gpio.cc
TARGETS += src/arch/arduino-nano/driver/stdout.cc TARGETS += src/arch/arduino-nano/driver/stdout.cc
......
...@@ -11,6 +11,10 @@ AR = ${TOOLCHAIN_BASE}/xtensa-lx106-elf-ar ...@@ -11,6 +11,10 @@ AR = ${TOOLCHAIN_BASE}/xtensa-lx106-elf-ar
LD = ${TOOLCHAIN_BASE}/xtensa-lx106-elf-gcc LD = ${TOOLCHAIN_BASE}/xtensa-lx106-elf-gcc
OBJCOPY = ${TOOLCHAIN_BASE}/xtensa-lx106-elf-objcopy OBJCOPY = ${TOOLCHAIN_BASE}/xtensa-lx106-elf-objcopy
ifeq (${aspectc}, 1)
CXX = ag++ -r build/repo.acp -v 0 --c_compiler ${TOOLCHAIN_BASE}/xtensa-lx106-elf-g++ -p . --Xcompiler
endif
INCLUDES += -Iinclude/esp8266 -I${SDK_BASE}/include INCLUDES += -Iinclude/esp8266 -I${SDK_BASE}/include
COMMON_FLAGS += -nostdlib -mlongcalls -D__ets__ -DICACHE_FLASH COMMON_FLAGS += -nostdlib -mlongcalls -D__ets__ -DICACHE_FLASH
CXXFLAGS = -std=c++11 CXXFLAGS = -std=c++11
......
...@@ -12,6 +12,10 @@ OBJCOPY = /opt/msp430/ti/gcc/bin/msp430-elf-objcopy ...@@ -12,6 +12,10 @@ OBJCOPY = /opt/msp430/ti/gcc/bin/msp430-elf-objcopy
TARGETS += src/arch/msp430fr5969lp/arch.cc TARGETS += src/arch/msp430fr5969lp/arch.cc
ifeq (${aspectc}, 1)
CXX = ag++ -r build/repo.acp -v 0 --c_compiler /opt/msp430/ti/gcc/bin/msp430-elf-g++ -p . --Xcompiler
endif
ifneq ($(findstring adc,${arch_drivers}), ) ifneq ($(findstring adc,${arch_drivers}), )
TARGETS += src/arch/msp430fr5969lp/driver/adc.cc TARGETS += src/arch/msp430fr5969lp/driver/adc.cc
endif endif
......
...@@ -3,6 +3,10 @@ ...@@ -3,6 +3,10 @@
CC = gcc CC = gcc
CXX = g++ CXX = g++
ifeq (${aspectc}, 1)
CXX = ag++ -r build/repo.acp -v 0 -p . --Xcompiler
endif
INCLUDES += -Iinclude/posix INCLUDES += -Iinclude/posix
TARGETS += src/arch/posix/arch.cc src/arch/posix/driver/gpio.cc TARGETS += src/arch/posix/arch.cc src/arch/posix/driver/gpio.cc
TARGETS += src/arch/posix/driver/stdout.cc src/arch/posix/driver/uptime.cc TARGETS += src/arch/posix/driver/stdout.cc src/arch/posix/driver/uptime.cc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment