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.
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.
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]
23 # Copyright 2010 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
27 # Since we use RTLD rather than DYNLIB, we must explicitly hook in ctfmerge.
28 $(RTLD) := CTFMERGE_POST = $(CTFMERGE_LIB)
34 pics/%.o: $(CRTSRCS)/%.s
42 pics/%.o: ../common/%.c
46 pics/%.o: $(VAR_AVLDIR)/%.c
50 pics/%.o: $(VAR_DTRDIR)/%.c
54 pics/%.o: $(SGSTOOLS)/common/%.c
58 pics/%.o: $(SRCTOP)/arch/x86/kernel/krtld/$(BITS)/%.c
62 pics/elfcap.o: $(ELFCAP)/elfcap.c
63 $(COMPILE.c) -o $@ $(ELFCAP)/elfcap.c
66 $(RTLD): pics $(PICS) $(CRTS)
67 $(LD_USE_PROTO)ld -o $@ -dy -G $(DYNFLAGS) $(CRTI) $(PICS) \
80 include $(SRC)/lib/Makefile.targ
81 include $(SRC)/cmd/sgs/Makefile.targ
83 # Derived source and header files (messaging).
87 chkmsg := SGSMSGCHK=../common/rtld.chk.msg
89 chkmsg: $(SRCS) $(CHKSRCS)
90 sh $(CHKMSG) $(CHKMSGFLAGS) $(SRCS) $(CHKSRCS)
93 $(BLTDATA) : $(SGSMSGTARG)
94 $(SGSMSG) $(SGSMSGFLAGS2) $(SGSMSGTARG)
96 $(BLTMESG) : $(SGSMSGALL)
97 $(SGSMSG) $(SGSMSGFLAGS1) $(SGSMSGALL)