aboutsummaryrefslogtreecommitdiff
path: root/clients/net-snk/make.rules
diff options
context:
space:
mode:
Diffstat (limited to 'clients/net-snk/make.rules')
-rw-r--r--clients/net-snk/make.rules43
1 files changed, 43 insertions, 0 deletions
diff --git a/clients/net-snk/make.rules b/clients/net-snk/make.rules
new file mode 100644
index 0000000..1343d82
--- /dev/null
+++ b/clients/net-snk/make.rules
@@ -0,0 +1,43 @@
+# *****************************************************************************
+# * Copyright (c) 2004, 2007 IBM Corporation
+# * All rights reserved.
+# * This program and the accompanying materials
+# * are made available under the terms of the BSD License
+# * which accompanies this distribution, and is available at
+# * http://www.opensource.org/licenses/bsd-license.php
+# *
+# * Contributors:
+# * IBM Corporation - initial implementation
+# ****************************************************************************/
+
+CROSS ?= powerpc64-linux-
+
+HOSTCC ?= gcc
+HOSTCFLAGS = -g -Wall -W -O2 -I. -I../include
+
+INCLCMNDIR ?= $(TOP)/../../include
+LIBCMNDIR ?= $(TOP)/../../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)
+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