simplify target language selection to remove nasty nested ifeq
authorEric Andersen <andersen@codepoet.org>
Wed, 2 Mar 2005 07:30:26 +0000 (07:30 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 2 Mar 2005 07:30:26 +0000 (07:30 -0000)
toolchain/gcc/gcc-uclibc-3.x.mk

index fd084b29baa64e4348e3aca8cce24f2d6ff19602..5aae70940af98a30daa1411abd619256138aa4c0 100644 (file)
@@ -39,14 +39,18 @@ GCC_STRIP_HOST_BINARIES:=true
 #
 #############################################################
 
-ifeq ($(BR2_INSTALL_LIBGCJ),y)
-TARGET_LANGUAGES:=c,c++,java
-else
-ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
-TARGET_LANGUAGES:=c,c++
-else
 TARGET_LANGUAGES:=c
+
+ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
+TARGET_LANGUAGES:=$(TARGET_LANGUAGES),c++
 endif
+
+ifeq ($(BR2_INSTALL_LIBGCJ),y)
+TARGET_LANGUAGES:=$(TARGET_LANGUAGES),java
+endif
+
+ifeq ($(BR2_INSTALL_OBJC),y)
+TARGET_LANGUAGES:=$(TARGET_LANGUAGES),objc
 endif
 
 #############################################################