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 2006 Sun Microsystems, Inc. All rights reserved. 24# Use is subject to license terms. 25# 26# ident "%Z%%M% %I% %E% SMI" 27# 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 32P_COMOBJS= debugdata.o \ 33 analyze.o elf.o globals.o malloc.o \ 34 mutex.o paths.o setup.o util.o \ 35 dlfcns.o config_elf.o locale.o tsort.o \ 36 getcwd.o remove.o move.o tls.o \ 37 cap.o 38 39S_COMOBJS= debug.o audit.o object.o cache_a.out.o \ 40 a.out.o 41 42G_MACHOBJS= doreloc.o 43 44P_MACHOBJS= sparc_elf.o _setup.o 45 46CP_MACHOBJS= common_sparc.o dtrace_data.o 47 48S_MACHOBJS= sparc_a.out.o 49 50P_ASOBJS= boot.o boot_elf.o caller.o zero.o 51 52S_ASOBJS= boot_a.out.o 53 54CRTSRCS= ../../../../lib/common/sparc 55CRTI= pics/crti.o 56CRTN= pics/crtn.o 57CRTS= $(CRTI) $(CRTN) 58 59CHKSRCS= $(SRCBASE)/uts/common/krtld/reloc.h 60 61BASEPLAT = sparc 62 63# __GNUC is overridden in the environment when building with gcc 64__GNUC:sh= echo \\043 65 66# We build sparc objects with cc by default 67MAPFILE-ORDER = ../common/mapfile-order-devpro 68$(__GNUC)MAPFILE-ORDER = ../common/mapfile-order-gcc 69 70include $(SRC)/cmd/sgs/rtld/Makefile.com 71 72# Add any a.out and machine specific flags. 73 74CPPFLAGS += -I../../../../uts/sparc/krtld -DA_OUT 75CFLAGS += -xregs=no%appl 76ASFLAGS += -K pic 77LINTFLAGS += -DA_OUT 78ADBGENCFLAGS += -erroff=%all 79ADBGENFLAGS += -milp32 80ADBSUB= $(ADBSUB32) 81SONAME= $(VAR_RTLD_SONAME) 82 83MAPFILES += ../common/mapfile-32-vers 84 85SGSMSGTARG += $(SGSMSGSPARC) $(SGSMSGSPARC32) $(SGSMSG32) 86 87.KEEP_STATE: 88 89all: $(RTLD) 90 91install: all $(ROOTDYNLIB) $(VAR_RTLD_ETCDYNLIB) 92 93lint: $(LINTOUT32) 94 95adbmacros: adb .WAIT $(ADBSCRIPTS) 96 97adbinstall: adbmacros .WAIT $(ROOTADB) 98 99include $(SRC)/cmd/sgs/rtld/Makefile.targ 100