Makefile revision 0d7d3dbe4188caf12add69bc9a74630e319b8a14
5cd4555ad444fd391002ae32450572054369fd42Rob Austein#
5cd4555ad444fd391002ae32450572054369fd42Rob Austein# CDDL HEADER START
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# The contents of this file are subject to the terms of the
39844d471080b2de4f8bb9d81f7e136ef80f0ae2Automatic Updater# Common Development and Distribution License (the "License").
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# You may not use this file except in compliance with the License.
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington#
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# or http://www.opensolaris.org/os/licensing.
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# See the License for the specific language governing permissions
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# CDDL HEADER END
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews#
8e4f3f1cbceef520ba889270c993de0ac376a2a7Evan Hunt#
b5ad6dfea4cc3e7d1d322ac99f1e5a31096837c4Mark Andrews# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# Use is subject to license terms.
6a550cb83cc2196f8af0592a258f75985cdcb5ebJeremy Reed#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# ident "%Z%%M% %I% %E% SMI"
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
6ed53e5949d9fcd9715b440015b56e5a896d63dfDavid Hankins# Platform specific Makefile for libc_psr.
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonPLATFORM = sun4v
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonCLASS = 32
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonOBJECTS = memcpy.o memset.o
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellingtoninclude ../Makefile.com
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinASFLAGS += -xarch=v8plusa
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Redefine shared object build rule to use $(LD) directly (this avoids .init
4b3f3cc67135e676a9b3b688685fb59e3494b0e6Mark Andrews# and .fini sections being added).
c1a883f2e04d94e99c433b1f6cfd0c0338f4ed85Mark Andrews
3398334b3acda24b086957286288ca9852662b12Automatic UpdaterBUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(LDLIBS)
39844d471080b2de4f8bb9d81f7e136ef80f0ae2Automatic Updater
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein.KEEP_STATE:
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinMODULE = libc_psr_hwcap2.so.1
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinLIBC_PSR_DIR = $(ROOT_PSM_LIB_DIR)/libc_psr
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinLIBC_PSR_LIB = $(LIBC_PSR_DIR)/$(MODULE)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinINS.libc = $(RM) -r $@; $(INS) -s -m $(FILEMODE) -f $(@D) $(MODULE)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews$(LIBC_PSR_DIR):
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein -$(INS.dir.root.bin)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein$(LIBC_PSR_LIB): $(LIBC_PSR_DIR) $(MODULE)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington -$(INS.libc)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellingtonall: $(LIBS)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellingtoninstall: all $(LIBC_PSR_LIB)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
8b78c993cb475cc94e88560941b28c37684789d9Francis Dupontinclude ../../Makefile.targ
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington