xref: /titanic_41/usr/src/cmd/sgs/rtld/sparc/Makefile (revision 6185db853e024a486ff8837e6784dd290d866112)
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
29# Object lists are organized into primary (most frequently used code) and
30# secondary lists (less frequently used code, ie. a.out 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		getcwd.o	remove.o	move.o		tls.o \
37		cap.o
38
39S_COMOBJS=	debug.o		audit.o		object.o	cache_a.out.o \
40		a.out.o
41
42G_MACHOBJS=	doreloc.o
43
44P_MACHOBJS=	sparc_elf.o	_setup.o
45
46CP_MACHOBJS=	common_sparc.o	dtrace_data.o
47
48S_MACHOBJS=	sparc_a.out.o
49
50P_ASOBJS=	boot.o		boot_elf.o	caller.o	zero.o
51
52S_ASOBJS=	boot_a.out.o
53
54CRTSRCS=	../../../../lib/common/sparc
55CRTI=		pics/crti.o
56CRTN=		pics/crtn.o
57CRTS=		$(CRTI)		$(CRTN)
58
59CHKSRCS=	$(SRCBASE)/uts/common/krtld/reloc.h
60
61BASEPLAT =	sparc
62
63include		$(SRC)/Makefile.master
64
65# This is safe because linking is done only with the primary compiler.
66MAPFILE-ORDER =		../common/mapfile-order-devpro
67$(__GNUC)MAPFILE-ORDER =	../common/mapfile-order-gcc
68
69include		$(SRC)/cmd/sgs/rtld/Makefile.com
70
71# Add any a.out and machine specific flags.
72
73CPPFLAGS +=	-I../../../../uts/sparc/krtld -DA_OUT
74CFLAGS +=	-xregs=no%appl
75ASFLAGS +=	-K pic
76LINTFLAGS +=	-DA_OUT
77ADBGENCFLAGS +=	-erroff=%all
78ADBGENFLAGS +=	-milp32
79ADBSUB=		$(ADBSUB32)
80SONAME=		$(VAR_RTLD_SONAME)
81
82MAPFILES +=	../common/mapfile-32-vers
83
84SGSMSGTARG +=	$(SGSMSGSPARC) $(SGSMSGSPARC32) $(SGSMSG32)
85
86.KEEP_STATE:
87
88all:		$(RTLD)
89
90install:	all $(ROOTDYNLIB) $(VAR_RTLD_ETCDYNLIB)
91
92lint:		$(LINTOUT32)
93
94adbmacros:	adb .WAIT $(ADBSCRIPTS)
95
96adbinstall:	adbmacros .WAIT $(ROOTADB)
97
98include		$(SRC)/cmd/sgs/rtld/Makefile.targ
99