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