17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 55aefb655Srie# Common Development and Distribution License (the "License"). 65aefb655Srie# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 21*08278a5eSRod Evans 227c478bd9Sstevel@tonic-gate# 23*08278a5eSRod Evans# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 247c478bd9Sstevel@tonic-gate# Use is subject to license terms. 257c478bd9Sstevel@tonic-gate# 267c478bd9Sstevel@tonic-gate 277c478bd9Sstevel@tonic-gate# Don't generate separate sections for this module 287c478bd9Sstevel@tonic-gatepics/debugdata.o := XFFLAG= 297c478bd9Sstevel@tonic-gate 307c478bd9Sstevel@tonic-gate# Since we use RTLD rather than DYNLIB, we must explicitly hook in ctfmerge. 317c478bd9Sstevel@tonic-gate$(RTLD) := CTFMERGE_POST = $(CTFMERGE_LIB) 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gatepics/%.o: %.s 347c478bd9Sstevel@tonic-gate $(BUILD.s) 357c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 367c478bd9Sstevel@tonic-gate 377c478bd9Sstevel@tonic-gatepics/%.o: $(CRTSRCS)/%.s 387c478bd9Sstevel@tonic-gate $(BUILD.s) 397c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 407c478bd9Sstevel@tonic-gate 417c478bd9Sstevel@tonic-gatepics/%.o: %.c 42635216b6SRod Evans $(COMPILE.c) -o $@ $< 437c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 447c478bd9Sstevel@tonic-gate 457c478bd9Sstevel@tonic-gatepics/%.o: ../common/%.c 46635216b6SRod Evans $(COMPILE.c) -o $@ $< 477c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 487c478bd9Sstevel@tonic-gate 497c478bd9Sstevel@tonic-gatepics/%.o: $(VAR_AVLDIR)/%.c 50635216b6SRod Evans $(COMPILE.c) -o $@ $< 517c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 527c478bd9Sstevel@tonic-gate 53e127a3e7Srafpics/%.o: $(VAR_DTRDIR)/%.c 54635216b6SRod Evans $(COMPILE.c) -o $@ $< 55e127a3e7Sraf $(POST_PROCESS_O) 56e127a3e7Sraf 577c478bd9Sstevel@tonic-gatepics/%.o: $(SGSTOOLS)/common/%.c 58635216b6SRod Evans $(COMPILE.c) -o $@ $< 597c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 607c478bd9Sstevel@tonic-gate 617c478bd9Sstevel@tonic-gatepics/%.o: $(SRCBASE)/uts/$(PLAT)/krtld/%.c 62635216b6SRod Evans $(COMPILE.c) -o $@ $< 637c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 647c478bd9Sstevel@tonic-gate 65*08278a5eSRod Evanspics/elfcap.o: $(ELFCAP)/elfcap.c 66*08278a5eSRod Evans $(COMPILE.c) -o $@ $(ELFCAP)/elfcap.c 67*08278a5eSRod Evans $(POST_PROCESS_O) 68*08278a5eSRod Evans 69f808c858Sraf$(RTLD): pics $(PICS) $(CRTS) 70*08278a5eSRod Evans $(LD_USE_PROTO)ld -o $@ -dy -G $(DYNFLAGS) $(CRTI) $(PICS) \ 717c478bd9Sstevel@tonic-gate $(LDLIBS) $(CRTN) 727c478bd9Sstevel@tonic-gate $(POST_PROCESS_SO) 737c478bd9Sstevel@tonic-gate 747c478bd9Sstevel@tonic-gatedelete: 757c478bd9Sstevel@tonic-gate -$(RM) $(RTLD) 767c478bd9Sstevel@tonic-gate 777c478bd9Sstevel@tonic-gatelint: $(SGSLINTOUT) 787c478bd9Sstevel@tonic-gate 797c478bd9Sstevel@tonic-gatelint := CPICLIB= 807c478bd9Sstevel@tonic-gatelint := CLIB=-lc 817c478bd9Sstevel@tonic-gate 827c478bd9Sstevel@tonic-gate$(ROOTFS_LIBDIR)/%: % 837c478bd9Sstevel@tonic-gate $(INS.file) 847c478bd9Sstevel@tonic-gate 857c478bd9Sstevel@tonic-gate$(ETCLIBDIR)/%: % 867c478bd9Sstevel@tonic-gate $(INS.file) 877c478bd9Sstevel@tonic-gate 887c478bd9Sstevel@tonic-gateinclude $(SRC)/lib/Makefile.targ 897c478bd9Sstevel@tonic-gateinclude $(SRC)/cmd/sgs/Makefile.targ 907c478bd9Sstevel@tonic-gate 917c478bd9Sstevel@tonic-gate# Derived source and header files (messaging). 927c478bd9Sstevel@tonic-gate 937c478bd9Sstevel@tonic-gatecatalog: $(BLTMESG) 947c478bd9Sstevel@tonic-gate 957c478bd9Sstevel@tonic-gatechkmsg := SGSMSGCHK=../common/rtld.chk.msg 967c478bd9Sstevel@tonic-gate 977c478bd9Sstevel@tonic-gatechkmsg: $(SRCS) $(CHKSRCS) 987c478bd9Sstevel@tonic-gate sh $(CHKMSG) $(CHKMSGFLAGS) $(SRCS) $(CHKSRCS) 997c478bd9Sstevel@tonic-gate 1007c478bd9Sstevel@tonic-gate$(BLTDEFS) + \ 1017c478bd9Sstevel@tonic-gate$(BLTDATA) : $(SGSMSGTARG) 1027c478bd9Sstevel@tonic-gate $(SGSMSG) $(SGSMSGFLAGS2) $(SGSMSGTARG) 1037c478bd9Sstevel@tonic-gate 1047c478bd9Sstevel@tonic-gate$(BLTMESG) : $(SGSMSGALL) 1057c478bd9Sstevel@tonic-gate $(SGSMSG) $(SGSMSGFLAGS1) $(SGSMSGALL) 106