Print this page
4027 remove CLOSED_BUILD
4028 remove CLOSED_IS_PRESENT
4029 remove tonic build bits
Reviewed by: Andy Stormont <andyjstormont@gmail.com>


 118 
 119 install2: install1 $(SUBDIRS)
 120 
 121 _msg: _msgdirs rootdirs FRC
 122         @for m in $(MSGSUBDIRS); do \
 123                 cd $$m; pwd; $(MAKE) _msg; cd ..; \
 124         done
 125 
 126 mapfiles: bldtools
 127         @cd common/mapfiles; pwd; $(MAKE) install
 128 
 129 clean: $(SUBDIRS) head pkg
 130 clobber: $(SUBDIRS) head pkg clobber_local
 131 clobber_local:
 132         @cd tools; pwd; $(MAKE) clobber
 133         @cd common/mapfiles; pwd; $(MAKE) clobber
 134         @cd msg; pwd; $(MAKE) clobber
 135 
 136 closedbins: bldtools $(ROOTDIRS) FRC
 137         @CLOSED_ROOT="$$ON_CLOSED_BINS/root_$(MACH)$${RELEASE_BUILD+-nd}"; \
 138         if [ "$$CLOSED_IS_PRESENT" = no ]; then \
 139                 if [ ! -d "$$CLOSED_ROOT" ]; then \
 140                         $(ECHO) "Error: if closed sources are not present," \
 141                             "ON_CLOSED_BINS must point to closed binaries."; \
 142                         $(ECHO) "root_$(MACH)$${RELEASE_BUILD+-nd} is not" \
 143                             "present in $$ON_CLOSED_BINS."; \
 144                         exit 1; \
 145                 fi; \
 146                 $(ECHO) "Copying closed binaries from $$CLOSED_ROOT"; \
 147                 (cd $$CLOSED_ROOT; \
 148                     $(TAR) cfX - $(CODEMGR_WS)/exception_lists/closed-bins .) | \
 149                     (cd $(ROOT); $(TAR) xBpf -); \
 150                 ( cd $(ROOT); $(CTFSTRIP) $$(cd $$CLOSED_ROOT; $(FIND) \
 151                     ./kernel ./usr/kernel ./platform/*/kernel -type f -a -perm -u+x | \
 152                     $(EGREP) -vf $(CODEMGR_WS)/exception_lists/closed-bins) ); \
 153         fi
 154 
 155 #
 156 # Declare what parts can be built in parallel
 157 # DUMMY at the end is used in case macro expansion produces an empty string to
 158 # prevent everything going in parallel
 159 #
 160 .PARALLEL: $(PARALLEL_HEADERS) DUMMY
 161 .PARALLEL: $(PARALLEL_DIRS) DUMMY
 162 
 163 $(SUBDIRS) head pkg: FRC
 164         @cd $@; pwd; $(MAKE) $(TARGET)
 165 
 166 # librpcsvc has a dependency on headers installed by
 167 # userheaders, hence the .WAIT before libheaders.
 168 sgs: rootdirs .WAIT sysheaders userheaders .WAIT \
 169         libheaders cmdheaders
 170 
 171 #
 172 # Top-level setup target to setup the development environment that includes
 173 # headers, tools and generated mapfiles.  For open-only builds (i.e.: source


 196 
 197 userheaders: FRC
 198         @cd head; pwd; $(MAKE) install_h
 199 
 200 libheaders: bldtools
 201         @cd lib; pwd; $(MAKE) install_h
 202 
 203 sysheaders: FRC
 204         @cd uts; pwd; $(MAKE) install_h
 205 
 206 cmdheaders: FRC
 207         @cd cmd/fm; pwd; $(MAKE) install_h
 208         @cd cmd/mdb; pwd; $(MAKE) install_h
 209 
 210 check:  $(CHKHDRSUBDIRS) $(CHKMFSTSUBDIRS)
 211 
 212 #
 213 # Cross-reference customization: skip all of the subdirectories that
 214 # don't contain actual source code.
 215 #
 216 $(CLOSED_BUILD)XRDIRS += ../closed
 217 XRPRUNE = pkg prototypes
 218 XRINCDIRS = uts/common head ucbhead
 219 $(CLOSED_BUILD)XRINCDIRS = uts/common ../closed/uts/common head ucbhead
 220 
 221 cscope.out tags: FRC
 222         $(XREF) -f -x $@
 223 
 224 FRC:
 225 
 226 #
 227 # Targets for reporting compiler versions; nightly uses these.
 228 #
 229 
 230 cc-version:
 231         @if $($(MACH)_CC) -_versions >/dev/null 2>/dev/null; then \
 232                 $(ECHO) 32-bit compiler;                        \
 233                 $(ECHO) $($(MACH)_CC);                          \
 234                 $($(MACH)_CC) -_versions 2>&1 |                  \
 235                     $(EGREP) '^(cw|cc|gcc|primary|shadow)';     \
 236         else                                                    \
 237                 __COMPILER=`$($(MACH)_CC) -_compiler 2>/dev/null || $(TRUE)`;\
 238                 if [ -z "$$__COMPILER" ]; then                  \
 239                         $(ECHO) No 32-bit compiler found;       \




 118 
 119 install2: install1 $(SUBDIRS)
 120 
 121 _msg: _msgdirs rootdirs FRC
 122         @for m in $(MSGSUBDIRS); do \
 123                 cd $$m; pwd; $(MAKE) _msg; cd ..; \
 124         done
 125 
 126 mapfiles: bldtools
 127         @cd common/mapfiles; pwd; $(MAKE) install
 128 
 129 clean: $(SUBDIRS) head pkg
 130 clobber: $(SUBDIRS) head pkg clobber_local
 131 clobber_local:
 132         @cd tools; pwd; $(MAKE) clobber
 133         @cd common/mapfiles; pwd; $(MAKE) clobber
 134         @cd msg; pwd; $(MAKE) clobber
 135 
 136 closedbins: bldtools $(ROOTDIRS) FRC
 137         @CLOSED_ROOT="$$ON_CLOSED_BINS/root_$(MACH)$${RELEASE_BUILD+-nd}"; \

 138         if [ ! -d "$$CLOSED_ROOT" ]; then \
 139                 $(ECHO) "Error: ON_CLOSED_BINS must point to closed" \
 140                     "binaries."; \
 141                 $(ECHO) "root_$(MACH)$${RELEASE_BUILD+-nd} is not" \
 142                     "present in $$ON_CLOSED_BINS."; \
 143                 exit 1; \
 144         fi; \
 145         $(ECHO) "Copying closed binaries from $$CLOSED_ROOT"; \
 146         (cd $$CLOSED_ROOT; \
 147             $(TAR) cfX - $(CODEMGR_WS)/exception_lists/closed-bins .) | \
 148             (cd $(ROOT); $(TAR) xBpf -); \
 149         ( cd $(ROOT); $(CTFSTRIP) $$(cd $$CLOSED_ROOT; $(FIND) \
 150             ./kernel ./usr/kernel ./platform/*/kernel -type f -a -perm -u+x | \
 151             $(EGREP) -vf $(CODEMGR_WS)/exception_lists/closed-bins) )

 152 
 153 #
 154 # Declare what parts can be built in parallel
 155 # DUMMY at the end is used in case macro expansion produces an empty string to
 156 # prevent everything going in parallel
 157 #
 158 .PARALLEL: $(PARALLEL_HEADERS) DUMMY
 159 .PARALLEL: $(PARALLEL_DIRS) DUMMY
 160 
 161 $(SUBDIRS) head pkg: FRC
 162         @cd $@; pwd; $(MAKE) $(TARGET)
 163 
 164 # librpcsvc has a dependency on headers installed by
 165 # userheaders, hence the .WAIT before libheaders.
 166 sgs: rootdirs .WAIT sysheaders userheaders .WAIT \
 167         libheaders cmdheaders
 168 
 169 #
 170 # Top-level setup target to setup the development environment that includes
 171 # headers, tools and generated mapfiles.  For open-only builds (i.e.: source


 194 
 195 userheaders: FRC
 196         @cd head; pwd; $(MAKE) install_h
 197 
 198 libheaders: bldtools
 199         @cd lib; pwd; $(MAKE) install_h
 200 
 201 sysheaders: FRC
 202         @cd uts; pwd; $(MAKE) install_h
 203 
 204 cmdheaders: FRC
 205         @cd cmd/fm; pwd; $(MAKE) install_h
 206         @cd cmd/mdb; pwd; $(MAKE) install_h
 207 
 208 check:  $(CHKHDRSUBDIRS) $(CHKMFSTSUBDIRS)
 209 
 210 #
 211 # Cross-reference customization: skip all of the subdirectories that
 212 # don't contain actual source code.
 213 #

 214 XRPRUNE = pkg prototypes
 215 XRINCDIRS = uts/common head ucbhead

 216 
 217 cscope.out tags: FRC
 218         $(XREF) -f -x $@
 219 
 220 FRC:
 221 
 222 #
 223 # Targets for reporting compiler versions; nightly uses these.
 224 #
 225 
 226 cc-version:
 227         @if $($(MACH)_CC) -_versions >/dev/null 2>/dev/null; then \
 228                 $(ECHO) 32-bit compiler;                        \
 229                 $(ECHO) $($(MACH)_CC);                          \
 230                 $($(MACH)_CC) -_versions 2>&1 |                  \
 231                     $(EGREP) '^(cw|cc|gcc|primary|shadow)';     \
 232         else                                                    \
 233                 __COMPILER=`$($(MACH)_CC) -_compiler 2>/dev/null || $(TRUE)`;\
 234                 if [ -z "$$__COMPILER" ]; then                  \
 235                         $(ECHO) No 32-bit compiler found;       \