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