Makefile revision 0bb073995ac5a95bd35f2dd790df1ea3d8c2d507
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# CDDL HEADER START
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# The contents of this file are subject to the terms of the
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Common Development and Distribution License (the "License").
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# You may not use this file except in compliance with the License.
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
70e5a7403f0e0a3bd292b8287c5fed5772c15270Automatic Updater# or http://www.opensolaris.org/os/licensing.
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# See the License for the specific language governing permissions
a21891ee9707fd9540c2056006bae1b344955980James Brister# and limitations under the License.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# When distributing Covered Code, include this CDDL HEADER in each
a21891ee9707fd9540c2056006bae1b344955980James Brister# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a21891ee9707fd9540c2056006bae1b344955980James Brister# If applicable, add the following below this CDDL HEADER, with the
a21891ee9707fd9540c2056006bae1b344955980James Brister# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#
# Platform specific Makefile for libc_psr.
#
PLATFORM = sun4u
CLASS = 64
OBJECTS = memcpy.o memset.o memcmp.o
include ../Makefile.com
ASDEFS += -D__sparcv9
ASFLAGS += -xarch=v9a
include $(SRC)/Makefile.master.64
# Redefine shared object build rule to use $(LD) directly (this avoids .init
# and .fini sections being added).
BUILD.SO= $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(LDLIBS)
.KEEP_STATE:
MODULE = libc_psr.so.1
LIBC_PSR64_DIRS = $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%/lib/$(MACH64))
LIBC_PSR64_LINKS = $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%/lib/$(MACH64)/$(MODULE))
INS.slink6 = $(RM) -r $@; $(SYMLINK) ../../../$(PLATFORM)/lib/$(MACH64)/$(MODULE) $@ $(CHOWNLINK) $(CHGRPLINK)
$(LIBC_PSR64_DIRS):
-$(INS.dir.root.bin)
$(LIBC_PSR64_LINKS): $(LIBC_PSR64_DIRS)
-$(INS.slink6)
all: $(LIBS)
install: all $(LIBC_PSR64_LINKS) $(ROOT_PSM_LIB64_DIR)/$(LIBS)
include ../../Makefile.targ