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#
217c478bd9Sstevel@tonic-gate#
2220c1c355SRod Evans# Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
23cf9a187cSAndy Fiddaman# Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate
267c478bd9Sstevel@tonic-gateLIBRARY=	rtld.a
277c478bd9Sstevel@tonic-gateVERS=		.1
287c478bd9Sstevel@tonic-gate
297c478bd9Sstevel@tonic-gateCOMOBJS=	rtld.o
307c478bd9Sstevel@tonic-gateBLTOBJ=		msg.o
317c478bd9Sstevel@tonic-gate
32cf9a187cSAndy FiddamanOBJECTS=	$(BLTOBJ)  $(COMOBJS)
337c478bd9Sstevel@tonic-gate
347c478bd9Sstevel@tonic-gate# include library definitions
35cf9a187cSAndy Fiddamaninclude		$(SRC)/lib/Makefile.lib
365aefb655Srieinclude		$(SRC)/cmd/sgs/Makefile.com
377c478bd9Sstevel@tonic-gate
387c478bd9Sstevel@tonic-gateSGSMSGALL=	rtld.msg
397c478bd9Sstevel@tonic-gate
40f808c858SrafMAPFILES =	../common/mapfile
417c478bd9Sstevel@tonic-gateSRCS=		$(OBJECTS:%.o=../common/%.c)
427c478bd9Sstevel@tonic-gate
437c478bd9Sstevel@tonic-gateBLTDEFS=	msg.h
447c478bd9Sstevel@tonic-gateBLTDATA=	msg.c
457c478bd9Sstevel@tonic-gateBLTFILES=	$(BLTDEFS) $(BLTDATA)
467c478bd9Sstevel@tonic-gate
477c478bd9Sstevel@tonic-gateSGSMSGTARG=	../common/rtld.msg
487c478bd9Sstevel@tonic-gateSGSMSGALL=	../common/rtld.msg
497c478bd9Sstevel@tonic-gateSGSMSGFLAGS +=	-h $(BLTDEFS) -d $(BLTDATA)
507c478bd9Sstevel@tonic-gate
51d3b5f563SJohn LevonCERRWARN +=	$(CNOWARN_UNINIT)
527014882cSRichard Lowe
53cf9a187cSAndy FiddamanMSGSRCS=	$(COMOBJS:%.o=../common/%.c) $(BLTDATA)
547c478bd9Sstevel@tonic-gate
557c478bd9Sstevel@tonic-gateFILEMODE=	555
567c478bd9Sstevel@tonic-gate
577c478bd9Sstevel@tonic-gateDYNLIB=		ld.so
587c478bd9Sstevel@tonic-gate
59cf9a187cSAndy FiddamanLIBS =		$(DYNLIB)
607c478bd9Sstevel@tonic-gate
617c478bd9Sstevel@tonic-gateCPPFLAGS +=	-I. -I../common -I../../common -I../../../include \
627c478bd9Sstevel@tonic-gate		-I../../../include/$(MACH) \
635aefb655Srie		-I$(SRC)/lib/libc/inc \
645aefb655Srie		-I$(SRC)/uts/common/krtld \
65c13de8f6Sab		-I$(SRC)/common/sgsrtcid \
665aefb655Srie		-I$(SRC)/uts/$(ARCH)/sys
677c478bd9Sstevel@tonic-gate
68f808c858SrafDYNFLAGS +=	$(VERSREF)
69*69b1fd3fSRichard LoweLDLIBS +=	$(CONVLIBDIR) -lconv -lc
707c478bd9Sstevel@tonic-gate
717c478bd9Sstevel@tonic-gateROOTMDBLIB=	$(ROOT)/usr/lib/mdb/proc
727c478bd9Sstevel@tonic-gateROOTMDBLIB64=	$(ROOTMDBLIB)/$(MACH64)
737c478bd9Sstevel@tonic-gateROOTMDBLIBS=	$(ROOTMDBLIB)/$(MTARG)$(DYNLIB)
747c478bd9Sstevel@tonic-gate
75cf9a187cSAndy FiddamanCLEANFILES +=	$(BLTFILES)
76