Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# CDDL HEADER START
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# The contents of this file are subject to the terms of the
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Common Development and Distribution License, Version 1.0 only
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# (the "License"). You may not use this file except in compliance
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# with the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# or http://www.opensolaris.org/os/licensing.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# See the License for the specific language governing permissions
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# and limitations under the License.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# When distributing Covered Code, include this CDDL HEADER in each
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# CDDL HEADER END
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Use is subject to license terms.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# ident "%Z%%M% %I% %E% SMI"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Object lists are organized into primary (most frequently used code) and
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# secondary lists (less frequently used code, ie. a.out support).
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserP_COMOBJS= debugdata.o \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews analyze.o elf.o globals.o malloc.o \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User mutex.o paths.o setup.o util.o \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews dlfcns.o config_elf.o locale.o tsort.o \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User getcwd.o remove.o sunwmove.o tls.o \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews cap.o
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsS_COMOBJS= debug.o audit.o object.o
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserG_MACHOBJS= doreloc.o
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserP_MACHOBJS= amd64_elf.o _setup.o zero.o \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User dlamd64getunwind.o
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCP_MACHOBJS= dtrace_data.o
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic UpdaterS_MACHOBJS=
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic UpdaterP_ASOBJS= boot.o boot_elf.o caller.o
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntS_ASOBJS=
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic Updater
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic UpdaterCRTSRCS= ../../../../lib/common/amd64
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCRTI= pics/crti.o
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCRTN= pics/crtn.o
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCRTS= $(CRTI) $(CRTN)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
d856585f5fe37cc2ea82115c10339578d2b517b1Automatic UpdaterBASEPLAT= amd64
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userinclude $(SRC)/Makefile.master
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# We build 64-bit objects with gcc by default
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserMAPFILE-ORDER = ../common/mapfile-order-devpro
f7b41fd9291b8f4dba27e2b57e1d93f0913a4f1dMark Andrews$(__GNUC64)MAPFILE-ORDER = ../common/mapfile-order-gcc
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
f7b41fd9291b8f4dba27e2b57e1d93f0913a4f1dMark AndrewsMAPFILE-PLAT = mapfile-amd64-vers
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude $(SRC)/cmd/sgs/rtld/Makefile.com
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userinclude $(SRC)/lib/Makefile.lib.64
d85c83c4144116fbc2734a6a623a888fea1a307fAutomatic Updater
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Add any machine specific flags.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCPPFLAGS += -I../../../../uts/intel/amd64/krtld -DELF_TARGET_AMD64
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCFLAGS += -xregs=no%appl
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntASFLAGS += -D__amd64 -D_ELF64 $(amd64_ASFLAGS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsADBGENFLAGS += -mlp64
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserADBGENCFLAGS += -erroff=%all
d85c83c4144116fbc2734a6a623a888fea1a307fAutomatic UpdaterADBSUB= $(ADBSUB64)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCPPFLAGS += -D_ELF64
d85c83c4144116fbc2734a6a623a888fea1a307fAutomatic UpdaterLINTFLAGS64 += $(VAR_LINTFLAGS64)
d85c83c4144116fbc2734a6a623a888fea1a307fAutomatic UpdaterSONAME= /lib/amd64/ld.so.1
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox UserSGSMSGTARG += $(SGSMSGINTEL) $(SGSMSGINTEL64) $(SGSMSG64)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox UserDYNFLAGS += -zdtrace=dtrace_data
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox User
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox UserLDLIB = -L ../../libld/$(MACH64)
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox UserRTLDLIB = -L ../../librtld/$(MACH64)
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox User
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox UserCPICLIB = $(CPICLIB64)
990d0e893f5b70e735cdf990af66e9ec6e91fa78Tinderbox UserLDDBGLIBDIR = $(LDDBGLIBDIR64)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCONVLIBDIR = $(CONVLIBDIR64)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark Andrews.KEEP_STATE:
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark Andrews
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userall: $(RTLD)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userinstall: all $(ROOTDYNLIB64)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userlint: $(LINTOUT64)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Useradbmacros: adb .WAIT $(ADBSCRIPTS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsadbinstall: adbmacros .WAIT $(ROOTADB64)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userpics/%.o: $(SRCBASE)/uts/intel/amd64/krtld/%.c
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User $(COMPILE.c) -o $@ $< $(WARNFLAGS)
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User $(POST_PROCESS_O)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude $(SRC)/cmd/sgs/rtld/Makefile.targ
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude ../../Makefile.sub.64
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User