From 24135ba4d3a4fb388de18e8652beee0d680c8555 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 5 Apr 2016 09:36:17 +0200 Subject: add better gcc language support, allow to build objc/fortran --- toolchain/gcc/Makefile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'toolchain/gcc/Makefile') diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile index 1fe6294ae..2b620bf07 100644 --- a/toolchain/gcc/Makefile +++ b/toolchain/gcc/Makefile @@ -189,11 +189,18 @@ ifeq (${ADK_MAKE_PARALLEL},y) GCC_MAKEOPTS+= -j${ADK_MAKE_JOBS} endif -ifeq ($(ADK_TARGET_WITHOUT_CXX),y) -LANGUAGES:=c -else -LANGUAGES:=c,c++ +USE_LANG:=c +ifeq ($(ADK_TOOLCHAIN_WITH_CXX),y) +USE_LANG+=c++ +endif +ifeq ($(ADK_TOOLCHAIN_WITH_OBJC),y) +USE_LANG+=objc endif +ifeq ($(ADK_TOOLCHAIN_WITH_FORTRAN),y) +USE_LANG+=fortran +endif + +LANGUAGES=$(shell echo ${USE_LANG} |tr ' ' ',') include ${ADK_TOPDIR}/mk/buildhlp.mk -- cgit v1.2.3