xref: /titanic_44/usr/src/cmd/sgs/rtld/sparc/Makefile (revision 749f21d359d8fbd020c974a1a5227316221bfc9c)
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. a.out 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	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
63# __GNUC is overridden in the environment when building with gcc
64__GNUC:sh=		echo \\043
65
66# We build sparc objects with cc by default
67MAPFILE-ORDER =		../common/mapfile-order-devpro
68$(__GNUC)MAPFILE-ORDER =	../common/mapfile-order-gcc
69
70include		$(SRC)/cmd/sgs/rtld/Makefile.com
71
72# Add any a.out and machine specific flags.
73
74CPPFLAGS +=	-I../../../../uts/sparc/krtld -DA_OUT
75CFLAGS +=	-xregs=no%appl
76ASFLAGS +=	-K pic
77LINTFLAGS +=	-DA_OUT
78ADBGENCFLAGS +=	-erroff=%all
79ADBGENFLAGS +=	-milp32
80ADBSUB=		$(ADBSUB32)
81SONAME=		$(VAR_RTLD_SONAME)
82
83SGSMSGTARG +=	$(SGSMSGSPARC) $(SGSMSGSPARC32) $(SGSMSG32)
84
85.KEEP_STATE:
86
87all:		$(RTLD)
88
89install:	all $(ROOTDYNLIB) $(VAR_RTLD_ETCDYNLIB)
90
91lint:		$(LINTOUT32)
92
93adbmacros:	adb .WAIT $(ADBSCRIPTS)
94
95adbinstall:	adbmacros .WAIT $(ROOTADB)
96
97include		$(SRC)/cmd/sgs/rtld/Makefile.targ
98