Print this page
4028 remove CLOSED_IS_PRESENT


 113 
 114 stage-licenses: install2
 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
 157 
 158 $(SUBDIRS) head pkg: FRC
 159         @cd $@; pwd; $(MAKE) $(TARGET)
 160 
 161 # librpcsvc has a dependency on headers installed by
 162 # userheaders, hence the .WAIT before libheaders.
 163 sgs: rootdirs .WAIT sysheaders userheaders .WAIT \
 164         libheaders cmdheaders
 165 
 166 #
 167 # Top-level setup target to setup the development environment that includes
 168 # headers, tools and generated mapfiles.  For open-only builds (i.e.: source




 113 
 114 stage-licenses: install2
 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 [ ! -d "$$CLOSED_ROOT" ]; then \
 134                 $(ECHO) "Error: ON_CLOSED_BINS must point to closed" \
 135                     "binaries."; \
 136                 $(ECHO) "root_$(MACH)$${RELEASE_BUILD+-nd} is not" \
 137                     "present in $$ON_CLOSED_BINS."; \
 138                 exit 1; \
 139         fi; \
 140         $(ECHO) "Copying closed binaries from $$CLOSED_ROOT"; \
 141         (cd $$CLOSED_ROOT; \
 142             $(TAR) cfX - $(CODEMGR_WS)/exception_lists/closed-bins .) | \
 143             (cd $(ROOT); $(TAR) xBpf -); \
 144         ( cd $(ROOT); $(CTFSTRIP) $$(cd $$CLOSED_ROOT; $(FIND) \
 145             ./kernel ./usr/kernel ./platform/*/kernel -type f -a -perm -u+x | \
 146             $(EGREP) -vf $(CODEMGR_WS)/exception_lists/closed-bins) )

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