1 0 stevel # 2 0 stevel # CDDL HEADER START 3 0 stevel # 4 0 stevel # The contents of this file are subject to the terms of the 5 1618 rie # Common Development and Distribution License (the "License"). 6 1618 rie # You may not use this file except in compliance with the License. 7 0 stevel # 8 0 stevel # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 0 stevel # or http://www.opensolaris.org/os/licensing. 10 0 stevel # See the License for the specific language governing permissions 11 0 stevel # and limitations under the License. 12 0 stevel # 13 0 stevel # When distributing Covered Code, include this CDDL HEADER in each 14 0 stevel # file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 0 stevel # If applicable, add the following below this CDDL HEADER, with the 16 0 stevel # fields enclosed by brackets "[]" replaced with your own identifying 17 0 stevel # information: Portions Copyright [yyyy] [name of copyright owner] 18 0 stevel # 19 0 stevel # CDDL HEADER END 20 0 stevel # 21 1618 rie 22 1618 rie # 23 9273 Ali # Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24 1618 rie # Use is subject to license terms. 25 0 stevel # 26 0 stevel 27 0 stevel pics/%.o: ../common/%.c 28 0 stevel $(COMPILE.c) -o $@ $< 29 0 stevel $(POST_PROCESS_O) 30 0 stevel 31 0 stevel pics/%.o: %.s 32 0 stevel $(COMPILE.s) -o $@ $< 33 1618 rie $(POST_PROCESS_O) 34 1618 rie 35 1618 rie pics/%32.o: ../common/%.c 36 1618 rie $(COMPILE.c) -o $@ $< 37 1618 rie $(POST_PROCESS_O) 38 1618 rie 39 1618 rie pics/%64.o: ../common/%.c 40 1618 rie $(COMPILE.c) -D_ELF64 -o $@ $< 41 0 stevel $(POST_PROCESS_O) 42 0 stevel 43 0 stevel pics/elfcap.o: $(ELFCAP)/elfcap.c 44 5565 ab196087 $(COMPILE.c) -o $@ $(ELFCAP)/elfcap.c 45 0 stevel $(POST_PROCESS_O) 46 0 stevel 47 5152 ab196087 # This rule generates the report_bufsize.h include file used by libconv 48 5152 ab196087 # code to ensure that their private buffer size calculations agree with 49 5152 ab196087 # the public values exposed in sgs/include/conv.h. The limit value 50 5152 ab196087 # supplied must be larger than the largest buffer used in libconv. There 51 5152 ab196087 # is little penalty for making it very large, because the header file is 52 5152 ab196087 # only included in error situations where the compilation will fail. 53 5152 ab196087 # 54 5152 ab196087 # We make this depend on Makefile.targ, because a change to Makefile.targ 55 5152 ab196087 # can change the limit, in which case we want to force everything to rebuild. 56 5152 ab196087 report_bufsize.h: ../Makefile.targ 57 6635 ab196087 perl ../../tools/libconv_mk_report_bufsize.pl 8000 58 5152 ab196087 59 9273 Ali ../common/%.c ../common/%_machelf.c: %_msg.h 60 0 stevel 61 9273 Ali %_msg.h %_msg.c: $(SGSMSG) ../common/%.msg report_bufsize.h 62 9273 Ali $(SGSMSG) $(SGSMSGFLAGS) -h $*_msg.h -d $*_msg.c \ 63 9273 Ali -n sgs_msg_libconv_$* $< 64 0 stevel 65 0 stevel $(SGSMSG): FRC 66 0 stevel @ cd $(SGSTOOLS)/$(MACH); pwd; $(MAKE) catalog 67 0 stevel @ pwd 68 0 stevel 69 6322 ab196087 vernote.s: bld_vernote $(README_REVISION) $(ONLDREADME) 70 6322 ab196087 ./bld_vernote \ 71 6322 ab196087 -R `perl $(README_REVISION) $(VERNOTE_DEBUG) \ 72 6322 ab196087 $(ONLDREADME)` \ 73 0 stevel -r "$(RELEASE)" -o $@ 74 0 stevel 75 0 stevel bld_vernote: ../common/bld_vernote.ksh 76 0 stevel $(RM) -f $@ 77 0 stevel cp ../common/bld_vernote.ksh $@ 78 0 stevel chmod a+x $@ 79 0 stevel 80 0 stevel $(LIBRARY): pics $$(PICS) 81 0 stevel @ $(RM) $(LIBRARY) 82 0 stevel $(AR) $(ARFLAGS) $@ $(PICS) 83 0 stevel $(POST_PROCESS_A) 84 0 stevel 85 0 stevel chkmsg: $(LINTSRCS) 86 0 stevel sh $(CHKMSG) $(CHKMSGFLAGS) $(LINTSRCS) 87 0 stevel 88 1618 rie .PARALLEL: $(LINTOUT32) $(LINTOUT64) $(LINTLIB32) $(LINTLIB64) 89 0 stevel 90 1618 rie lint: $(LINTLIB32) $(LINTOUT32) $(LINTLIB64) $(LINTOUT64) \ 91 1618 rie .WAIT $(SGSLINTOUT) 92 0 stevel 93 0 stevel catalog: 94 0 stevel 95 0 stevel pics: 96 0 stevel -@mkdir -p $@ 97 0 stevel 98 0 stevel clobber: clean 99 0 stevel -$(RM) $(LIBRARY) $(CLOBBERFILES) 100 0 stevel 101 0 stevel clean: 102 0 stevel -$(RM) $(PICS) $(CLEANFILES) 103 0 stevel 104 0 stevel delete: 105 0 stevel 106 0 stevel include $(SRC)/cmd/sgs/Makefile.targ 107