xref: /titanic_52/usr/src/cmd/sgs/rtld/i386/Makefile (revision 7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fe)
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 2004 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
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		globals.o	malloc.o \
34		mutex.o		paths.o		setup.o		util.o \
35		dlfcns.o	config_elf.o	locale.o	tsort.o \
36		getcwd.o	remove.o	sunwmove.o	tls.o \
37		cap.o
38
39S_COMOBJS=	debug.o		audit.o		object.o
40
41G_MACHOBJS=	doreloc.o
42
43P_MACHOBJS=	i386_elf.o	_setup.o	zero.o
44
45CP_MACHOBJS=	dtrace_data.o
46
47S_MACHOBJS=
48
49P_ASOBJS=	boot.o		boot_elf.o	caller.o
50
51S_ASOBJS=
52
53CRTSRCS=	../../../../lib/common/i386
54CRTI=		pics/crti.o
55CRTN=		pics/crtn.o
56CRTS=		$(CRTI)		$(CRTN)
57
58BASEPLAT=	i386
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
71CPPFLAGS +=	-I../../../../uts/$(PLAT)/krtld
72ADBGENCFLAGS +=	-erroff=%all
73ADBGENFLAGS +=	-milp32
74ADBSUB=		$(ADBSUB32)
75SONAME=		$(VAR_RTLD_SONAME)
76
77SGSMSGTARG +=	$(SGSMSGINTEL) $(SGSMSGINTEL32) $(SGSMSG32)
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
91pics/%.o:       $(SRCBASE)/uts/$(PLAT)/krtld/%.c
92		$(COMPILE.c) -o $@ $<  $(WARNFLAGS)
93		$(POST_PROCESS_O)
94
95include		$(SRC)/cmd/sgs/rtld/Makefile.targ
96