1 # 2 # CDDL HEADER START 3 # 4 # The contents of this file are subject to the terms of the 5 # Common Development and Distribution License (the "License"). 6 # You may not use this file except in compliance with the License. 7 # 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 # or http://www.opensolaris.org/os/licensing. 10 # See the License for the specific language governing permissions 11 # and limitations under the License. 12 # 13 # When distributing Covered Code, include this CDDL HEADER in each 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 # If applicable, add the following below this CDDL HEADER, with the 16 # fields enclosed by brackets "[]" replaced with your own identifying 17 # information: Portions Copyright [yyyy] [name of copyright owner] 18 # 19 # CDDL HEADER END 20 # 21 # Copyright 2008 Sine Nomine Associates. All rights reserved. 22 # Use is subject to license terms. 23 # 24 25 # 26 # Copyright 2006 Sun Microsystems, Inc. All rights reserved. 27 # Use is subject to license terms. 28 # 29 30 # 31 # We have to cross-compile s390x on s390x therefore we need to generate 32 # tools and commands using the s390x compilers as that's where these 33 # things will be running for the kernel and library we use the stuff 34 # that will generate zArchitecture opcodes 35 # 36 CW_NO_SHADOW= 1 37 NATIVE_MACH= sparc 38 CROSS_C= $(ONBLD_TOOLS)/bin/sparc/cw -_cc 39 s390x_CC= $(CROSS_C) -D__s390x 40 s390x_CCC= $(CROSS_C) -D__s390x 41 s390x_CPP= $(GNU_ROOT)/bin/cpp 42 s390x_CPP= /usr/ccs/lib/cpp 43 s390x_AS= /usr/ccs/bin/as -xregsym=no 44 s390x_LD= /usr/ccs/bin/ld 45 s390x_LINT= $(SPRO_VROOT)/bin/lint 46 s390x_XARCH= $(sparcv9_XARCH) 47 s390x_CFLAGS= $(sparcv9_CFLAGS) -D__s390x -D__s390 48 s390x_COPTFLAG= $(sparcv9_COPTFLAG) 49 s390_CC= $(CROSS_C) -D__s390 50 s390_CCC= $(CROSS_C) -D__s390 51 s390_CPP= $(GNU_ROOT)/bin/cpp 52 s390_CPP= /usr/ccs/lib/cpp 53 s390_AS= /usr/ccs/bin/as -xregsym=no 54 s390_LD= /usr/ccs/bin/ld 55 s390_LINT= $(SPRO_VROOT)/bin/lint 56 s390_XARCH= $(sparc_XARCH) 57 s390_CFLAGS= $(sparc_CFLAGS) -D__s390 58 s390_COPTFLAG= $(sparc_COPTFLAG) 59 LINK.c= $(CROSS_C) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) 60 LINK64.c= $(CROSS_C) $(CFLAGS64) $(CPPFLAGS) $(LDFLAGS) 61 NORUNPATH= -norunpath -nolib 62 LINK.cc= $(CROSS_C) $(CCFLAGS) $(CPPFLAGS) $(NORUNPATH) \ 63 $(LDFLAGS) $(CCNEEDED) 64 LINK64.cc= $(CROSS_C) $(CCFLAGS64) $(CPPFLAGS) $(NORUNPATH) \ 65 $(LDFLAGS) $(CCNEEDED) 66