Makefile revision 9ef7884d729f1f09cb82e5c2f57d12cb9f4c1fee
387N/A#
387N/A# CDDL HEADER START
387N/A#
387N/A# The contents of this file are subject to the terms of the
387N/A# Common Development and Distribution License (the "License").
387N/A# You may not use this file except in compliance with the License.
387N/A#
387N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
387N/A# or http://www.opensolaris.org/os/licensing.
387N/A# See the License for the specific language governing permissions
387N/A# and limitations under the License.
387N/A#
387N/A# When distributing Covered Code, include this CDDL HEADER in each
387N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
387N/A# If applicable, add the following below this CDDL HEADER, with the
387N/A# fields enclosed by brackets "[]" replaced with your own identifying
387N/A# information: Portions Copyright [yyyy] [name of copyright owner]
387N/A#
387N/A# CDDL HEADER END
387N/A#
387N/A#
387N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
3597N/A# Use is subject to license terms.
387N/A#
387N/A#ident "%Z%%M% %I% %E% SMI"
5123N/A#
387N/A
387N/ATOPDIR = ../../../../..
387N/A
3880N/Ainclude $(TOPDIR)/uts/Makefile.uts
3880N/A
387N/AMODULE = fs
387N/A
387N/APLATLINKS = SUNW,Sun-Fire-T200
844N/APLATLINKS += SUNW,Netra-CP3060
3880N/APLATLINKS += SUNW,Sun-Blade-T6300
387N/A
1258N/ALINKED_DIRS = $(PLATLINKS:%=$(USR_PLAT_DIR)/%)
387N/ALINKED_LIB_DIRS = $(PLATLINKS:%=$(USR_PLAT_DIR)/%/lib)
3880N/ALINKED_LIB_FS_DIRS = $(PLATLINKS:%=$(USR_PLAT_DIR)/%/lib/fs)
2899N/A
3817N/Aall := TARGET = all
3817N/Ainstall := TARGET = install
3817N/Aclean := TARGET = clean
387N/A
387N/ATARG_MACH = sparcv9
387N/ATARG_MACH_DIR = sparcv9
387N/AARCHVERS = v9
5123N/APLATFORM = sun4v
387N/AARCHMMU = sfmmu
3353N/APROMVERS = ieee1275
3353N/AASFLAGS += $(sparcv9_XARCH)
3353N/A
3353N/APLAT_C_SRC = machdep.c
3597N/AARCH_C_SRC = sun4u_memlist.c sun4x_standalloc.c sun4dep.c
3597N/AARCH_S_SRC = sparcv9_subr.s
3597N/ASRT0_S = sun4u_srt0.s
4745N/AINLINES =
4745N/A
4745N/ALDFLAGS += -L$(TOPDIR)/psm/stand/lib/promif/$(TARG_MACH)/$(PROMVERS)/common
4745N/A
4745N/A#
4745N/A# The following libraries are build in LIBPLAT_DIR
4745N/A#
4745N/ALIBPLAT_DIR = $(TOPDIR)/psm/stand/lib/promif/$(TARG_MACH)/$(PROMVERS)/$(PLATFORM)
4745N/ALIBPLAT_LIBS = libplat.a
3597N/ALIBPLAT_L_LIBS= $(LIBPLAT_LIBS:lib%.a=llib-l%.ln)
1475N/ALIBPLAT_DEP = $(LIBPLAT_DIR)/$(LIBPLAT_LIBS)
1475N/ALIBPLAT_DEP_L = $(LIBPLAT_DIR)/$(LIBPLAT_L_LIBS)
3477N/A
3477N/A#
1542N/A# Platform specific libraries
387N/A#
1542N/APSMLIBS += $(LIBPLAT_LIBS:lib%.a=-l%)
387N/APSMLIB_DIRS += $(LIBPLAT_DIR)
3353N/A
387N/A
4745N/A# MPSAS support
4745N/AMPSAS_BUILD:sh= echo \\043
4745N/A$(MPSAS_BUILD)ARCHOPTS += -DMPSAS
4745N/A
4337N/Ainclude ../Makefile.com
387N/A
3817N/ACPPINCS += -I$(SRC)/uts/sun4u
CPPINCS += -I$(ROOT)/usr/platform/sun4u/include
# re-define ELFCONV for 4v--- sun4v can boot ELF directly
ELFCONV = /usr/bin/cp
# Don't need mapfile.inet for 4v inetboot
NFS_MAPFILE = $(MACH_DIR)/mapfile
#
# Set the choice of compiler.
include $(TOPDIR)/psm/Makefile.psm.64
CFLAGS64 += -xchip=ultra $(CCABS32)
#
# XXX this totally sucks since it effectively turns off -errchk=longptr64,
# which we really should be using.
#
LINTFLAGS64 = $(LINTFLAGS) -Xarch=v9
#
# Cross-reference customization: include all boot-related source files.
#
STANDLIBDIR= ../../../../../stand/lib
STANDSYSDIR= ../../../../../stand/sys
PROMDIRS= ../../../../promif
NAMESDIRS= ../../../lib/names/sparcv9 ../../../lib/names/sparc/common
XRDIRS += ../../sparc/common ../../common $(STANDLIBDIR) \
$(STANDSYSDIR) $(PROMDIRS) $(NAMESDIRS)
XRPRUNE = i86pc i386
cscope.out tags: FRC
$(XREF) -x $@
FRC: