xref: /titanic_41/usr/src/cmd/sgs/librtld_db/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) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
237c478bd9Sstevel@tonic-gate#
247c478bd9Sstevel@tonic-gate
257c478bd9Sstevel@tonic-gateLIBRARY=	librtld_db.a
267c478bd9Sstevel@tonic-gateVERS=		.1
277c478bd9Sstevel@tonic-gate
287c478bd9Sstevel@tonic-gateCOMOBJS=	rtld_db.o	rd_elf.o
297c478bd9Sstevel@tonic-gateBLTOBJ=		msg.o
307c478bd9Sstevel@tonic-gate
317c478bd9Sstevel@tonic-gateOBJECTS =	$(BLTOBJ) $(COMOBJS) $(COMOBJS64) $(PLTOBJS)
327c478bd9Sstevel@tonic-gate
337c478bd9Sstevel@tonic-gateinclude		$(SRC)/lib/Makefile.lib
347c478bd9Sstevel@tonic-gateinclude		$(SRC)/cmd/sgs/Makefile.com
357c478bd9Sstevel@tonic-gate
36f808c858SrafSRCDIR =	../common
377c478bd9Sstevel@tonic-gate
3810a4fa49SrieCPPFLAGS +=	-I$(SRCBASE)/lib/libc/inc
39f808c858SrafDYNFLAGS +=	$(VERSREF)
405aefb655SrieLDLIBS +=	$(CONVLIBDIR) $(CONV_LIB) -lc
417c478bd9Sstevel@tonic-gate
425aefb655SrieLINTFLAGS +=	-u -erroff=E_NAME_DECL_NOT_USED_DEF2
435aefb655SrieLINTFLAGS64 +=	-u -erroff=E_NAME_DECL_NOT_USED_DEF2
447c478bd9Sstevel@tonic-gate
45*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-uninitialized
46*7014882cSRichard Lowe
477c478bd9Sstevel@tonic-gateBLTDEFS=	msg.h
487c478bd9Sstevel@tonic-gateBLTDATA=	msg.c
497c478bd9Sstevel@tonic-gate
507c478bd9Sstevel@tonic-gateBLTFILES=	$(BLTDEFS) $(BLTDATA)
517c478bd9Sstevel@tonic-gate
527c478bd9Sstevel@tonic-gateSGSMSGCOM=	../common/librtld_db.msg
537c478bd9Sstevel@tonic-gateSGSMSGINTEL=	../common/librtld_db.intel.msg
545aefb655SrieSGSMSGSPARCV9=	../common/librtld_db.sparcv9.msg
557c478bd9Sstevel@tonic-gateSGSMSGTARG=	$(SGSMSGCOM)
567c478bd9Sstevel@tonic-gateSGSMSGALL=	$(SGSMSGCOM)
577c478bd9Sstevel@tonic-gateSGSMSGFLAGS +=	-h $(BLTDEFS) -d $(BLTDATA)
587c478bd9Sstevel@tonic-gate
597c478bd9Sstevel@tonic-gateSRCS=		../common/llib-lrtld_db
605aefb655SrieLINTSRCS=	$(COMOBJS:%.o=../common/%.c) $(PLTSRCS) $(BLTDATA)
617c478bd9Sstevel@tonic-gate
627c478bd9Sstevel@tonic-gateCLEANFILES +=	$(BLTFILES) $(LINTOUTS)
637c478bd9Sstevel@tonic-gateCLOBBERFILES +=	$(DYNLIB) $(LINTLIB)
647c478bd9Sstevel@tonic-gate
657c478bd9Sstevel@tonic-gateROOTFS_DYNLIB=	$(DYNLIB:%=$(ROOTFS_LIBDIR)/%)
667c478bd9Sstevel@tonic-gateROOTFS_LINTLIB=	$(LINTLIB:%=$(ROOTFS_LIBDIR)/%)
677c478bd9Sstevel@tonic-gateROOTFS_LINKS=	$(ROOTFS_LIBDIR)/$(LIBLINKS)
687c478bd9Sstevel@tonic-gate
697c478bd9Sstevel@tonic-gateROOTFS_DYNLIB64=	$(DYNLIB:%=$(ROOTFS_LIBDIR64)/%)
707c478bd9Sstevel@tonic-gateROOTFS_LINTLIB64=	$(LINTLIB:%=$(ROOTFS_LIBDIR64)/%)
717c478bd9Sstevel@tonic-gateROOTFS_LINKS64=		$(ROOTFS_LIBDIR64)/$(LIBLINKS)
727c478bd9Sstevel@tonic-gate
737c478bd9Sstevel@tonic-gate$(ROOTFS_DYNLIB) :=	FILEMODE= 755
747c478bd9Sstevel@tonic-gate$(ROOTFS_DYNLIB64) :=	FILEMODE= 755
757c478bd9Sstevel@tonic-gate
7622872efbSedppics/rd_elf.o :=	CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED
7722872efbSedppics/rd_elf64.o :=	CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED
78