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


   3 #
   4 # The contents of this file are subject to the terms of the
   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 (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.

  23 #
  24 
  25 objs/%.o \
  26 pics/%.o:       %.c
  27                 $(COMPILE.c) -o $@ $<
  28                 $(POST_PROCESS_O)
  29 
  30 objs/%64.o \
  31 pics/%64.o:     ../common/%.c
  32                 $(COMPILE.c) -D_ELF64 -o $@ $<
  33                 $(POST_PROCESS_O)
  34 
  35 objs/%.o \
  36 pics/%.o:       ../misc/%.c
  37                 $(COMPILE.c) -DELF -o $@ $<
  38                 $(POST_PROCESS_O)
  39 
  40 objs/%.o \
  41 pics/%.o:       ../common/%.c
  42                 $(COMPILE.c) -o $@ $<


 114 ###
 115 ###wlocks:
 116 ###     -@mkdir -p $@
 117 ###
 118 ###wlocks/%.ll: %.c
 119 ###     wlcc $(CFLAGS) $(CPPFLAGS) -o $@ $<
 120 ###
 121 ###wlocks/%.ll: ../misc/%.c
 122 ###     wlcc $(CFLAGS) $(CPPFLAGS) -o $@ $<
 123 ###
 124 ###wlocks/%.ll: ../common/%.c
 125 ###     wlcc $(CFLAGS) $(CPPFLAGS) -o $@ $<
 126 ###
 127 ###wlocks/%64.ll:       ../common/%.c
 128 ###     wlcc -D_ELF64 $(CFLAGS) $(CPPFLAGS) -o $@ $<
 129 
 130 
 131 # Special target for native builds (ie. when we need to build a version of ld
 132 # to build a version of ld :-).
 133 
 134 native:         $(SGSPROTO)/$(DYNLIB)
 135 
 136 $(SGSPROTO)/$(DYNLIB): \
 137                 pics .WAIT $$(PICS)
 138                 $(BUILD.SO)
 139                 $(POST_PROCESS_SO)
 140                 -@$(RM) $(SGSPROTO)/$(LIBLINKS)
 141                 $(SYMLINK) $(DYNLIB) $(SGSPROTO)/$(LIBLINKS)


 142 
 143 
 144 # Derived source and header files (messaging).  Make sure that the sgsmsg
 145 # command is constructed - libelf might not be built with the whole sgs.
 146 
 147 catalog:        $(BLTMESG)
 148 
 149 chkmsg:         $(LIBSRCS)
 150                 sh $(CHKMSG) $(CHKMSGFLAGS) $(LIBSRCS)
 151 
 152 $(BLTDEFS) + \
 153 $(BLTDATA):     $(SGSMSG) $(SGSMSGTARG)
 154                 $(SGSMSG) $(SGSMSGFLAGS2) $(SGSMSGTARG)
 155 
 156 $(BLTMESG):     $(SGSMSG) $(SGSMSGALL) xlate.c xlate64.c
 157                 $(SGSMSG) $(SGSMSGFLAGS1) $(SGSMSGALL)
 158 
 159 $(SGSMSG):      FRC
 160                 @ cd $(SGSTOOLS)/$(MACH); pwd; $(MAKE) catalog
 161                 @ pwd


   3 #
   4 # The contents of this file are subject to the terms of the
   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 (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
  23 # Copyright 2016 RackTop Systems.
  24 #
  25 
  26 objs/%.o \
  27 pics/%.o:       %.c
  28                 $(COMPILE.c) -o $@ $<
  29                 $(POST_PROCESS_O)
  30 
  31 objs/%64.o \
  32 pics/%64.o:     ../common/%.c
  33                 $(COMPILE.c) -D_ELF64 -o $@ $<
  34                 $(POST_PROCESS_O)
  35 
  36 objs/%.o \
  37 pics/%.o:       ../misc/%.c
  38                 $(COMPILE.c) -DELF -o $@ $<
  39                 $(POST_PROCESS_O)
  40 
  41 objs/%.o \
  42 pics/%.o:       ../common/%.c
  43                 $(COMPILE.c) -o $@ $<


 115 ###
 116 ###wlocks:
 117 ###     -@mkdir -p $@
 118 ###
 119 ###wlocks/%.ll: %.c
 120 ###     wlcc $(CFLAGS) $(CPPFLAGS) -o $@ $<
 121 ###
 122 ###wlocks/%.ll: ../misc/%.c
 123 ###     wlcc $(CFLAGS) $(CPPFLAGS) -o $@ $<
 124 ###
 125 ###wlocks/%.ll: ../common/%.c
 126 ###     wlcc $(CFLAGS) $(CPPFLAGS) -o $@ $<
 127 ###
 128 ###wlocks/%64.ll:       ../common/%.c
 129 ###     wlcc -D_ELF64 $(CFLAGS) $(CPPFLAGS) -o $@ $<
 130 
 131 
 132 # Special target for native builds (ie. when we need to build a version of ld
 133 # to build a version of ld :-).
 134 
 135 native:         $(SGSLIBDIR)/$(LIBLINKS)
 136 
 137 $(SGSLIBDIR)/$(DYNLIB): pics .WAIT $$(PICS)

 138                 $(BUILD.SO)
 139                 $(POST_PROCESS_SO)
 140 
 141 $(SGSLIBDIR)/$(LIBLINKS): $(SGSLIBDIR)/$(DYNLIB)
 142                 -@$(RM) $(SGSLIBDIR)/$(LIBLINKS)
 143                 $(SYMLINK) $(DYNLIB) $(SGSLIBDIR)/$(LIBLINKS)
 144 
 145 
 146 # Derived source and header files (messaging).  Make sure that the sgsmsg
 147 # command is constructed - libelf might not be built with the whole sgs.
 148 
 149 catalog:        $(BLTMESG)
 150 
 151 chkmsg:         $(LIBSRCS)
 152                 sh $(CHKMSG) $(CHKMSGFLAGS) $(LIBSRCS)
 153 
 154 $(BLTDEFS) + \
 155 $(BLTDATA):     $(SGSMSG) $(SGSMSGTARG)
 156                 $(SGSMSG) $(SGSMSGFLAGS2) $(SGSMSGTARG)
 157 
 158 $(BLTMESG):     $(SGSMSG) $(SGSMSGALL) xlate.c xlate64.c
 159                 $(SGSMSG) $(SGSMSGFLAGS1) $(SGSMSGALL)
 160 
 161 $(SGSMSG):      FRC
 162                 @ cd $(SGSTOOLS)/$(MACH); pwd; $(MAKE) catalog
 163                 @ pwd