xref: /illumos-gate/usr/src/cmd/sgs/rtld/i386/Makefile (revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4)
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 2009 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26
27BASEPLAT =	i386
28
29# Object lists are organized into primary (most frequently used code) and
30# secondary lists (less frequently used code, ie. profiling support).
31
32P_COMOBJS=	debugdata.o \
33		analyze.o	elf.o		external.o	globals.o \
34		malloc.o	paths.o		setup.o		util.o \
35		dlfcns.o	config_elf.o	locale.o	tsort.o \
36		remove.o	move.o		tls.o		cap.o
37
38S_COMOBJS=	debug.o		audit.o		object.o
39
40G_MACHOBJS=	doreloc.o
41
42P_MACHOBJS=	i386_elf.o	_setup.o
43
44CP_MACHOBJS=
45
46S_MACHOBJS=
47
48P_ASOBJS=	boot.o		boot_elf.o	caller.o
49
50S_ASOBJS=
51
52CRTSRCS=	../../../../lib/common/i386
53CRTI=		pics/crti.o
54CRTN=		pics/crtn.o
55CRTS=		$(CRTI)		$(CRTN)
56
57include		$(SRC)/Makefile.master
58
59# This is safe because linking is done only with the primary compiler.
60MAPFILE-ORDER =		../common/mapfile-order-devpro
61$(__GNUC)MAPFILE-ORDER =	../common/mapfile-order-gcc
62
63include		$(SRC)/cmd/sgs/rtld/Makefile.com
64
65# Add any machine specific flags.
66
67ADBGENCFLAGS +=	-erroff=%all
68ADBGENFLAGS +=	-milp32
69ADBSUB=		$(ADBSUB32)
70SONAME=		$(VAR_RTLD_SONAME)
71
72SGSMSGTARG +=	$(SGSMSGINTEL) $(SGSMSGINTEL32) $(SGSMSG32)
73
74MAPFILES +=	../common/mapfile-32-vers
75
76.KEEP_STATE:
77
78all:		$(RTLD)
79
80install:	all $(ROOTDYNLIB) $(VAR_RTLD_ETCDYNLIB)
81
82lint:		$(LINTOUT32)
83
84adbmacros:	adb .WAIT $(ADBSCRIPTS)
85
86adbinstall:	adbmacros .WAIT $(ROOTADB)
87
88include		$(SRC)/cmd/sgs/rtld/Makefile.targ
89