xref: /titanic_44/usr/src/cmd/sgs/rtld/mdbmod/Makefile.com (revision ea8dc4b6d2251b437950c0056bc626b311c73c27)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2001-2003 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29LIBRARY=	rtld.a
30VERS=		.1
31
32
33COMOBJS=	rtld.o
34BLTOBJ=		msg.o
35
36OBJECTS= 	$(BLTOBJ)  $(COMOBJS)
37
38
39# include library definitions
40include 	$(SRC)/lib/Makefile.lib
41include		../../../Makefile.com
42
43SRCBASE=	../../../../..
44
45SGSMSGALL=	rtld.msg
46
47MAPFILE=	../common/mapfile
48SRCS=		$(OBJECTS:%.o=../common/%.c)
49
50BLTDEFS=	msg.h
51BLTDATA=	msg.c
52BLTFILES=	$(BLTDEFS) $(BLTDATA)
53
54SGSMSGTARG=	../common/rtld.msg
55SGSMSGALL=	../common/rtld.msg
56SGSMSGFLAGS +=	-h $(BLTDEFS) -d $(BLTDATA)
57
58LINTFLAGS +=	-u -erroff=E_NAME_DECL_NOT_USED_DEF2
59LINTFLAGS64 += 	-u -erroff=E_NAME_DECL_NOT_USED_DEF2
60
61LINTSRCS=	$(COMOBJS:%.o=../common/%.c) $(BLTDATA)
62
63GROUP=		sys
64FILEMODE=	555
65
66DYNLIB=		ld.so
67
68LIBS =		$(DYNLIB) $(LINTLIB)
69$(VAR_POUND_2)LIBS += $(LIBRARY)
70
71# definitions for lint
72
73CFLAGS +=
74CFLAGS64 +=
75CPPFLAGS +=	-I. -I../common -I../../common -I../../../include \
76		-I../../../include/$(MACH) \
77		-I$(SRCBASE)/lib/libc/inc \
78		-I$(SRCBASE)/uts/common/krtld \
79		-I$(SRCBASE)/uts/$(ARCH)/sys
80
81CPPFLAGS64 +=
82DYNFLAGS +=	$(VERSREF) -M $(MAPFILE)
83LDLIBS +=	$(CONVLIBDIR) -lconv -lc
84
85ROOTMDBLIB=	$(ROOT)/usr/lib/mdb/proc
86ROOTMDBLIB64=	$(ROOTMDBLIB)/$(MACH64)
87ROOTMDBLIBS=	$(ROOTMDBLIB)/$(MTARG)$(DYNLIB)
88
89CLEANFILES +=	$(LINTOUTS) $(BLTFILES)
90