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