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