[U-Boot] [PATCH/next v3 26/28] tools/Makefile: Simplify HOST_CFLAGS/HOST_LDFLAGS generation

Peter Tyser ptyser at xes-inc.com
Sat Mar 14 00:54:50 CET 2009


Signed-off-by: Peter Tyser <ptyser at xes-inc.com>
---
 tools/Makefile |   17 +++++------------
 1 files changed, 5 insertions(+), 12 deletions(-)

diff --git a/tools/Makefile b/tools/Makefile
index d6d366d..9fe5b1a 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -35,22 +35,15 @@ TOOLSUBDIRS =
 # multiple symbol definitions are treated as errors, hence the
 # -multiply_defined suppress option to turn off this error.
 #
-ifeq ($(HOSTOS)-$(HOSTARCH),darwin-ppc)
-HOST_CFLAGS = -traditional-cpp -Wall
-HOST_LDFLAGS =-multiply_defined suppress
 
-else
-ifeq ($(HOSTOS)-$(HOSTARCH),netbsd-ppc)
-HOST_CFLAGS = -Wall -pedantic
+HOST_CFLAGS = -Wall
 HOST_LDFLAGS =
 
-#
-# Everyone else
-#
+ifeq ($(HOSTOS)-$(HOSTARCH),darwin-ppc)
+HOST_CFLAGS += -traditional-cpp
+HOST_LDFLAGS += -multiply_defined suppress
 else
-HOST_CFLAGS = -Wall -pedantic
-HOST_LDFLAGS =
-endif
+HOST_CFLAGS += -pedantic
 endif
 
 #
-- 
1.6.0.2.GIT



More information about the U-Boot mailing list