xref: /illumos-gate/usr/src/cmd/sgs/rtld/amd64/Makefile (revision d17be682)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
55aefb655Srie# Common Development and Distribution License (the "License").
65aefb655Srie# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
215aefb655Srie
227c478bd9Sstevel@tonic-gate#
23cd3e9333SAli Bahrami# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
24cf9a187cSAndy Fiddaman# Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
257c478bd9Sstevel@tonic-gate#
267c478bd9Sstevel@tonic-gate
275aefb655SrieBASEPLAT =	amd64
285aefb655Srie
297c478bd9Sstevel@tonic-gate# Object lists are organized into primary (most frequently used code) and
30fec04708SRichard Lowe# secondary lists (less frequently used code).
317c478bd9Sstevel@tonic-gate
327c478bd9Sstevel@tonic-gateP_COMOBJS=	debugdata.o \
3310a4fa49Srie		analyze.o	elf.o		external.o	globals.o \
34cf9a187cSAndy Fiddaman		malloc.o	paths.o		setup.o		util.o \
357c478bd9Sstevel@tonic-gate		dlfcns.o	config_elf.o	locale.o	tsort.o \
3656deab07SRod Evans		remove.o	move.o		tls.o		cap.o
377c478bd9Sstevel@tonic-gate
387c478bd9Sstevel@tonic-gateS_COMOBJS=	debug.o		audit.o		object.o
397c478bd9Sstevel@tonic-gate
407c478bd9Sstevel@tonic-gateG_MACHOBJS=	doreloc.o
417c478bd9Sstevel@tonic-gate
4256deab07SRod EvansP_MACHOBJS=	amd64_elf.o	_setup.o	dlamd64getunwind.o
437c478bd9Sstevel@tonic-gate
44e127a3e7SrafCP_MACHOBJS=
457c478bd9Sstevel@tonic-gate
46cf9a187cSAndy FiddamanS_MACHOBJS=
477c478bd9Sstevel@tonic-gate
487c478bd9Sstevel@tonic-gateP_ASOBJS=	boot.o		boot_elf.o	caller.o
497c478bd9Sstevel@tonic-gate
50cf9a187cSAndy FiddamanS_ASOBJS=
517c478bd9Sstevel@tonic-gate
523e76f9d6SRichard LoweCRTSRCS=	../../../../lib/crt/amd64
537c478bd9Sstevel@tonic-gateCRTI=		pics/crti.o
547c478bd9Sstevel@tonic-gateCRTN=		pics/crtn.o
557c478bd9Sstevel@tonic-gateCRTS=		$(CRTI)		$(CRTN)
567c478bd9Sstevel@tonic-gate
575aefb655Srieinclude		$(SRC)/cmd/sgs/rtld/Makefile.com
585aefb655Srieinclude		$(SRC)/lib/Makefile.lib.64
597c478bd9Sstevel@tonic-gate
60*8c426718SRichard LoweMAPFILE-ORDER =	../common/mapfile-order-gcc
617c478bd9Sstevel@tonic-gate
627c478bd9Sstevel@tonic-gate# Add any machine specific flags.
637c478bd9Sstevel@tonic-gate
647c478bd9Sstevel@tonic-gateASFLAGS +=	-D__amd64 -D_ELF64 $(amd64_ASFLAGS)
657c478bd9Sstevel@tonic-gateADBGENFLAGS +=	-mlp64
667c478bd9Sstevel@tonic-gateADBSUB=		$(ADBSUB64)
677c478bd9Sstevel@tonic-gateCPPFLAGS +=	-D_ELF64
687c478bd9Sstevel@tonic-gateSONAME=		/lib/amd64/ld.so.1
697c478bd9Sstevel@tonic-gate
707c478bd9Sstevel@tonic-gateSGSMSGTARG +=	$(SGSMSGINTEL) $(SGSMSGINTEL64) $(SGSMSG64)
717c478bd9Sstevel@tonic-gate
727c478bd9Sstevel@tonic-gateLDLIB =		-L ../../libld/$(MACH64)
737c478bd9Sstevel@tonic-gateRTLDLIB =	-L ../../librtld/$(MACH64)
747c478bd9Sstevel@tonic-gate
757c478bd9Sstevel@tonic-gateCPICLIB =	$(CPICLIB64)
767c478bd9Sstevel@tonic-gateLDDBGLIBDIR =	$(LDDBGLIBDIR64)
777c478bd9Sstevel@tonic-gateCONVLIBDIR =	$(CONVLIBDIR64)
787c478bd9Sstevel@tonic-gate
797c478bd9Sstevel@tonic-gate.KEEP_STATE:
807c478bd9Sstevel@tonic-gate
817c478bd9Sstevel@tonic-gateall:		$(RTLD)
827c478bd9Sstevel@tonic-gate
83cd61ae21SRichard Loweinstall:	all $(ROOTDYNLIB64) $(ROOTCOMPATLINKS64)
847c478bd9Sstevel@tonic-gate
857c478bd9Sstevel@tonic-gateadbmacros:	adb .WAIT $(ADBSCRIPTS)
867c478bd9Sstevel@tonic-gate
877c478bd9Sstevel@tonic-gateadbinstall:	adbmacros .WAIT $(ROOTADB64)
887c478bd9Sstevel@tonic-gate
897c478bd9Sstevel@tonic-gateinclude		$(SRC)/cmd/sgs/rtld/Makefile.targ
90e9db39ceSRichard Loweinclude		$(SRC)/Makefile.master.64
91