Makefile revision 48bc00d6814e04ff3edb32cafe7d1bc580baff68
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# CDDL HEADER START
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# The contents of this file are subject to the terms of the
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# Common Development and Distribution License (the "License").
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# You may not use this file except in compliance with the License.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# or http://www.opensolaris.org/os/licensing.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# See the License for the specific language governing permissions
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# and limitations under the License.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# When distributing Covered Code, include this CDDL HEADER in each
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# If applicable, add the following below this CDDL HEADER, with the
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# fields enclosed by brackets "[]" replaced with your own identifying
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# information: Portions Copyright [yyyy] [name of copyright owner]
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# CDDL HEADER END
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# Use is subject to license terms.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# Platform specific Makefile for libc_psr_hwcap2.
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz#
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzPLATFORM = sun4u-us3
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzALT_PLAT = sun4u_hwcap2
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzCOMPAT_PLAT = sun4u
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzCLASS = 64
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzOBJECTS = memcpy.o memset.o memcmp.o
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzinclude ../Makefile.com
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzASDEFS += -D__sparcv9
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzASFLAGS += -xarch=v9b
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzinclude $(SRC)/Makefile.master.64
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# Redefine shared object build rule to use $(LD) directly (this avoids .init
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz# and .fini sections being added).
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzBUILD.SO= $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(LDLIBS)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz.KEEP_STATE:
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzMODULE = libc_psr_hwcap2.so.1
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzLIBC_PSR64_DIR = $(ROOT_PSM_LIB_DIR)/$(MACH64)/libc_psr
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzLIBC_PSR64_LIB = $(LIBC_PSR64_DIR)/$(MODULE)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzINS.libc.64 = $(RM) -r $@; $(INS) -f $(@D) $(MODULE)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz$(LIBC_PSR64_DIR):
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz -$(INS.dir)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz$(LIBC_PSR64_LIB): $(LIBC_PSR64_DIR) $(MODULE)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz -$(INS.libc.64)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzall: $(LIBS)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzinstall: all $(LIBC_PSR64_LIB)
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartzinclude ../../Makefile.targ
110e73f9b5ccaa10e26a8f79807001a5da72604eschwartz