Print this page
4027 remove CLOSED_BUILD


 115         @cd pkg; pwd; $(MAKE) stage-licenses
 116 
 117 install1: mapfiles closedbins sgs
 118 
 119 install2: install1 $(SUBDIRS)
 120 
 121 _msg: _msgdirs rootdirs install2 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 clobber: $(SUBDIRS) head pkg
 130 
 131 closedbins: bldtools $(ROOTDIRS) FRC
 132         @CLOSED_ROOT="$$ON_CLOSED_BINS/root_$(MACH)$${RELEASE_BUILD+-nd}"; \
 133         if [ "$$CLOSED_IS_PRESENT" = no ]; then \
 134                 if [ ! -d "$$CLOSED_ROOT" ]; then \
 135                         $(ECHO) "Error: if closed sources are not present," \
 136                             "ON_CLOSED_BINS must point to closed binaries."; \
 137                         $(ECHO) "root_$(MACH)$${RELEASE_BUILD+-nd} is not" \
 138                             "present in $$ON_CLOSED_BINS."; \
 139                         exit 1; \
 140                 fi; \
 141                 $(ECHO) "Copying closed binaries from $$CLOSED_ROOT"; \
 142                 (cd $$CLOSED_ROOT; \
 143                     $(TAR) cfX - $(CODEMGR_WS)/exception_lists/closed-bins .) | \
 144                     (cd $(ROOT); $(TAR) xBpf -); \
 145                 ( cd $(ROOT); $(CTFSTRIP) $$(cd $$CLOSED_ROOT; $(FIND) \
 146                     ./kernel ./usr/kernel ./platform/*/kernel -type f -a -perm -u+x | \
 147                     $(EGREP) -vf $(CODEMGR_WS)/exception_lists/closed-bins) ); \
 148         fi
 149 
 150 #
 151 # Declare what parts can be built in parallel
 152 # DUMMY at the end is used in case macro expansion produces an empty string to
 153 # prevent everything going in parallel
 154 #
 155 .PARALLEL: $(PARALLEL_HEADERS) DUMMY
 156 .PARALLEL: $(PARALLEL_DIRS) DUMMY


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




 115         @cd pkg; pwd; $(MAKE) stage-licenses
 116 
 117 install1: mapfiles closedbins sgs
 118 
 119 install2: install1 $(SUBDIRS)
 120 
 121 _msg: _msgdirs rootdirs install2 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 clobber: $(SUBDIRS) head pkg
 130 
 131 closedbins: bldtools $(ROOTDIRS) FRC
 132         @CLOSED_ROOT="$$ON_CLOSED_BINS/root_$(MACH)$${RELEASE_BUILD+-nd}"; \
 133         if [ "$$CLOSED_IS_PRESENT" = no ]; then \
 134                 if [ ! -d "$$CLOSED_ROOT" ]; then \
 135                         $(ECHO) "Error: ON_CLOSED_BINS must point to closed" \
 136                             "binaries."; \
 137                         $(ECHO) "root_$(MACH)$${RELEASE_BUILD+-nd} is not" \
 138                             "present in $$ON_CLOSED_BINS."; \
 139                         exit 1; \
 140                 fi; \
 141                 $(ECHO) "Copying closed binaries from $$CLOSED_ROOT"; \
 142                 (cd $$CLOSED_ROOT; \
 143                     $(TAR) cfX - $(CODEMGR_WS)/exception_lists/closed-bins .) | \
 144                     (cd $(ROOT); $(TAR) xBpf -); \
 145                 ( cd $(ROOT); $(CTFSTRIP) $$(cd $$CLOSED_ROOT; $(FIND) \
 146                     ./kernel ./usr/kernel ./platform/*/kernel -type f -a -perm -u+x | \
 147                     $(EGREP) -vf $(CODEMGR_WS)/exception_lists/closed-bins) ); \
 148         fi
 149 
 150 #
 151 # Declare what parts can be built in parallel
 152 # DUMMY at the end is used in case macro expansion produces an empty string to
 153 # prevent everything going in parallel
 154 #
 155 .PARALLEL: $(PARALLEL_HEADERS) DUMMY
 156 .PARALLEL: $(PARALLEL_DIRS) DUMMY


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

 211 XRPRUNE = pkg prototypes
 212 XRINCDIRS = uts/common head ucbhead

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