Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
3b4098640dd85040270f39b9a5ee5e22de99d3d6Mark Andrews# CDDL HEADER START
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# The contents of this file are subject to the terms of the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Common Development and Distribution License, Version 1.0 only
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# (the "License"). You may not use this file except in compliance
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# with the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# When distributing Covered Code, include this CDDL HEADER in each
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If applicable, add the following below this CDDL HEADER, with the
47012ae6dbf18a2503d7b33c1c9583dc38625cb7Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# information: Portions Copyright [yyyy] [name of copyright owner]
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Use is subject to license terms.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# ident "%Z%%M% %I% %E% SMI"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Share machsym.c with the 32-bit i386 directory since
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# they both need the Elf32 and the Elf64 code.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinL_MACHSRCS32= ../i386/machrel.c ../i386/machsym.c
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCHKSRCS += machrel.c ../i386/machrel.c amd64unwind.c \
b15d6bddeb80c985f42986dba362c2aaf8803462Mark AndrewsPICS64= $(OBJECTS:%=pics64/%) pics64/amd64unwind.o pics64/leb128.o
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCTFMERGE_LIB64= $(CTFMERGE) -t -f -L VERSION -o $@ $(PICS64)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews$(PICS64) := CPPFLAGS += -I../../../../uts/intel/amd64/krtld
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein$(PICS) := CPPFLAGS += -I../../../../uts/intel/ia32/krtld
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein$(LINTOUT32) := CPPFLAGS += -I../../../../uts/intel/ia32/krtld \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein$(LINTOUT64) := CPPFLAGS += -I../../../../uts/intel/amd64/krtld \
727f5b8846457a33d06f515a10a7e1aa849ddf18Andreas GustafssonLINK.LIB64 = $(CC) $(amd64_CFLAGS) -o $@ -G $(DYNFLAGS) $(PICS64) $(LDLIBS)
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce$(LIB64) $(SGSPROTO)/$(LIB64): pics64 .WAIT $$(PICS64) $(MAPFILES)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininstall package: all $(ROOTFS_DYNLIB) $(ROOTFS_DYNLIB64)
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce# Grab 32bit i386 files for libld.so.2