aboutsummaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorThomas Huth <thuth@linux.vnet.ibm.com>2011-02-02 15:21:44 +0100
committerThomas Huth <thuth@linux.vnet.ibm.com>2011-03-22 15:22:09 +0100
commit28c890f369cfeab37915768be7d890a4e523509c (patch)
tree456b332e1333751590a8a220a4da422806d88595 /clients
parent39426bad550f340dcf2b544ae23f465fbbbc42f5 (diff)
downloadSLOF-28c890f369cfeab37915768be7d890a4e523509c.zip
SLOF-28c890f369cfeab37915768be7d890a4e523509c.tar.gz
SLOF-28c890f369cfeab37915768be7d890a4e523509c.tar.bz2
Improved make.rules files
The make.rules of net-snk now uses the rules of the main make.rules file, too, so that it is not necessary anymore to configure everything twice. Also replaced the non-intuitive NEW_BUILD variable with the simply "V" flag variable, so that you can now type "make V=x" with x being either 0, 1 or 2 for controlling the verbosity level of the build process. Finally I also replaced the "echo -e" constructs with printfs since "echo -e" is not POSIX compliant and and thus does not work other shells than bash. Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Diffstat (limited to 'clients')
-rw-r--r--clients/net-snk/make.rules30
1 files changed, 3 insertions, 27 deletions
diff --git a/clients/net-snk/make.rules b/clients/net-snk/make.rules
index be492d7..ea89e08 100644
--- a/clients/net-snk/make.rules
+++ b/clients/net-snk/make.rules
@@ -10,41 +10,17 @@
# * IBM Corporation - initial implementation
# ****************************************************************************/
-CROSS ?= powerpc64-linux-
+ROOTDIR ?= $(TOP)/../..
-HOSTCC ?= gcc
-HOSTCFLAGS = -g -Wall -W -O2 -I. -I../include
+include $(ROOTDIR)/make.rules
-ROOTDIR ?= $(TOP)/../..
INCLCMNDIR ?= $(ROOTDIR)/include
LIBCMNDIR ?= $(ROOTDIR)/lib
CFLAGS = -g -I. -I$(TOP)/include -I$(LIBCMNDIR)/libc/include \
-I$(LIBCMNDIR)/libbootmsg -I$(INCLCMNDIR)/$(CPUARCH) \
-O2 -fno-builtin -ffreestanding -msoft-float -mno-altivec \
-Wall $(FLAG) -nostdinc -fno-stack-protector
-ifeq ($(SNK_LJTAG_PROCESS), 1)
-CFLAGS += -I$(TOP)/../../board-malta/include
-CFLAGS += -I$(TOP)/../../include/cbea
-endif
+
LDFLAGS = -nostdlib
ASFLAGS = -I. -I$(TOP)/include -Wa,-mregnames -I$(INCLCMNDIR)/$(CPUARCH)
DD = dd
-
-ifdef NEW_BUILD
-MAKEFLAGS = --silent
-CC = echo -e "\t[CC]\t$(DIRECTORY)$@"; $(CROSS)gcc -m64
-AS = echo -e "\t[AS]\t$(DIRECTORY)$@"; $(CROSS)as -m64
-LD = echo -e "\t[LD]\t$(DIRECTORY)$@"; $(CROSS)ld -melf64ppc
-CLEAN = echo -e "\t[CLEAN]\t$(DIRECTORY)$$dir"
-else
-CC = $(CROSS)gcc -m64
-AS = $(CROSS)as -m64
-LD = $(CROSS)ld -melf64ppc
-CLEAN = echo -n
-endif
-
-OBJCOPY = $(CROSS)objcopy
-OBJDUMP = $(CROSS)objdump
-STRIP = $(CROSS)strip
-AR = $(CROSS)ar
-RANLIB = $(CROSS)ranlib