325N/A#
325N/A# CDDL HEADER START
325N/A#
325N/A# The contents of this file are subject to the terms of the
325N/A# Common Development and Distribution License (the "License").
325N/A# You may not use this file except in compliance with the License.
325N/A#
325N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
325N/A# or http://www.opensolaris.org/os/licensing.
325N/A# See the License for the specific language governing permissions
325N/A# and limitations under the License.
325N/A#
325N/A# When distributing Covered Code, include this CDDL HEADER in each
325N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
325N/A# If applicable, add the following below this CDDL HEADER, with the
325N/A# fields enclosed by brackets "[]" replaced with your own identifying
325N/A# information: Portions Copyright [yyyy] [name of copyright owner]
325N/A#
325N/A# CDDL HEADER END
325N/A#
325N/A
325N/A#
325N/A# Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
325N/A#
325N/A
325N/A# Object lists are organized into primary (most frequently used code) and
325N/A# secondary lists (less frequently used code, ie. a.out support).
325N/A
325N/AP_COMOBJS= debugdata.o \
325N/A analyze.o elf.o external.o globals.o \
325N/A malloc.o paths.o setup.o util.o \
325N/A dlfcns.o config_elf.o locale.o tsort.o \
325N/A remove.o move.o tls.o cap.o
325N/A
325N/AS_COMOBJS= debug.o audit.o object.o cache_a.out.o \
325N/A a.out.o
325N/A
325N/AG_MACHOBJS= doreloc.o
325N/A
325N/AP_MACHOBJS= sparc_elf.o _setup.o
325N/A
325N/ACP_MACHOBJS= common_sparc.o
S_MACHOBJS= sparc_a.out.o
P_ASOBJS= boot.o boot_elf.o caller.o
S_ASOBJS= boot_a.out.o
CRTSRCS= ../../../../lib/common/sparc
CRTI= pics/crti.o
CRTN= pics/crtn.o
CRTS= $(CRTI) $(CRTN)
CHKSRCS= $(SRCBASE)/uts/common/krtld/reloc.h
BASEPLAT = sparc
include $(SRC)/Makefile.master
# This is safe because linking is done only with the primary compiler.
MAPFILE-ORDER = ../common/mapfile-order-devpro
$(__GNUC)MAPFILE-ORDER = ../common/mapfile-order-gcc
include $(SRC)/cmd/sgs/rtld/Makefile.com
# Add any a.out and machine specific flags.
CPPFLAGS += -I../../../../uts/sparc/krtld -DA_OUT
CFLAGS += -xregs=no%appl
ASFLAGS += -K pic
LINTFLAGS += -DA_OUT
ADBGENCFLAGS += -erroff=%all
ADBGENFLAGS += -milp32
ADBSUB= $(ADBSUB32)
SONAME= /lib/ld.so.1
SGSMSGTARG += $(SGSMSGSPARC) $(SGSMSGSPARC32) $(SGSMSG32)
.KEEP_STATE:
all: $(RTLD)
install: all $(ROOTDYNLIB)
lint: $(LINTOUT32)
adbmacros: adb .WAIT $(ADBSCRIPTS)
adbinstall: adbmacros .WAIT $(ROOTADB)
include $(SRC)/cmd/sgs/rtld/Makefile.targ