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