Print this page
7627 Build should be smarter about how SGSPROTO is created
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Kim Shrier <kshrier@racktopsystems.com>


 142 # built from lib/Makefile
 143 install_lib:    FRC
 144                 @ cd lex; pwd; $(MAKE) $@
 145                 @ cd yacc; pwd; $(MAKE) $@
 146 
 147 lint:           $(SUBDIRS)
 148 
 149 delete \
 150 clean clobber:  native-clobber .WAIT $(SUBDIRS) $(MSGDIR)
 151 
 152 $(SUBDIRS):     FRC
 153                 @ cd $@; pwd; $(MAKE) $(TARGET)
 154 
 155 
 156 # Integration of ld and ld.so.1 in some developement cycles requires that both
 157 # of these modules be built using the new ld.  This `native' target allows us
 158 # to build a local ld which will then be used to build the delivered version of
 159 # itself and ld.so.1.  Once this new functionality appears in the standard ld
 160 # this target can be disabled.
 161 
 162 native-add:     native-proto FRC
 163                 @ cd tools/$(MACH); pwd; $(MAKE) native
 164                 @ cd libconv/$(MACH); pwd; $(MAKE)
 165                 @ cd libelf/$(MACH); pwd; $(MAKE) native
 166                 @ cd liblddbg/$(MACH); pwd; $(MAKE) native
 167                 @ cd libldstab/$(MACH); pwd; $(MAKE) native
 168                 @ cd libld/$(MACH); pwd; $(MAKE) native
 169                 @ cd ld/$(MACH); pwd; $(MAKE) native
 170 
 171 native-clobber:
 172                 @ cd tools; pwd; $(MAKE) $(TARGET)
 173                 $(RM) -r proto/$(MACH)
 174 
 175 native-proto:
 176                 -@mkdir -p proto/$(MACH)
 177                 -@mkdir -p proto/$(MACH)/lib
 178                 -@mkdir -p proto/$(MACH)/usr
 179                 -@mkdir -p proto/$(MACH)/usr/bin
 180 
 181 FRC:
 182 
 183 #
 184 # Cross-reference customization: ignore the directories named by XRPRUNE,
 185 # and tweak the file globs slightly.
 186 #
 187 XRPRUNE=        rtld.4.x packages abi
 188 XRADD=          *.msg mapfile* llib-[a-z]*
 189 XRDEL=          Makefile* kobj_*
 190 
 191 #
 192 # Establish a set of directories for xref to search.  As there are duplicates
 193 # of things like headers, and only one file will be added to the xref database,
 194 # we want xref to list the source file.
 195 #
 196 XRDIRS=         . \
 197                 ../../common/elfcap \
 198                 ../../head \
 199                 ../../uts/common/krtld \


 142 # built from lib/Makefile
 143 install_lib:    FRC
 144                 @ cd lex; pwd; $(MAKE) $@
 145                 @ cd yacc; pwd; $(MAKE) $@
 146 
 147 lint:           $(SUBDIRS)
 148 
 149 delete \
 150 clean clobber:  native-clobber .WAIT $(SUBDIRS) $(MSGDIR)
 151 
 152 $(SUBDIRS):     FRC
 153                 @ cd $@; pwd; $(MAKE) $(TARGET)
 154 
 155 
 156 # Integration of ld and ld.so.1 in some developement cycles requires that both
 157 # of these modules be built using the new ld.  This `native' target allows us
 158 # to build a local ld which will then be used to build the delivered version of
 159 # itself and ld.so.1.  Once this new functionality appears in the standard ld
 160 # this target can be disabled.
 161 
 162 native-add:     FRC
 163                 @ cd tools/$(MACH); pwd; $(MAKE) native
 164                 @ cd libconv/$(MACH); pwd; $(MAKE)
 165                 @ cd libelf/$(MACH); pwd; $(MAKE) native
 166                 @ cd liblddbg/$(MACH); pwd; $(MAKE) native
 167                 @ cd libldstab/$(MACH); pwd; $(MAKE) native
 168                 @ cd libld/$(MACH); pwd; $(MAKE) native
 169                 @ cd ld/$(MACH); pwd; $(MAKE) native
 170 
 171 native-clobber:
 172                 @ cd tools; pwd; $(MAKE) $(TARGET)
 173                 $(RM) -r proto/$(MACH)






 174 
 175 FRC:
 176 
 177 #
 178 # Cross-reference customization: ignore the directories named by XRPRUNE,
 179 # and tweak the file globs slightly.
 180 #
 181 XRPRUNE=        rtld.4.x packages abi
 182 XRADD=          *.msg mapfile* llib-[a-z]*
 183 XRDEL=          Makefile* kobj_*
 184 
 185 #
 186 # Establish a set of directories for xref to search.  As there are duplicates
 187 # of things like headers, and only one file will be added to the xref database,
 188 # we want xref to list the source file.
 189 #
 190 XRDIRS=         . \
 191                 ../../common/elfcap \
 192                 ../../head \
 193                 ../../uts/common/krtld \