xref: /titanic_41/usr/src/cmd/sgs/rtld/mdbmod/Makefile.com (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
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.
237c478bd9Sstevel@tonic-gate#
247c478bd9Sstevel@tonic-gate
257c478bd9Sstevel@tonic-gateLIBRARY=	rtld.a
267c478bd9Sstevel@tonic-gateVERS=		.1
277c478bd9Sstevel@tonic-gate
287c478bd9Sstevel@tonic-gateCOMOBJS=	rtld.o
297c478bd9Sstevel@tonic-gateBLTOBJ=		msg.o
307c478bd9Sstevel@tonic-gate
317c478bd9Sstevel@tonic-gateOBJECTS= 	$(BLTOBJ)  $(COMOBJS)
327c478bd9Sstevel@tonic-gate
337c478bd9Sstevel@tonic-gate# include library definitions
347c478bd9Sstevel@tonic-gateinclude 	$(SRC)/lib/Makefile.lib
355aefb655Srieinclude		$(SRC)/cmd/sgs/Makefile.com
367c478bd9Sstevel@tonic-gate
377c478bd9Sstevel@tonic-gateSGSMSGALL=	rtld.msg
387c478bd9Sstevel@tonic-gate
39f808c858SrafMAPFILES =	../common/mapfile
407c478bd9Sstevel@tonic-gateSRCS=		$(OBJECTS:%.o=../common/%.c)
417c478bd9Sstevel@tonic-gate
427c478bd9Sstevel@tonic-gateBLTDEFS=	msg.h
437c478bd9Sstevel@tonic-gateBLTDATA=	msg.c
447c478bd9Sstevel@tonic-gateBLTFILES=	$(BLTDEFS) $(BLTDATA)
457c478bd9Sstevel@tonic-gate
467c478bd9Sstevel@tonic-gateSGSMSGTARG=	../common/rtld.msg
477c478bd9Sstevel@tonic-gateSGSMSGALL=	../common/rtld.msg
487c478bd9Sstevel@tonic-gateSGSMSGFLAGS +=	-h $(BLTDEFS) -d $(BLTDATA)
497c478bd9Sstevel@tonic-gate
507c478bd9Sstevel@tonic-gateLINTFLAGS +=	-u -erroff=E_NAME_DECL_NOT_USED_DEF2
517c478bd9Sstevel@tonic-gateLINTFLAGS64 += 	-u -erroff=E_NAME_DECL_NOT_USED_DEF2
527c478bd9Sstevel@tonic-gate
53*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-uninitialized
54*7014882cSRichard Lowe
557c478bd9Sstevel@tonic-gateLINTSRCS=	$(COMOBJS:%.o=../common/%.c) $(BLTDATA)
567c478bd9Sstevel@tonic-gate
577c478bd9Sstevel@tonic-gateFILEMODE=	555
587c478bd9Sstevel@tonic-gate
597c478bd9Sstevel@tonic-gateDYNLIB=		ld.so
607c478bd9Sstevel@tonic-gate
617c478bd9Sstevel@tonic-gateLIBS =		$(DYNLIB) $(LINTLIB)
627c478bd9Sstevel@tonic-gate
637c478bd9Sstevel@tonic-gate# definitions for lint
647c478bd9Sstevel@tonic-gate
657c478bd9Sstevel@tonic-gateCPPFLAGS +=	-I. -I../common -I../../common -I../../../include \
667c478bd9Sstevel@tonic-gate		-I../../../include/$(MACH) \
675aefb655Srie		-I$(SRC)/lib/libc/inc \
685aefb655Srie		-I$(SRC)/uts/common/krtld \
69c13de8f6Sab196087		-I$(SRC)/common/sgsrtcid \
705aefb655Srie		-I$(SRC)/uts/$(ARCH)/sys
717c478bd9Sstevel@tonic-gate
72f808c858SrafDYNFLAGS +=	$(VERSREF)
735aefb655SrieLDLIBS +=	$(CONVLIBDIR) $(CONV_LIB) -lc
747c478bd9Sstevel@tonic-gate
757c478bd9Sstevel@tonic-gateROOTMDBLIB=	$(ROOT)/usr/lib/mdb/proc
767c478bd9Sstevel@tonic-gateROOTMDBLIB64=	$(ROOTMDBLIB)/$(MACH64)
777c478bd9Sstevel@tonic-gateROOTMDBLIBS=	$(ROOTMDBLIB)/$(MTARG)$(DYNLIB)
787c478bd9Sstevel@tonic-gate
797c478bd9Sstevel@tonic-gateCLEANFILES +=	$(LINTOUTS) $(BLTFILES)
80