456N/A#
456N/A# CDDL HEADER START
456N/A#
1097N/A# The contents of this file are subject to the terms of the
456N/A# Common Development and Distribution License (the "License").
456N/A# You may not use this file except in compliance with the License.
919N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A
919N/A#
919N/A# Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
456N/A#
456N/A
456N/A# Object lists are organized into primary (most frequently used code) and
456N/A# secondary lists (less frequently used code, ie. a.out support).
493N/A
456N/AP_COMOBJS= debugdata.o \
970N/A analyze.o elf.o external.o globals.o \
970N/A malloc.o paths.o setup.o util.o \
970N/A dlfcns.o config_elf.o locale.o tsort.o \
970N/A remove.o move.o tls.o cap.o
970N/A
970N/AS_COMOBJS= debug.o audit.o object.o
970N/A
970N/AG_MACHOBJS= doreloc.o
456N/A
851N/AP_MACHOBJS= sparc_elf.o _setup.o
456N/A
911N/ACP_MACHOBJS= common_sparc.o
911N/A
911N/AS_MACHOBJS=
911N/A
456N/AP_ASOBJS= boot.o boot_elf.o caller.o
851N/A
456N/AS_ASOBJS=
456N/A
456N/ACRTSRCS= ../../../../lib/common/sparcv9
456N/ACRTI= pics/crti.o
456N/ACRTN= pics/crtn.o
456N/ACRTS= $(CRTI) $(CRTN)
456N/A
456N/ACHKSRCS= $(SRCBASE)/uts/common/krtld/reloc.h
1097N/A
1097N/ABASEPLAT = sparc
1097N/A
1097N/Ainclude $(SRC)/Makefile.master
1097N/A
1097N/A# We build sparc objects with cc by default
1097N/AMAPFILE-ORDER = ../common/mapfile-order-devpro
1097N/A$(__GNUC64)MAPFILE-ORDER = ../common/mapfile-order-gcc
1097N/A
1097N/Ainclude $(SRC)/cmd/sgs/rtld/Makefile.com
1097N/Ainclude $(SRC)/lib/Makefile.lib.64
1097N/A
1097N/A# Add any machine specific flags.
1097N/A
1097N/ACPPFLAGS += -I../../../../uts/sparc/krtld
851N/ACFLAGS += -xregs=no%appl
851N/AASFLAGS += -s -K pic -D__sparcv9 -D_ELF64 $(sparcv9_XARCH)
456N/AADBGENFLAGS += -mlp64
456N/AADBGENCFLAGS += -erroff=%all
456N/AADBSUB= $(ADBSUB64)
1097N/ACPPFLAGS += -D_ELF64
1097N/ALINTFLAGS64 += $(VAR_LINTFLAGS64)
1097N/ASONAME= /lib/sparcv9/ld.so.1
503N/A
1097N/ASGSMSGTARG += $(SGSMSGSPARC) $(SGSMSGSPARC64) $(SGSMSG64)
1097N/A
1097N/ALDLIB = -L ../../libld/$(MACH64)
1097N/ARTLDLIB = -L ../../librtld/$(MACH64)
1097N/A
851N/ACPICLIB = $(CPICLIB64)
1097N/ALDDBGLIBDIR = $(LDDBGLIBDIR64)
1097N/ACONVLIBDIR = $(CONVLIBDIR64)
.KEEP_STATE:
all: $(RTLD)
install: all $(ROOTDYNLIB64)
lint: $(LINTOUT64)
adbmacros: adb .WAIT $(ADBSCRIPTS)
adbinstall: adbmacros .WAIT $(ROOTADB64)
pics/%.o: ../sparc/%.c
$(COMPILE.c) -o $@ $<
$(POST_PROCESS_O)
include $(SRC)/cmd/sgs/rtld/Makefile.targ
include ../../Makefile.sub.64