xref: /titanic_41/usr/src/cmd/sgs/rtld/amd64/Makefile (revision 7c2fbfb345896881c631598ee3852ce9ce33fb07)
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 2007 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29BASEPLAT =	amd64
30
31# Object lists are organized into primary (most frequently used code) and
32# secondary lists (less frequently used code, ie. a.out support).
33
34P_COMOBJS=	debugdata.o \
35		analyze.o	elf.o		external.o	globals.o \
36		malloc.o 	paths.o		setup.o		util.o \
37		dlfcns.o	config_elf.o	locale.o	tsort.o \
38		getcwd.o	remove.o	move.o		tls.o \
39		cap.o
40
41S_COMOBJS=	debug.o		audit.o		object.o
42
43G_MACHOBJS=	doreloc.o
44
45P_MACHOBJS=	amd64_elf.o	_setup.o	zero.o  \
46		dlamd64getunwind.o
47
48CP_MACHOBJS=
49
50S_MACHOBJS=
51
52P_ASOBJS=	boot.o		boot_elf.o	caller.o
53
54S_ASOBJS=
55
56CRTSRCS=	../../../../lib/common/amd64
57CRTI=		pics/crti.o
58CRTN=		pics/crtn.o
59CRTS=		$(CRTI)		$(CRTN)
60
61include		$(SRC)/cmd/sgs/rtld/Makefile.com
62include		$(SRC)/lib/Makefile.lib.64
63
64# We build 64-bit objects with gcc by default
65MAPFILE-ORDER =			../common/mapfile-order-devpro
66$(__GNUC64)MAPFILE-ORDER =	../common/mapfile-order-gcc
67
68MAPFILE-PLAT =	 mapfile-amd64-vers
69
70# Add any machine specific flags.
71
72CFLAGS +=	-xregs=no%appl
73ASFLAGS +=	-D__amd64 -D_ELF64 $(amd64_ASFLAGS)
74ADBGENFLAGS +=	-mlp64
75ADBGENCFLAGS +=	-erroff=%all
76ADBSUB=		$(ADBSUB64)
77CPPFLAGS +=	-D_ELF64
78LINTFLAGS64 +=	$(VAR_LINTFLAGS64)
79SONAME=		/lib/amd64/ld.so.1
80
81SGSMSGTARG +=	$(SGSMSGINTEL) $(SGSMSGINTEL64) $(SGSMSG64)
82
83LDLIB =		-L ../../libld/$(MACH64)
84RTLDLIB =	-L ../../librtld/$(MACH64)
85
86CPICLIB =	$(CPICLIB64)
87LDDBGLIBDIR =	$(LDDBGLIBDIR64)
88CONVLIBDIR =	$(CONVLIBDIR64)
89
90MAPFILES +=	../common/mapfile-64-vers
91
92.KEEP_STATE:
93
94all:		$(RTLD)
95
96install:	all $(ROOTDYNLIB64)
97
98lint:		$(LINTOUT64)
99
100adbmacros:	adb .WAIT $(ADBSCRIPTS)
101
102adbinstall:	adbmacros .WAIT $(ROOTADB64)
103
104include		$(SRC)/cmd/sgs/rtld/Makefile.targ
105include		../../Makefile.sub.64
106