174 # re-create configure dir |
174 # re-create configure dir |
175 $(MKDIR) $(@D) |
175 $(MKDIR) $(@D) |
176 # Clone SOURCE_DIR |
176 # Clone SOURCE_DIR |
177 $(CLONEY) $(SOURCE_DIR) $(@D) |
177 $(CLONEY) $(SOURCE_DIR) $(@D) |
178 # clenup of clone |
178 # clenup of clone |
179 (cd $(@D) ; $(ENV) $(WAF_PATH) waf distclean $(WAFOPT1) ) |
179 (cd $(@D) ; $(ENV) - $(WAF_PATH) waf distclean $(WAFOPT1) ) |
180 $(TOUCH) $@ |
180 $(TOUCH) $@ |
181 |
181 |
182 # Configure of Samba + Winbind. |
182 # Configure of Samba + Winbind. |
183 $(BUILD_DIR_SMB)/.configured: $(BUILD_DIR_SMB)/.BDprep |
183 $(BUILD_DIR_SMB)/.configured: $(BUILD_DIR_SMB)/.BDprep |
184 (cd $(@D) ; $(ENV) $(WAF_PATH) $(CONFIGURE_ENV) $(CONFIGURE_ENV.$(BITS)) \ |
184 (cd $(@D) ; $(ENV) - $(WAF_PATH) $(CONFIGURE_ENV) $(CONFIGURE_ENV.$(BITS)) \ |
185 waf configure $(WAFOPT1) $(CONFIGURE_OPTIONS) $(CONFIGURE_OPTIONS.$(BITS)) ) |
185 waf configure $(WAFOPT1) $(CONFIGURE_OPTIONS) $(CONFIGURE_OPTIONS.$(BITS)) ) |
186 $(TOUCH) $@ |
186 $(TOUCH) $@ |
187 |
187 |
188 # Depends on S12-only libraries from Desktop to build. |
188 # Depends on S12-only libraries from Desktop to build. |
189 ifeq ($(BUILD_TYPE), evaluation) |
189 ifeq ($(BUILD_TYPE), evaluation) |
194 PUBLISH_STAMP= |
194 PUBLISH_STAMP= |
195 else |
195 else |
196 |
196 |
197 # Build of Samba + Winbind. |
197 # Build of Samba + Winbind. |
198 $(BUILD_DIR_SMB)/.built: $(BUILD_DIR_SMB)/.configured |
198 $(BUILD_DIR_SMB)/.built: $(BUILD_DIR_SMB)/.configured |
199 (cd $(@D) ; $(ENV) $(WAF_PATH) LD_EXEC_OPTIONS="$(LD_EXEC_OPTIONS)" waf build $(WAFOPT1) ) |
199 (cd $(@D) ; $(ENV) - $(WAF_PATH) LD_EXEC_OPTIONS="$(LD_EXEC_OPTIONS)" waf build $(WAFOPT1) ) |
200 $(TOUCH) $@ |
200 $(TOUCH) $@ |
201 |
201 |
202 # Install of Samba + Winbind. |
202 # Install of Samba + Winbind. |
203 $(BUILD_DIR_SMB)/.installed: $(BUILD_DIR_SMB)/.built |
203 $(BUILD_DIR_SMB)/.installed: $(BUILD_DIR_SMB)/.built |
204 (cd $(@D) ; $(ENV) $(WAF_PATH) LD_EXEC_OPTIONS="$(LD_EXEC_OPTIONS)" waf install $(WAFOPT1) --destdir=$(PROTO_DIR) ) |
204 (cd $(@D) ; $(ENV) - $(WAF_PATH) LD_EXEC_OPTIONS="$(LD_EXEC_OPTIONS)" waf install $(WAFOPT1) --destdir=$(PROTO_DIR) ) |
205 $(PYTHON) -m compileall $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES)/ |
205 $(PYTHON) -m compileall $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES)/ |
206 $(TOUCH) $@ |
206 $(TOUCH) $@ |
207 |
207 |
208 # Prepare build dir for Winbind (without Samba) for different bitness. |
208 # Prepare build dir for Winbind (without Samba) for different bitness. |
209 $(BUILD_DIR_WINB)/.BDprep: $(SOURCE_DIR)/.prep |
209 $(BUILD_DIR_WINB)/.BDprep: $(SOURCE_DIR)/.prep |
210 # re-create configure dir |
210 # re-create configure dir |
211 $(MKDIR) $(@D) |
211 $(MKDIR) $(@D) |
212 # Clone SOURCE_DIR |
212 # Clone SOURCE_DIR |
213 $(CLONEY) $(SOURCE_DIR) $(@D) |
213 $(CLONEY) $(SOURCE_DIR) $(@D) |
214 # clenup of clone |
214 # clenup of clone |
215 (cd $(@D) ; $(ENV) $(WAF_PATH) waf distclean $(WAFOPT1) ) |
215 (cd $(@D) ; $(ENV) - $(WAF_PATH) waf distclean $(WAFOPT1) ) |
216 $(TOUCH) $@ |
216 $(TOUCH) $@ |
217 |
217 |
218 # Configure of Winbind (without Samba) for different bitness. |
218 # Configure of Winbind (without Samba) for different bitness. |
219 $(BUILD_DIR_WINB)/.configured: $(BUILD_DIR_WINB)/.BDprep |
219 $(BUILD_DIR_WINB)/.configured: $(BUILD_DIR_WINB)/.BDprep |
220 (cd $(@D) ; $(ENV) $(WAF_PATH) $(CONFIGURE_ENV) $(CONFIGURE_ENV.$(BITS)) \ |
220 (cd $(@D) ; $(ENV) - $(WAF_PATH) $(CONFIGURE_ENV) $(CONFIGURE_ENV.$(BITS)) \ |
221 waf configure $(WAFOPT1) $(CONFIGURE_OPTIONS) $(CONFIGURE_OPTIONS.$(BITS)) ) |
221 waf configure $(WAFOPT1) $(CONFIGURE_OPTIONS) $(CONFIGURE_OPTIONS.$(BITS)) ) |
222 $(TOUCH) $@ |
222 $(TOUCH) $@ |
223 |
223 |
224 # Build of Winbind (without Samba) for different bitness. |
224 # Build of Winbind (without Samba) for different bitness. |
225 WB_TARGETS = --targets=nss_winbind,pamwinbind |
225 WB_TARGETS = --targets=nss_winbind,pamwinbind |
226 $(BUILD_DIR_WINB)/.built: $(BUILD_DIR_WINB)/.configured |
226 $(BUILD_DIR_WINB)/.built: $(BUILD_DIR_WINB)/.configured |
227 (cd $(@D) ; $(ENV) $(WAF_PATH) LD_EXEC_OPTIONS="$(LD_EXEC_OPTIONS)" waf build $(WAFOPT1) \ |
227 (cd $(@D) ; $(ENV) - $(WAF_PATH) LD_EXEC_OPTIONS="$(LD_EXEC_OPTIONS)" waf build $(WAFOPT1) \ |
228 $(WB_TARGETS) ) |
228 $(WB_TARGETS) ) |
229 $(TOUCH) $@ |
229 $(TOUCH) $@ |
230 |
230 |
231 # Installf Winbind (without Samba) for different bitness. |
231 # Installf Winbind (without Samba) for different bitness. |
232 $(BUILD_DIR_WINB)/.installed: $(BUILD_DIR_WINB)/.built |
232 $(BUILD_DIR_WINB)/.installed: $(BUILD_DIR_WINB)/.built |