xref: /titanic_51/usr/src/cmd/sgs/rtld/i386/Makefile (revision 27c48ed935c6a5f6015c6534b98e3090b1ddfdb6)
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 (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21
22#
23# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29BASEPLAT =	i386
30
31# Object lists are organized into primary (most frequently used code) and
32# secondary lists (less frequently used code, ie. profiling support).
33
34P_COMOBJS=	debugdata.o \
35		analyze.o	elf.o		external.o	globals.o \
36		malloc.o	paths.o		setup.o		util.o \
37		dlfcns.o	config_elf.o	locale.o	tsort.o \
38		getcwd.o	remove.o	move.o		tls.o \
39		cap.o
40
41S_COMOBJS=	debug.o		audit.o		object.o
42
43G_MACHOBJS=	doreloc.o
44
45P_MACHOBJS=	i386_elf.o	_setup.o	zero.o
46
47CP_MACHOBJS=
48
49S_MACHOBJS=
50
51P_ASOBJS=	boot.o		boot_elf.o	caller.o
52
53S_ASOBJS=
54
55CRTSRCS=	../../../../lib/common/i386
56CRTI=		pics/crti.o
57CRTN=		pics/crtn.o
58CRTS=		$(CRTI)		$(CRTN)
59
60include		$(SRC)/Makefile.master
61
62# This is safe because linking is done only with the primary compiler.
63MAPFILE-ORDER =		../common/mapfile-order-devpro
64$(__GNUC)MAPFILE-ORDER =	../common/mapfile-order-gcc
65
66include		$(SRC)/cmd/sgs/rtld/Makefile.com
67
68# Add any machine specific flags.
69
70ADBGENCFLAGS +=	-erroff=%all
71ADBGENFLAGS +=	-milp32
72ADBSUB=		$(ADBSUB32)
73SONAME=		$(VAR_RTLD_SONAME)
74
75SGSMSGTARG +=	$(SGSMSGINTEL) $(SGSMSGINTEL32) $(SGSMSG32)
76
77MAPFILES +=	../common/mapfile-32-vers
78
79.KEEP_STATE:
80
81all:		$(RTLD)
82
83install:	all $(ROOTDYNLIB) $(VAR_RTLD_ETCDYNLIB)
84
85lint:		$(LINTOUT32)
86
87adbmacros:	adb .WAIT $(ADBSCRIPTS)
88
89adbinstall:	adbmacros .WAIT $(ROOTADB)
90
91include		$(SRC)/cmd/sgs/rtld/Makefile.targ
92