Makefile revision 75ce41a57ff334bd8fe2cb9ed51eea835892f944
36983956d7c3d9e294903eeda29548f67ac17daeBob Halley#
40d01ce8f3a1889f5799d9b22b26d5398fa75a1bBob Halley# CDDL HEADER START
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt#
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt# The contents of this file are subject to the terms of the
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt# Common Development and Distribution License (the "License").
16803617e47c83272013e45ba8eb83a3b11983edAndreas Gustafsson# You may not use this file except in compliance with the License.
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt#
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt# or http://www.opensolaris.org/os/licensing.
16803617e47c83272013e45ba8eb83a3b11983edAndreas Gustafsson# See the License for the specific language governing permissions
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt# and limitations under the License.
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt#
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt# When distributing Covered Code, include this CDDL HEADER in each
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16803617e47c83272013e45ba8eb83a3b11983edAndreas Gustafsson# If applicable, add the following below this CDDL HEADER, with the
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt#
16803617e47c83272013e45ba8eb83a3b11983edAndreas Gustafsson# CDDL HEADER END
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt#
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt#
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt# Use is subject to license terms.
16803617e47c83272013e45ba8eb83a3b11983edAndreas Gustafsson#
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt
16803617e47c83272013e45ba8eb83a3b11983edAndreas Gustafsson#
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt# Platform specific Makefile for libc_psr.
16803617e47c83272013e45ba8eb83a3b11983edAndreas Gustafsson#
b90dd6c0a9df584619d3c47be7c9417f55d5ccf6Bob Halley
b751788932cf1a6d98ae83355f38a080125c2f3eEvan HuntPLATFORM = sun4v
b751788932cf1a6d98ae83355f38a080125c2f3eEvan HuntCLASS = 32
b90dd6c0a9df584619d3c47be7c9417f55d5ccf6Bob Halley
b751788932cf1a6d98ae83355f38a080125c2f3eEvan HuntOBJECTS = memcpy.o memset.o
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Huntinclude ../Makefile.com
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt
b751788932cf1a6d98ae83355f38a080125c2f3eEvan HuntASFLAGS += -xarch=v8plusa
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt# Redefine shared object build rule to use $(LD) directly (this avoids .init
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt# and .fini sections being added).
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt
b751788932cf1a6d98ae83355f38a080125c2f3eEvan HuntBUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(LDLIBS)
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt
40d01ce8f3a1889f5799d9b22b26d5398fa75a1bBob Halley.KEEP_STATE:
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt
b751788932cf1a6d98ae83355f38a080125c2f3eEvan HuntMODULE = libc_psr_hwcap2.so.1
b497531c76ea5f9aeed0c1707b6156c104c633ddEvan HuntLIBC_PSR_DIR = $(ROOT_PSM_LIB_DIR)/libc_psr
b751788932cf1a6d98ae83355f38a080125c2f3eEvan HuntLIBC_PSR_LIB = $(LIBC_PSR_DIR)/$(MODULE)
b751788932cf1a6d98ae83355f38a080125c2f3eEvan HuntINS.libc = $(RM) -r $@; $(INS) -s -m $(FILEMODE) -f $(@D) $(MODULE)
b497531c76ea5f9aeed0c1707b6156c104c633ddEvan Hunt
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt$(LIBC_PSR_LIB) := FILEMODE= 0755
b751788932cf1a6d98ae83355f38a080125c2f3eEvan Hunt
62714accee7c8d96e02f40d58751422972e2ed41Evan Hunt$(LIBC_PSR_DIR):
e560fbdf77b08ff23ab71b107f022829bcd552dbMark Andrews -$(INS.dir.root.bin)
e560fbdf77b08ff23ab71b107f022829bcd552dbMark Andrews
e560fbdf77b08ff23ab71b107f022829bcd552dbMark Andrews$(LIBC_PSR_LIB): $(LIBC_PSR_DIR) $(MODULE)
e560fbdf77b08ff23ab71b107f022829bcd552dbMark Andrews -$(INS.libc)
e560fbdf77b08ff23ab71b107f022829bcd552dbMark Andrews
c6e22bbaefce98c37c1def3f971d214a9a147ad5Evan Huntall: $(LIBS)
67c6b5edd034c445ccb6c36097d9fac4de21a542Evan Hunt
67c6b5edd034c445ccb6c36097d9fac4de21a542Evan Huntinstall: all $(LIBC_PSR_LIB)
67c6b5edd034c445ccb6c36097d9fac4de21a542Evan Hunt
b9691872341fbf997b7d6be987aec18afda236f6Evan Huntinclude ../../Makefile.targ
b9691872341fbf997b7d6be987aec18afda236f6Evan Hunt