Makefile revision ecb56eb0ffe7dd69b90f2aa3f3be470eca3ecc28
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# CDDL HEADER START
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# The contents of this file are subject to the terms of the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Common Development and Distribution License (the "License").
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# You may not use this file except in compliance with the License.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# See the License for the specific language governing permissions
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# and limitations under the License.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# When distributing Covered Code, include this CDDL HEADER in each
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# If applicable, add the following below this CDDL HEADER, with the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# fields enclosed by brackets "[]" replaced with your own identifying
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# information: Portions Copyright [yyyy] [name of copyright owner]
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# CDDL HEADER END
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Use is subject to license terms.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#ident "%Z%%M% %I% %E% SMI"
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterTOPDIR = ../../../../..
26304a2a091af368cfc16c977bcce6d17195360aTom RumseyLINKED_LIB_DIRS = $(PLATLINKS:%=$(USR_PLAT_DIR)/%/lib)
26304a2a091af368cfc16c977bcce6d17195360aTom RumseyLINKED_LIB_FS_DIRS = $(PLATLINKS:%=$(USR_PLAT_DIR)/%/lib/fs)
72450cb9c2ca854c6d3479832c2738196c1d3282Robert WapshottARCH_C_SRC = sun4u_memlist.c sun4x_standalloc.c sun4dep.c
7b3fa0c4c626865e92012ef9f885e91d945850eaCraig McDonnellLDFLAGS += -L$(TOPDIR)/psm/stand/lib/promif/$(TARG_MACH)/$(PROMVERS)/common
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# The following libraries are build in LIBPLAT_DIR
01a939641aeb0a095851921879620c3fab295cb2Robert WapshottLIBPLAT_DIR = $(TOPDIR)/psm/stand/lib/promif/$(TARG_MACH)/$(PROMVERS)/$(PLATFORM)
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterLIBPLAT_L_LIBS= $(LIBPLAT_LIBS:lib%.a=llib-l%.ln)
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterLIBPLAT_DEP_L = $(LIBPLAT_DIR)/$(LIBPLAT_L_LIBS)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Platform specific libraries
0c893a059f84246bf91e2f0fbf63e4c92f8e5165Tony Bamford# MPSAS support
fc8409d20f991d53ac0c4708efa04c121b73c449Tom Rumsey# re-define ELFCONV for 4v--- sun4v can boot ELF directly
fc8409d20f991d53ac0c4708efa04c121b73c449Tom Rumsey# Don't need mapfile.inet for 4v inetboot
fc8409d20f991d53ac0c4708efa04c121b73c449Tom Rumsey# Set the choice of compiler.
7b3fa0c4c626865e92012ef9f885e91d945850eaCraig McDonnell# XXX this totally sucks since it effectively turns off -errchk=longptr64,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# which we really should be using.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Cross-reference customization: include all boot-related source files.
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterNAMESDIRS= ../../../lib/names/sparcv9 ../../../lib/names/sparc/common
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterXRDIRS += ../../sparc/common ../../common $(STANDLIBDIR) \