xref: /onnv-gate/usr/src/cmd/sgs/rtld/Makefile.targ (revision 11827:d7ef53deac3f)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
51618Srie# Common Development and Distribution License (the "License").
61618Srie# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
21*11827SRod.Evans@Sun.COM
220Sstevel@tonic-gate#
23*11827SRod.Evans@Sun.COM# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
240Sstevel@tonic-gate# Use is subject to license terms.
250Sstevel@tonic-gate#
260Sstevel@tonic-gate
270Sstevel@tonic-gate# Don't generate separate sections for this module
280Sstevel@tonic-gatepics/debugdata.o :=	XFFLAG=
290Sstevel@tonic-gate
300Sstevel@tonic-gate# Since we use RTLD rather than DYNLIB, we must explicitly hook in ctfmerge.
310Sstevel@tonic-gate$(RTLD) :=	CTFMERGE_POST = $(CTFMERGE_LIB)
320Sstevel@tonic-gate
330Sstevel@tonic-gatepics/%.o:	%.s
340Sstevel@tonic-gate		$(BUILD.s)
350Sstevel@tonic-gate		$(POST_PROCESS_O)
360Sstevel@tonic-gate
370Sstevel@tonic-gatepics/%.o:	$(CRTSRCS)/%.s
380Sstevel@tonic-gate		$(BUILD.s)
390Sstevel@tonic-gate		$(POST_PROCESS_O)
400Sstevel@tonic-gate
410Sstevel@tonic-gatepics/%.o:	%.c
4210792SRod.Evans@Sun.COM		$(COMPILE.c) -o $@ $<
430Sstevel@tonic-gate		$(POST_PROCESS_O)
440Sstevel@tonic-gate
450Sstevel@tonic-gatepics/%.o:	../common/%.c
4610792SRod.Evans@Sun.COM		$(COMPILE.c) -o $@ $<
470Sstevel@tonic-gate		$(POST_PROCESS_O)
480Sstevel@tonic-gate
490Sstevel@tonic-gatepics/%.o:	$(VAR_AVLDIR)/%.c
5010792SRod.Evans@Sun.COM		$(COMPILE.c) -o $@ $<
510Sstevel@tonic-gate		$(POST_PROCESS_O)
520Sstevel@tonic-gate
533746Srafpics/%.o:	$(VAR_DTRDIR)/%.c
5410792SRod.Evans@Sun.COM		$(COMPILE.c) -o $@ $<
553746Sraf		$(POST_PROCESS_O)
563746Sraf
570Sstevel@tonic-gatepics/%.o:	$(SGSTOOLS)/common/%.c
5810792SRod.Evans@Sun.COM		$(COMPILE.c) -o $@ $<
590Sstevel@tonic-gate		$(POST_PROCESS_O)
600Sstevel@tonic-gate
610Sstevel@tonic-gatepics/%.o:	$(SRCBASE)/uts/$(PLAT)/krtld/%.c
6210792SRod.Evans@Sun.COM		$(COMPILE.c) -o $@ $<
630Sstevel@tonic-gate		$(POST_PROCESS_O)
640Sstevel@tonic-gate
65*11827SRod.Evans@Sun.COMpics/elfcap.o:	$(ELFCAP)/elfcap.c
66*11827SRod.Evans@Sun.COM		$(COMPILE.c) -o $@ $(ELFCAP)/elfcap.c
67*11827SRod.Evans@Sun.COM		$(POST_PROCESS_O)
68*11827SRod.Evans@Sun.COM
692522Sraf$(RTLD):	pics $(PICS) $(CRTS)
70*11827SRod.Evans@Sun.COM		$(LD_USE_PROTO)ld -o $@ -dy -G $(DYNFLAGS) $(CRTI) $(PICS) \
711618Srie		    $(LDLIBS) $(CRTN)
720Sstevel@tonic-gate		$(POST_PROCESS_SO)
730Sstevel@tonic-gate
740Sstevel@tonic-gatedelete:
750Sstevel@tonic-gate		-$(RM) $(RTLD)
760Sstevel@tonic-gate
770Sstevel@tonic-gatelint:		$(SGSLINTOUT)
780Sstevel@tonic-gate
790Sstevel@tonic-gatelint :=		CPICLIB=
800Sstevel@tonic-gatelint :=		CLIB=-lc
810Sstevel@tonic-gate
820Sstevel@tonic-gate$(ROOTFS_LIBDIR)/%:	%
830Sstevel@tonic-gate		$(INS.file)
840Sstevel@tonic-gate
850Sstevel@tonic-gate$(ETCLIBDIR)/%:		%
860Sstevel@tonic-gate		$(INS.file)
870Sstevel@tonic-gate
880Sstevel@tonic-gateinclude		$(SRC)/lib/Makefile.targ
890Sstevel@tonic-gateinclude		$(SRC)/cmd/sgs/Makefile.targ
900Sstevel@tonic-gate
910Sstevel@tonic-gate# Derived source and header files (messaging).
920Sstevel@tonic-gate
930Sstevel@tonic-gatecatalog:	$(BLTMESG)
940Sstevel@tonic-gate
950Sstevel@tonic-gatechkmsg :=	SGSMSGCHK=../common/rtld.chk.msg
960Sstevel@tonic-gate
970Sstevel@tonic-gatechkmsg:		$(SRCS) $(CHKSRCS)
980Sstevel@tonic-gate		sh $(CHKMSG) $(CHKMSGFLAGS) $(SRCS) $(CHKSRCS)
990Sstevel@tonic-gate
1000Sstevel@tonic-gate$(BLTDEFS) + \
1010Sstevel@tonic-gate$(BLTDATA) :	$(SGSMSGTARG)
1020Sstevel@tonic-gate		$(SGSMSG) $(SGSMSGFLAGS2) $(SGSMSGTARG)
1030Sstevel@tonic-gate
1040Sstevel@tonic-gate$(BLTMESG) :	$(SGSMSGALL)
1050Sstevel@tonic-gate		$(SGSMSG) $(SGSMSGFLAGS1) $(SGSMSGALL)
106