Makefile revision 51b564aca190d2a430104dded1983d3a1fff66e2
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# CDDL HEADER START
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# The contents of this file are subject to the terms of the
8495845a800cf09321436aed996188c9a92cd647bnicholes# Common Development and Distribution License (the "License").
8495845a800cf09321436aed996188c9a92cd647bnicholes# You may not use this file except in compliance with the License.
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8495845a800cf09321436aed996188c9a92cd647bnicholes# or http://www.opensolaris.org/os/licensing.
8495845a800cf09321436aed996188c9a92cd647bnicholes# See the License for the specific language governing permissions
8495845a800cf09321436aed996188c9a92cd647bnicholes# and limitations under the License.
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# When distributing Covered Code, include this CDDL HEADER in each
8495845a800cf09321436aed996188c9a92cd647bnicholes# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8495845a800cf09321436aed996188c9a92cd647bnicholes# If applicable, add the following below this CDDL HEADER, with the
8495845a800cf09321436aed996188c9a92cd647bnicholes# fields enclosed by brackets "[]" replaced with your own identifying
8495845a800cf09321436aed996188c9a92cd647bnicholes# information: Portions Copyright [yyyy] [name of copyright owner]
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# CDDL HEADER END
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
8495845a800cf09321436aed996188c9a92cd647bnicholes# Use is subject to license terms.
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes#ident "%Z%%M% %I% %E% SMI"
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesTOPDIR = ../../../../..
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesinclude $(TOPDIR)/uts/Makefile.uts
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesMODULE = fs
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesPLATLINKS = SUNW,Sun-Fire-T200
8495845a800cf09321436aed996188c9a92cd647bnicholesPLATLINKS += SUNW,Netra-CP3060
8495845a800cf09321436aed996188c9a92cd647bnicholesPLATLINKS += SUNW,Netra-CP3260
8495845a800cf09321436aed996188c9a92cd647bnicholesPLATLINKS += SUNW,Sun-Blade-T6300
8495845a800cf09321436aed996188c9a92cd647bnicholesPLATLINKS += SUNW,Sun-Blade-T6320
8495845a800cf09321436aed996188c9a92cd647bnicholesPLATLINKS += SUNW,SPARC-Enterprise-T5120
8495845a800cf09321436aed996188c9a92cd647bnicholesPLATLINKS += SUNW,T5140
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesLINKED_DIRS = $(PLATLINKS:%=$(USR_PLAT_DIR)/%)
8495845a800cf09321436aed996188c9a92cd647bnicholesLINKED_LIB_DIRS = $(PLATLINKS:%=$(USR_PLAT_DIR)/%/lib)
8495845a800cf09321436aed996188c9a92cd647bnicholesLINKED_LIB_FS_DIRS = $(PLATLINKS:%=$(USR_PLAT_DIR)/%/lib/fs)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesall := TARGET = all
8495845a800cf09321436aed996188c9a92cd647bnicholesinstall := TARGET = install
8495845a800cf09321436aed996188c9a92cd647bnicholesclean := TARGET = clean
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesTARG_MACH = sparcv9
8495845a800cf09321436aed996188c9a92cd647bnicholesTARG_MACH_DIR = sparcv9
8495845a800cf09321436aed996188c9a92cd647bnicholesARCHVERS = v9
8495845a800cf09321436aed996188c9a92cd647bnicholesPLATFORM = sun4v
8495845a800cf09321436aed996188c9a92cd647bnicholesARCHMMU = sfmmu
8495845a800cf09321436aed996188c9a92cd647bnicholesPROMVERS = ieee1275
8495845a800cf09321436aed996188c9a92cd647bnicholesASFLAGS += $(sparcv9_XARCH)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesPLAT_C_SRC = machdep.c
8495845a800cf09321436aed996188c9a92cd647bnicholesARCH_C_SRC = sun4u_memlist.c sun4x_standalloc.c sun4dep.c
8495845a800cf09321436aed996188c9a92cd647bnicholesARCH_S_SRC = sparcv9_subr.s
8495845a800cf09321436aed996188c9a92cd647bnicholesSRT0_S = sun4u_srt0.s
8495845a800cf09321436aed996188c9a92cd647bnicholesINLINES =
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesLDFLAGS += -L$(TOPDIR)/psm/stand/lib/promif/$(TARG_MACH)/$(PROMVERS)/common
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# The following libraries are build in LIBPLAT_DIR
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesLIBPLAT_DIR = $(TOPDIR)/psm/stand/lib/promif/$(TARG_MACH)/$(PROMVERS)/$(PLATFORM)
8495845a800cf09321436aed996188c9a92cd647bnicholesLIBPLAT_LIBS = libplat.a
8495845a800cf09321436aed996188c9a92cd647bnicholesLIBPLAT_L_LIBS= $(LIBPLAT_LIBS:lib%.a=llib-l%.ln)
8495845a800cf09321436aed996188c9a92cd647bnicholesLIBPLAT_DEP = $(LIBPLAT_DIR)/$(LIBPLAT_LIBS)
8495845a800cf09321436aed996188c9a92cd647bnicholesLIBPLAT_DEP_L = $(LIBPLAT_DIR)/$(LIBPLAT_L_LIBS)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# Platform specific libraries
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesPSMLIBS += $(LIBPLAT_LIBS:lib%.a=-l%)
8495845a800cf09321436aed996188c9a92cd647bnicholesPSMLIB_DIRS += $(LIBPLAT_DIR)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes# MPSAS support
8495845a800cf09321436aed996188c9a92cd647bnicholesMPSAS_BUILD:sh= echo \\043
8495845a800cf09321436aed996188c9a92cd647bnicholes$(MPSAS_BUILD)ARCHOPTS += -DMPSAS
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesinclude ../Makefile.com
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesCPPINCS += -I$(SRC)/uts/sun4u
8495845a800cf09321436aed996188c9a92cd647bnicholesCPPINCS += -I$(ROOT)/usr/platform/sun4u/include
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes# re-define ELFCONV for 4v--- sun4v can boot ELF directly
8495845a800cf09321436aed996188c9a92cd647bnicholesELFCONV = /usr/bin/cp
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes# Don't need mapfile.inet for 4v inetboot
8495845a800cf09321436aed996188c9a92cd647bnicholesNFS_MAPFILE = $(MACH_DIR)/mapfile
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# Set the choice of compiler.
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesinclude $(TOPDIR)/psm/Makefile.psm.64
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesCFLAGS64 += -xchip=ultra $(CCABS32)
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# XXX this totally sucks since it effectively turns off -errchk=longptr64,
8495845a800cf09321436aed996188c9a92cd647bnicholes# which we really should be using.
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesLINTFLAGS64 = $(LINTFLAGS) -Xarch=v9
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholes# Cross-reference customization: include all boot-related source files.
8495845a800cf09321436aed996188c9a92cd647bnicholes#
8495845a800cf09321436aed996188c9a92cd647bnicholesSTANDLIBDIR= ../../../../../stand/lib
8495845a800cf09321436aed996188c9a92cd647bnicholesSTANDSYSDIR= ../../../../../stand/sys
8495845a800cf09321436aed996188c9a92cd647bnicholesPROMDIRS= ../../../../promif
8495845a800cf09321436aed996188c9a92cd647bnicholesNAMESDIRS= ../../../lib/names/sparcv9 ../../../lib/names/sparc/common
8495845a800cf09321436aed996188c9a92cd647bnicholesXRDIRS += ../../sparc/common ../../common $(STANDLIBDIR) \
8495845a800cf09321436aed996188c9a92cd647bnicholes $(STANDSYSDIR) $(PROMDIRS) $(NAMESDIRS)
8495845a800cf09321436aed996188c9a92cd647bnicholesXRPRUNE = i86pc i386
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholescscope.out tags: FRC
8495845a800cf09321436aed996188c9a92cd647bnicholes $(XREF) -x $@
8495845a800cf09321436aed996188c9a92cd647bnicholes
8495845a800cf09321436aed996188c9a92cd647bnicholesFRC:
8495845a800cf09321436aed996188c9a92cd647bnicholes