Print this page
7612 SGSPROTO lacks structure
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Richard Lowe <richlowe@richlowe.net>


   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   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.
  12 #
  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]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 # ident "%Z%%M% %I%     %E% SMI"
  26 #
  27 
  28 pics/%.o:       ../common/%.c
  29                 $(COMPILE.c) -o $@ $<
  30                 $(POST_PROCESS_O)
  31 
  32 pics/%32.o:     ../common/%.c
  33                 $(COMPILE.c) -o $@ $<
  34                 $(POST_PROCESS_O)
  35 
  36 pics/%64.o:     ../common/%.c
  37                 $(COMPILE.c) -o $@ -D_ELF64 $<
  38                 $(POST_PROCESS_O)
  39 
  40 pics/%32.o:     %.c
  41                 $(COMPILE.c) -o $@ $<
  42                 $(POST_PROCESS_O)
  43 
  44 pics/%64.o:     %.c
  45                 $(COMPILE.c) -o $@ -D_ELF64 $<


  84 pics/%_sparc_64.o: \
  85                 $(KRTLD_SPARC)/%.c
  86                 $(COMPILE.c) -o $@ -D_ELF64 -DDO_RELOC_LIBLD $<
  87                 $(POST_PROCESS_O)
  88 
  89 
  90 $(LIBLINKS):
  91                 $(RM) $@; $(SYMLINK) $(DYNLIB) $@
  92 
  93 delete:
  94                 $(RM) $(DYNLIB)
  95 
  96 .PARALLEL:      $(LINTOUT32) $(LINTOUT64) $(LINTLIB32) $(LINTLIB64)
  97 
  98 lint:           $(LINTLIB32) $(LINTOUT32) $(LINTLIB64) $(LINTOUT64) \
  99                     .WAIT $(SGSLINTOUT)
 100 
 101 # Special target for native builds (ie. when we need to build a version of ld
 102 # to build a version of ld :-).
 103 
 104 native:         $(SGSPROTO)/$(DYNLIB)
 105 
 106 $(SGSPROTO)/$(DYNLIB): \
 107                 pics .WAIT $$(PICS)
 108                 $(BUILD.SO)
 109                 $(POST_PROCESS_SO)
 110                 @$(RM) $(SGSPROTO)/$(LIBLINKS)
 111                 $(SYMLINK) $(DYNLIB) $(SGSPROTO)/$(LIBLINKS)


 112 
 113 include         $(SRC)/lib/Makefile.targ
 114 include         $(SRC)/cmd/sgs/Makefile.targ
 115 
 116 # Derived source and header files (messaging).
 117 
 118 catalog:        $(BLTMESG)
 119 
 120 chkmsg:         $(LIBSRCS) $(CHKSRCS)
 121                 sh $(CHKMSG) $(CHKMSGFLAGS) $(LIBSRCS) $(CHKSRCS)
 122 
 123 $(BLTDEFS) + \
 124 $(BLTDATA):     $(SGSMSGTARG)
 125                 $(SGSMSG) $(SGSMSGFLAGS2) $(SGSMSGTARG)
 126 
 127 $(BLTMESG):     $(SGSMSGALL)
 128                 $(SGSMSG) $(SGSMSGFLAGS1) $(SGSMSGALL)


   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   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.
  12 #
  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]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 # Copyright 2016 RackTop Systems.
  26 #
  27 
  28 pics/%.o:       ../common/%.c
  29                 $(COMPILE.c) -o $@ $<
  30                 $(POST_PROCESS_O)
  31 
  32 pics/%32.o:     ../common/%.c
  33                 $(COMPILE.c) -o $@ $<
  34                 $(POST_PROCESS_O)
  35 
  36 pics/%64.o:     ../common/%.c
  37                 $(COMPILE.c) -o $@ -D_ELF64 $<
  38                 $(POST_PROCESS_O)
  39 
  40 pics/%32.o:     %.c
  41                 $(COMPILE.c) -o $@ $<
  42                 $(POST_PROCESS_O)
  43 
  44 pics/%64.o:     %.c
  45                 $(COMPILE.c) -o $@ -D_ELF64 $<


  84 pics/%_sparc_64.o: \
  85                 $(KRTLD_SPARC)/%.c
  86                 $(COMPILE.c) -o $@ -D_ELF64 -DDO_RELOC_LIBLD $<
  87                 $(POST_PROCESS_O)
  88 
  89 
  90 $(LIBLINKS):
  91                 $(RM) $@; $(SYMLINK) $(DYNLIB) $@
  92 
  93 delete:
  94                 $(RM) $(DYNLIB)
  95 
  96 .PARALLEL:      $(LINTOUT32) $(LINTOUT64) $(LINTLIB32) $(LINTLIB64)
  97 
  98 lint:           $(LINTLIB32) $(LINTOUT32) $(LINTLIB64) $(LINTOUT64) \
  99                     .WAIT $(SGSLINTOUT)
 100 
 101 # Special target for native builds (ie. when we need to build a version of ld
 102 # to build a version of ld :-).
 103 
 104 native:         $(SGSLIBDIR)/$(LIBLINKS)
 105 
 106 $(SGSLIBDIR)/$(DYNLIB): pics .WAIT $$(PICS)

 107                 $(BUILD.SO)
 108                 $(POST_PROCESS_SO)
 109 
 110 $(SGSLIBDIR)/$(LIBLINKS): $(SGSLIBDIR)/$(DYNLIB)
 111                 @$(RM) $(SGSLIBDIR)/$(LIBLINKS)
 112                 $(SYMLINK) $(DYNLIB) $(SGSLIBDIR)/$(LIBLINKS)
 113 
 114 include         $(SRC)/lib/Makefile.targ
 115 include         $(SRC)/cmd/sgs/Makefile.targ
 116 
 117 # Derived source and header files (messaging).
 118 
 119 catalog:        $(BLTMESG)
 120 
 121 chkmsg:         $(LIBSRCS) $(CHKSRCS)
 122                 sh $(CHKMSG) $(CHKMSGFLAGS) $(LIBSRCS) $(CHKSRCS)
 123 
 124 $(BLTDEFS) + \
 125 $(BLTDATA):     $(SGSMSGTARG)
 126                 $(SGSMSG) $(SGSMSGFLAGS2) $(SGSMSGTARG)
 127 
 128 $(BLTMESG):     $(SGSMSGALL)
 129                 $(SGSMSG) $(SGSMSGFLAGS1) $(SGSMSGALL)