Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
ad7c244f4e0d66d4a8c4e9919aa735ba523239a8JazzyNico#
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix# CDDL HEADER START
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix#
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix# The contents of this file are subject to the terms of the
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix# Common Development and Distribution License, Version 1.0 only
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix# (the "License"). You may not use this file except in compliance
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix# with the License.
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix#
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix# or http://www.opensolaris.org/os/licensing.
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix# See the License for the specific language governing permissions
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix# and limitations under the License.
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix#
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix# When distributing Covered Code, include this CDDL HEADER in each
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix# If applicable, add the following below this CDDL HEADER, with the
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix# fields enclosed by brackets "[]" replaced with your own identifying
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix# information: Portions Copyright [yyyy] [name of copyright owner]
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix#
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix# CDDL HEADER END
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix#
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix#
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix# Use is subject to license terms.
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix#
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix# ident "%Z%%M% %I% %E% SMI"
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix#
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix# Platform specific Makefile for libc_psr.
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix#
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix
46f1db4f996956961b3e44b9b477f38eaf31b22fhelixPLATFORM = sun4u
46f1db4f996956961b3e44b9b477f38eaf31b22fhelixCLASS = 64
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix
46f1db4f996956961b3e44b9b477f38eaf31b22fhelixOBJECTS = memcpy.o memset.o memcmp.o
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix
46f1db4f996956961b3e44b9b477f38eaf31b22fhelixinclude ../Makefile.com
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix
46f1db4f996956961b3e44b9b477f38eaf31b22fhelixMAPDIR= ../../spec/$(PLATFORM)/$(MACH64)
46f1db4f996956961b3e44b9b477f38eaf31b22fhelixMAPFILE= $(MAPDIR)/mapfile-$(MACH64)
46f1db4f996956961b3e44b9b477f38eaf31b22fhelixMAPFILES= $(MAPFILE) $(MAPFILE-FLTR)
46f1db4f996956961b3e44b9b477f38eaf31b22fhelixMAPOPTS= $(MAPFILES:%=-M %)
46f1db4f996956961b3e44b9b477f38eaf31b22fhelixDYNFLAGS += $(MAPOPTS)
46f1db4f996956961b3e44b9b477f38eaf31b22fhelixCLOBBERFILES += $(MAPFILE)
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix
46f1db4f996956961b3e44b9b477f38eaf31b22fhelixASDEFS += -D__sparcv9
46f1db4f996956961b3e44b9b477f38eaf31b22fhelixASFLAGS += -xarch=v9a
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix
46f1db4f996956961b3e44b9b477f38eaf31b22fhelixinclude $(SRC)/Makefile.master.64
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix# Redefine shared object build rule to use $(LD) directly (this avoids .init
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix# and .fini sections being added).
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix
46f1db4f996956961b3e44b9b477f38eaf31b22fhelixBUILD.SO= $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(LDLIBS)
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix$(DYNLIB): $(MAPFILES)
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix$(MAPFILE):
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix @cd $(MAPDIR); $(MAKE) `basename $@`
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix.KEEP_STATE:
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix
46f1db4f996956961b3e44b9b477f38eaf31b22fhelixMODULE = libc_psr.so.1
46f1db4f996956961b3e44b9b477f38eaf31b22fhelixLIBC_PSR64_DIRS = $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%/lib/$(MACH64))
46f1db4f996956961b3e44b9b477f38eaf31b22fhelixLIBC_PSR64_LINKS = $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%/lib/$(MACH64)/$(MODULE))
46f1db4f996956961b3e44b9b477f38eaf31b22fhelixINS.slink6 = $(RM) -r $@; $(SYMLINK) ../../../$(PLATFORM)/lib/$(MACH64)/$(MODULE) $@ $(CHOWNLINK) $(CHGRPLINK)
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix$(LIBC_PSR64_DIRS):
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix -$(INS.dir.root.bin)
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix$(LIBC_PSR64_LINKS): $(LIBC_PSR64_DIRS)
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix -$(INS.slink6)
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix
46f1db4f996956961b3e44b9b477f38eaf31b22fhelixall: $(LIBS)
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix
46f1db4f996956961b3e44b9b477f38eaf31b22fhelixinstall: all $(LIBC_PSR64_LINKS) $(ROOT_PSM_LIB64_DIR)/$(LIBS)
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix
46f1db4f996956961b3e44b9b477f38eaf31b22fhelixinclude ../../Makefile.targ
46f1db4f996956961b3e44b9b477f38eaf31b22fhelix