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# 215aefb655Srie 225aefb655Srie# 234f680cc6SAli Bahrami# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 245aefb655Srie# Use is subject to license terms. 257c478bd9Sstevel@tonic-gate# 267c478bd9Sstevel@tonic-gate 277c478bd9Sstevel@tonic-gatepics/%.o: ../common/%.c 287c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 297c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 307c478bd9Sstevel@tonic-gate 317c478bd9Sstevel@tonic-gatepics/%.o: %.s 327c478bd9Sstevel@tonic-gate $(COMPILE.s) -o $@ $< 337c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 347c478bd9Sstevel@tonic-gate 355aefb655Sriepics/%32.o: ../common/%.c 365aefb655Srie $(COMPILE.c) -o $@ $< 375aefb655Srie $(POST_PROCESS_O) 385aefb655Srie 395aefb655Sriepics/%64.o: ../common/%.c 405aefb655Srie $(COMPILE.c) -D_ELF64 -o $@ $< 415aefb655Srie $(POST_PROCESS_O) 425aefb655Srie 437c478bd9Sstevel@tonic-gatepics/elfcap.o: $(ELFCAP)/elfcap.c 4499f63845Sab196087 $(COMPILE.c) -o $@ $(ELFCAP)/elfcap.c 457c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 467c478bd9Sstevel@tonic-gate 476a074c93Sab196087# This rule generates the report_bufsize.h include file used by libconv 486a074c93Sab196087# code to ensure that their private buffer size calculations agree with 496a074c93Sab196087# the public values exposed in sgs/include/conv.h. The limit value 506a074c93Sab196087# supplied must be larger than the largest buffer used in libconv. There 516a074c93Sab196087# is little penalty for making it very large, because the header file is 526a074c93Sab196087# only included in error situations where the compilation will fail. 536a074c93Sab196087# 546a074c93Sab196087# We make this depend on Makefile.targ, because a change to Makefile.targ 556a074c93Sab196087# can change the limit, in which case we want to force everything to rebuild. 566a074c93Sab196087report_bufsize.h: ../Makefile.targ 57c6c9aed4Sab196087 perl ../../tools/libconv_mk_report_bufsize.pl 8000 586a074c93Sab196087 594f680cc6SAli Bahrami../common/%.c ../common/%_machelf.c: %_msg.h 607c478bd9Sstevel@tonic-gate 614f680cc6SAli Bahrami%_msg.h %_msg.c: $(SGSMSG) ../common/%.msg report_bufsize.h 624f680cc6SAli Bahrami $(SGSMSG) $(SGSMSGFLAGS) -h $*_msg.h -d $*_msg.c \ 634f680cc6SAli Bahrami -n sgs_msg_libconv_$* $< 647c478bd9Sstevel@tonic-gate 657c478bd9Sstevel@tonic-gate$(SGSMSG): FRC 667c478bd9Sstevel@tonic-gate @ cd $(SGSTOOLS)/$(MACH); pwd; $(MAKE) catalog 677c478bd9Sstevel@tonic-gate @ pwd 687c478bd9Sstevel@tonic-gate 693edf445cSab196087vernote.s: bld_vernote $(README_REVISION) $(ONLDREADME) 703edf445cSab196087 ./bld_vernote \ 71*34ae5cdfSJosef 'Jeff' Sipek -R `perl $(README_REVISION) $(ONLDREADME)` \ 727c478bd9Sstevel@tonic-gate -r "$(RELEASE)" -o $@ 737c478bd9Sstevel@tonic-gate 747c478bd9Sstevel@tonic-gatebld_vernote: ../common/bld_vernote.ksh 757c478bd9Sstevel@tonic-gate $(RM) -f $@ 767c478bd9Sstevel@tonic-gate cp ../common/bld_vernote.ksh $@ 777c478bd9Sstevel@tonic-gate chmod a+x $@ 787c478bd9Sstevel@tonic-gate 797c478bd9Sstevel@tonic-gate$(LIBRARY): pics $$(PICS) 807c478bd9Sstevel@tonic-gate @ $(RM) $(LIBRARY) 817c478bd9Sstevel@tonic-gate $(AR) $(ARFLAGS) $@ $(PICS) 827c478bd9Sstevel@tonic-gate $(POST_PROCESS_A) 837c478bd9Sstevel@tonic-gate 847c478bd9Sstevel@tonic-gatechkmsg: $(LINTSRCS) 857c478bd9Sstevel@tonic-gate sh $(CHKMSG) $(CHKMSGFLAGS) $(LINTSRCS) 867c478bd9Sstevel@tonic-gate 875aefb655Srie.PARALLEL: $(LINTOUT32) $(LINTOUT64) $(LINTLIB32) $(LINTLIB64) 887c478bd9Sstevel@tonic-gate 895aefb655Srielint: $(LINTLIB32) $(LINTOUT32) $(LINTLIB64) $(LINTOUT64) \ 905aefb655Srie .WAIT $(SGSLINTOUT) 917c478bd9Sstevel@tonic-gate 927c478bd9Sstevel@tonic-gatecatalog: 937c478bd9Sstevel@tonic-gate 947c478bd9Sstevel@tonic-gatepics: 957c478bd9Sstevel@tonic-gate -@mkdir -p $@ 967c478bd9Sstevel@tonic-gate 977c478bd9Sstevel@tonic-gateclobber: clean 987c478bd9Sstevel@tonic-gate -$(RM) $(LIBRARY) $(CLOBBERFILES) 997c478bd9Sstevel@tonic-gate 1007c478bd9Sstevel@tonic-gateclean: 1017c478bd9Sstevel@tonic-gate -$(RM) $(PICS) $(CLEANFILES) 1027c478bd9Sstevel@tonic-gate 1037c478bd9Sstevel@tonic-gatedelete: 1047c478bd9Sstevel@tonic-gate 1057c478bd9Sstevel@tonic-gateinclude $(SRC)/cmd/sgs/Makefile.targ 106