Makefile.com revision 24da5b34f49324ed742a340010ed5bd3d4e06625
883N/A#
883N/A# CDDL HEADER START
883N/A#
883N/A# The contents of this file are subject to the terms of the
883N/A# Common Development and Distribution License (the "License").
883N/A# You may not use this file except in compliance with the License.
883N/A#
883N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
883N/A# or http://www.opensolaris.org/os/licensing.
883N/A# See the License for the specific language governing permissions
883N/A# and limitations under the License.
883N/A#
883N/A# When distributing Covered Code, include this CDDL HEADER in each
883N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
883N/A# If applicable, add the following below this CDDL HEADER, with the
883N/A# fields enclosed by brackets "[]" replaced with your own identifying
883N/A# information: Portions Copyright [yyyy] [name of copyright owner]
883N/A#
883N/A# CDDL HEADER END
883N/A#
883N/A#
883N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
883N/A# Use is subject to license terms.
883N/A#
883N/A# ident "%Z%%M% %I% %E% SMI"
883N/A#
883N/A
883N/ARTLD= ld.so.1
883N/A
883N/AAVLOBJ= avl.o
883N/ADTROBJ= dtrace_data.o
883N/ATOOLOBJS= alist.o strhash.o
883N/ABLTOBJ= msg.o
883N/AOBJECTS= $(BLTOBJ) \
883N/A $(AVLOBJ) \
883N/A $(DTROBJ) \
883N/A $(TOOLOBJS) \
883N/A $(P_ASOBJS) $(P_COMOBJS) $(P_MACHOBJS) $(G_MACHOBJS) \
883N/A $(S_ASOBJS) $(S_COMOBJS) $(S_MACHOBJS) $(CP_MACHOBJS)
883N/A
883N/ACOMOBJS= $(P_COMOBJS) $(S_COMOBJS)
883N/AASOBJS= $(P_ASOBJS) $(S_ASOBJS)
883N/AMACHOBJS= $(P_MACHOBJS) $(S_MACHOBJS)
883N/ANOCTFOBJS= $(ASOBJS)
883N/A
883N/Ainclude $(SRC)/lib/Makefile.lib
883N/Ainclude $(SRC)/cmd/sgs/Makefile.com
883N/A
883N/ASRCDIR = ../common
883N/APLAT = $(VAR_PLAT_$(BASEPLAT))
883N/A
883N/A# DTrace needs an executable data segment.
883N/AMAPFILE.NED=
883N/A
883N/AMAPFILES += $(MAPFILE-ORDER) $(MAPFILE-PLAT)
883N/A
883N/A# For the libc/libthread unified world:
883N/A# This library needs to be placed in /lib to allow
883N/A# dlopen() functionality while in single-user mode.
883N/AROOTFS_DYNLIB= $(RTLD:%=$(ROOTFS_LIBDIR)/%)
883N/AROOTFS_DYNLIB64= $(RTLD:%=$(ROOTFS_LIBDIR64)/%)
883N/A
883N/A# For the libc/libthread separated world:
883N/A# A version of this library needs to be placed in /etc/lib to allow
883N/A# dlopen() functionality while in single-user mode.
883N/AETCLIBDIR= $(ROOT)/etc/lib
883N/AETCDYNLIB= $(RTLD:%=$(ETCLIBDIR)/%)
883N/A
883N/AROOTDYNLIB= $(RTLD:%=$(ROOTFS_LIBDIR)/%)
883N/AROOTDYNLIB64= $(RTLD:%=$(ROOTFS_LIBDIR64)/%)
883N/A
883N/A
883N/AFILEMODE = 755
883N/A
883N/ACPPFEATUREMACROS= $(VAR_RTLD_CPPFEATUREMACROS)
883N/A
883N/ACPPFLAGS += -I$(SRCBASE)/lib/libc/inc \
883N/A -I$(SRCBASE)/uts/common/krtld \
883N/A -I$(SRCBASE)/uts/$(PLAT)/krtld \
883N/A -I$(SRC)/common/sgsrtcid \
883N/A $(CPPFEATUREMACROS)
883N/A
883N/AASFLAGS= -P -D_ASM $(CPPFLAGS)
883N/ALDLIB = -L ../../libld/$(MACH)
883N/ARTLDLIB = -L ../../librtld/$(MACH)
883N/A
883N/A# These definitions require that libc be built in the same workspace
883N/A# as the run-time linker and before the run-time linker is built.
883N/A# This is required for the system's self-consistency in any case.
883N/ACPICLIB = $(VAR_RTLD_CPICLIB)
883N/ACPICLIB64 = $(VAR_RTLD_CPICLIB64)
883N/ACLIB = -lc_pic
883N/A
883N/ALDLIBS += $(CONVLIBDIR) $(CONV_LIB) \
883N/A $(CPICLIB) $(CLIB) \
883N/A $(LDDBGLIBDIR) $(LDDBG_LIB) \
883N/A $(RTLDLIB) -lrtld \
883N/A $(LDLIB) $(LD_LIB)
883N/A
883N/ADYNFLAGS += -i -e _rt_boot $(VERSREF) $(ZLAZYLOAD) $(ZNODLOPEN) \
883N/A $(ZINTERPOSE) -zdtrace=dtrace_data '-R$$ORIGIN'
883N/A
883N/ABUILD.s= $(AS) $(ASFLAGS) $< -o $@
883N/A
883N/ABLTDEFS= msg.h
883N/ABLTDATA= msg.c
883N/ABLTMESG= $(SGSMSGDIR)/rtld
883N/A
883N/ABLTFILES= $(BLTDEFS) $(BLTDATA) $(BLTMESG)
883N/A
883N/ASGSMSGCOM= ../common/rtld.msg
883N/ASGSMSG32= ../common/rtld.32.msg
883N/ASGSMSG64= ../common/rtld.64.msg
883N/ASGSMSGSPARC= ../common/rtld.sparc.msg
883N/ASGSMSGSPARC32= ../common/rtld.sparc32.msg
883N/ASGSMSGSPARC64= ../common/rtld.sparc64.msg
883N/ASGSMSGINTEL= ../common/rtld.intel.msg
883N/ASGSMSGINTEL32= ../common/rtld.intel32.msg
883N/ASGSMSGINTEL64= ../common/rtld.intel64.msg
883N/ASGSMSGCHK= ../common/rtld.chk.msg
883N/ASGSMSGTARG= $(SGSMSGCOM)
883N/ASGSMSGALL= $(SGSMSGCOM) $(SGSMSG32) $(SGSMSG64) \
883N/A $(SGSMSGSPARC) $(SGSMSGSPARC32) $(SGSMSGSPARC64) \
883N/A $(SGSMSGINTEL) $(SGSMSGINTEL32) $(SGSMSGINTEL64)
883N/A
883N/ASGSMSGFLAGS1= $(SGSMSGFLAGS) -m $(BLTMESG)
883N/ASGSMSGFLAGS2= $(SGSMSGFLAGS) -h $(BLTDEFS) -d $(BLTDATA) -n rtld_msg
883N/A
883N/ASRCS= $(AVLOBJ:%.o=$(VAR_AVLDIR)/%.c) \
883N/A $(DTROBJ:%.o=$(VAR_DTRDIR)/%.c) \
883N/A $(TOOLOBJS:%.o=$(SGSTOOLS)/common/%.c) \
883N/A $(COMOBJS:%.o=../common/%.c) $(MACHOBJS:%.o=%.c) $(BLTDATA) \
883N/A $(G_MACHOBJS:%.o=$(SRCBASE)/uts/$(PLAT)/krtld/%.c) \
883N/A $(CP_MACHOBJS:%.o=../$(MACH)/%.c) \
883N/A $(ASOBJS:%.o=%.s)
883N/ALINTSRCS= $(SRCS) ../common/lintsup.c
883N/A
883N/ALINTFLAGS += -u -Dsun -D_REENTRANT -erroff=E_EMPTY_TRANSLATION_UNIT \
883N/A -erroff=E_NAME_DECL_NOT_USED_DEF2
883N/ALINTFLAGS64 += -u -D_REENTRANT -erroff=E_CAST_INT_TO_SMALL_INT \
883N/A -erroff=E_NAME_DECL_NOT_USED_DEF2
883N/A
883N/ACLEANFILES += $(LINTOUTS) $(CRTS) $(BLTFILES)
883N/ACLOBBERFILES += $(RTLD)
883N/A