Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
127N/A#
127N/A# CDDL HEADER START
127N/A#
127N/A# The contents of this file are subject to the terms of the
127N/A# Common Development and Distribution License, Version 1.0 only
127N/A# (the "License"). You may not use this file except in compliance
127N/A# with the License.
127N/A#
127N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
127N/A# or http://www.opensolaris.org/os/licensing.
127N/A# See the License for the specific language governing permissions
127N/A# and limitations under the License.
127N/A#
127N/A# When distributing Covered Code, include this CDDL HEADER in each
127N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
127N/A# If applicable, add the following below this CDDL HEADER, with the
127N/A# fields enclosed by brackets "[]" replaced with your own identifying
127N/A# information: Portions Copyright [yyyy] [name of copyright owner]
127N/A#
127N/A# CDDL HEADER END
127N/A#
127N/A#
690N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
127N/A# Use is subject to license terms.
127N/A#
127N/A# ident "%Z%%M% %I% %E% SMI"
127N/A#
127N/A# Platform specific Makefile for libc_psr.
690N/A#
618N/APLATFORM = sun4v
127N/AALT_PLAT = sun4v_hwcap1
127N/ACLASS = 32
690N/A
127N/AOBJECTS = memcpy.o memset.o
127N/A
127N/Ainclude ../Makefile.com
127N/A
127N/AMAPDIR= ../../spec/$(ALT_PLAT)/$(MACH)
127N/AMAPFILE= $(MAPDIR)/mapfile-$(MACH)
738N/A
738N/AMAPFILES= $(MAPFILE) $(MAPFILE-FLTR)
738N/AMAPOPTS= $(MAPFILES:%=-M %)
127N/ADYNFLAGS += $(MAPOPTS)
127N/ACLOBBERFILES += $(MAPFILE)
127N/AASFLAGS += -xarch=v8plus
127N/A
127N/A# Redefine shared object build rule to use $(LD) directly (this avoids .init
127N/A# and .fini sections being added).
127N/A
127N/ABUILD.SO= $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(LDLIBS)
127N/A
181N/A$(DYNLIB): $(MAPFILES)
181N/A
127N/A$(MAPFILE):
127N/A @cd $(MAPDIR); $(MAKE) `basename $@`
127N/A
.KEEP_STATE:
MODULE = libc_psr_hwcap1.so.1
LIBC_PSR_DIR = $(ROOT_PSM_LIB_DIR)/libc_psr
LIBC_PSR_LIB = $(LIBC_PSR_DIR)/$(MODULE)
INS.libc = $(RM) -r $@; $(INS) -s -m $(FILEMODE) -f $(@D) $(MODULE)
$(LIBC_PSR_DIR):
-$(INS.dir.root.bin)
$(LIBC_PSR_LIB): $(LIBC_PSR_DIR) $(MODULE)
-$(INS.libc)
all: $(LIBS)
install: all $(LIBC_PSR_LIB)
include ../../Makefile.targ