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/esp8266/Makefile.inc | |
parent | d8b578f42c5fbac101c77249c05939fd04d50722 (diff) |
Distinguish between C and C++ targets
Diffstat (limited to 'src/arch/esp8266/Makefile.inc')
-rw-r--r-- | src/arch/esp8266/Makefile.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/esp8266/Makefile.inc b/src/arch/esp8266/Makefile.inc index 71ac350..fdd5636 100644 --- a/src/arch/esp8266/Makefile.inc +++ b/src/arch/esp8266/Makefile.inc @@ -20,17 +20,17 @@ COMMON_FLAGS += -nostdlib -mlongcalls -D__ets__ -DICACHE_FLASH -DMULTIPASS_ARCH_ CXXFLAGS = -std=c++11 LDFLAGS += -nostdlib -Wl,--no-check-sections -u call_user_start -Wl,-static -TARGETS += src/arch/esp8266/arch.cc src/arch/esp8266/driver/gpio.cc -TARGETS += src/arch/esp8266/driver/stdout.cc src/arch/esp8266/driver/uptime.cc +CXX_TARGETS += src/arch/esp8266/arch.cc src/arch/esp8266/driver/gpio.cc +CXX_TARGETS += src/arch/esp8266/driver/stdout.cc src/arch/esp8266/driver/uptime.cc -OBJECTS = ${TARGETS:.cc=.o} +OBJECTS = ${CXX_TARGETS:.cc=.o} ifeq (${esp8266_led2}, 1) COMMON_FLAGS += -DLED_ON_GPIO16 endif ifneq ($(findstring stdin,${arch_drivers}), ) - TARGETS += src/arch/esp8266/driver/stdin.cc + CXX_TARGETS += src/arch/esp8266/driver/stdin.cc endif .cc.o: |