xref: /illumos-gate/usr/src/cmd/sgs/rtld/i386/Makefile (revision 29e362da24db33a6650152985ef5626b4e6a810f)
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 2006 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		globals.o	malloc.o \
36		mutex.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=	dtrace_data.o
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
60# __GNUC is overridden in the environment when building with gcc
61__GNUC:sh=		echo \\043
62
63# We build 32-bit objects with cc by default
64MAPFILE-ORDER =		../common/mapfile-order-devpro
65$(__GNUC)MAPFILE-ORDER =	../common/mapfile-order-gcc
66
67include		$(SRC)/cmd/sgs/rtld/Makefile.com
68
69# Add any machine specific flags.
70
71ADBGENCFLAGS +=	-erroff=%all
72ADBGENFLAGS +=	-milp32
73ADBSUB=		$(ADBSUB32)
74SONAME=		$(VAR_RTLD_SONAME)
75
76SGSMSGTARG +=	$(SGSMSGINTEL) $(SGSMSGINTEL32) $(SGSMSG32)
77
78MAPFILES +=	../common/mapfile-32-vers
79
80.KEEP_STATE:
81
82all:		$(RTLD)
83
84install:	all $(ROOTDYNLIB) $(VAR_RTLD_ETCDYNLIB)
85
86lint:		$(LINTOUT32)
87
88adbmacros:	adb .WAIT $(ADBSCRIPTS)
89
90adbinstall:	adbmacros .WAIT $(ROOTADB)
91
92include		$(SRC)/cmd/sgs/rtld/Makefile.targ
93