diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2016-04-05 09:36:17 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2016-04-05 09:36:28 +0200 |
commit | 24135ba4d3a4fb388de18e8652beee0d680c8555 (patch) | |
tree | 6c7f20e58fbbbd34233b5cfa21bb7071889c56e5 /toolchain/gcc | |
parent | 1bc1048101b0c648a93b02c515737fa0ce900489 (diff) |
add better gcc language support, allow to build objc/fortran
Diffstat (limited to 'toolchain/gcc')
-rw-r--r-- | toolchain/gcc/Makefile | 15 |
1 files changed, 11 insertions, 4 deletions
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 |