Makefile revision 5aefb6555731130ca4fd295960123d71f2d21fe8
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza#
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# CDDL HEADER START
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza#
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# The contents of this file are subject to the terms of the
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# Common Development and Distribution License (the "License").
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# You may not use this file except in compliance with the License.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza#
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# or http://www.opensolaris.org/os/licensing.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# See the License for the specific language governing permissions
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# and limitations under the License.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza#
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# When distributing Covered Code, include this CDDL HEADER in each
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# If applicable, add the following below this CDDL HEADER, with the
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# fields enclosed by brackets "[]" replaced with your own identifying
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# information: Portions Copyright [yyyy] [name of copyright owner]
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza#
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# CDDL HEADER END
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza#
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza#
6f269e977ae7318d374676a38d516ed59c43135eMark J. Nelson# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# Use is subject to license terms.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza#
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# ident "%Z%%M% %I% %E% SMI"
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza#
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaL_MACHOBJS32 = machrel.sparc32.o machsym.sparc32.o
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaL_MACHOBJS64 = machrel.sparc64.o machsym.sparc64.o
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Prazainclude ../Makefile.com
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza.KEEP_STATE:
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaROOTFS_LIBDIR64 = \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza $(VAR_LIBLD_64_ROOTFS_LIBDIR)
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaROOTFS_DYNLIB64 = \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza $(DYNLIB:%=$(ROOTFS_LIBDIR64)/%)
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaSGSMSGTARG += $(SGSMSGSPARC)
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaELFLIBDIR = $(ELFLIBDIR64)
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaLDDBGLIBDIR = $(LDDBGLIBDIR64)
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaCONVLIBDIR = $(CONVLIBDIR64)
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza$(ROOTFS_DYNLIB64) := FILEMODE= 755
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Prazaall: $(DYNLIB) $(LIBLINKS)
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Prazainstall \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Prazapackage: all $(ROOTFS_DYNLIB64)
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Prazainclude ../Makefile.targ
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Prazainclude ../../Makefile.sub.64
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# Associate ELF32 and ELF64 objects to the appropriate headers.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Prazapics/%32.o := CPPFLAGS += -I$(SRCBASE)/uts/$(VAR_PLAT_sparc)/krtld
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Prazapics/%64.o := CPPFLAGS += -I$(SRCBASE)/uts/$(VAR_PLAT_sparc)/krtld
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# Associate the various lint targets with the appropriate headers/files.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza$(LINTOUT32) := CPPFLAGS += -I$(SRCBASE)/uts/$(VAR_PLAT_sparc)/krtld \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza $(ELFTARGET32)
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza$(LINTOUT64) := CPPFLAGS += -I$(SRCBASE)/uts/$(VAR_PLAT_sparc)/krtld \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza $(ELFTARGET64) -D_ELF64
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza$(LINTLIB32) := CPPFLAGS += -I$(SRCBASE)/uts/$(VAR_PLAT_sparc)/krtld \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza $(ELFTARGET32)
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza$(LINTLIB64) := CPPFLAGS += -I$(SRCBASE)/uts/$(VAR_PLAT_sparc)/krtld \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza $(ELFTARGET64) -D_ELF64
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaLINTSRCS32 += $(G_MACHOBJS32:%32.o=$(SRCBASE)/uts/$(VAR_PLAT_sparc)/krtld/%.c)
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaLINTSRCS64 += $(G_MACHOBJS64:%64.o=$(SRCBASE)/uts/$(VAR_PLAT_sparc)/krtld/%.c)
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza# Compensate chkmsg with the doreloc family.
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaCHKSRCS += $(G_MACHOBJS32:%32.o=$(SRCBASE)/uts/$(VAR_PLAT_sparc)/krtld/%.c)
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane PrazaCHKSRCS += $(G_MACHOBJS64:%64.o=$(SRCBASE)/uts/$(VAR_PLAT_sparc)/krtld/%.c)
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Prazapics/%32.o: \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza $(SRCBASE)/uts/$(VAR_PLAT_sparc)/krtld/%.c
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza $(COMPILE.c) -o $@ $(ELFTARGET32) $<
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza $(POST_PROCESS_O)
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Prazapics/%64.o: \
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza $(SRCBASE)/uts/$(VAR_PLAT_sparc)/krtld/%.c
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza $(COMPILE.c) -o $@ $(ELFTARGET64) -D_ELF64 $<
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza $(POST_PROCESS_O)
ead1f93ee620d7580f7e53350fe5a884fc4f158aLiane Praza