Author: mpiulachs
Date: Sat May 17 04:56:15 2008
New Revision: 33551
URL:
http://svn.reactos.org/svn/reactos?rev=33551&view=rev
Log:
Add ROS_BUILDENGINE variable to determine the location of rbuild
- Allows using an rbuild executable other than the one found in the same source tree
(tools\rbuild)
Modified:
trunk/reactos/Makefile
Modified: trunk/reactos/Makefile
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/Makefile?rev=33551&r1=…
==============================================================================
--- trunk/reactos/Makefile [iso-8859-1] (original)
+++ trunk/reactos/Makefile [iso-8859-1] Sat May 17 04:56:15 2008
@@ -125,6 +125,9 @@
#
# ROS_AUTOMAKE
# Alternate name of makefile.auto
+#
+# ROS_BUILDENGINE
+# The Build engine to be used. The variable defaults to rbuild (RBUILD_TARGET)
#
# check for versions of make that don't have features we need...
@@ -395,14 +398,19 @@
$(BUILDNO_H) \
$(GENDIB_DIB_FILES) \
$(NCI_SERVICE_FILES)
+
ifeq ($(ARCH),powerpc)
PREAUTO += $(OFW_INTERFACE_SERVICE_FILES) $(PPCMMU_TARGETS)
endif
-$(ROS_AUTOMAKE): $(RBUILD_TARGET) $(XMLBUILDFILES) | $(PREAUTO)
+ifeq ($(ROS_BUILDENGINE),)
+ROS_BUILDENGINE=$(RBUILD_TARGET)
+endif
+
+$(ROS_AUTOMAKE): $(ROS_BUILDENGINE) $(XMLBUILDFILES) | $(PREAUTO)
${mkdir} $(OUTPUT_)media$(SEP)inf 2>$(NUL)
$(ECHO_RBUILD)
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) mingw
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) mingw
world: all bootcd livecd
@@ -435,143 +443,143 @@
$(Q)$(RGENSTAT_TARGET) apistatus.lst apistatus.xml
.PHONY: cb
-cb: $(RBUILD_TARGET)
- $(ECHO_RBUILD)
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) cb
+cb: $(ROS_BUILDENGINE)
+ $(ECHO_RBUILD)
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) cb
.PHONY: msbuild
-msbuild: $(RBUILD_TARGET)
- $(ECHO_RBUILD)
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) msbuild
+msbuild: $(ROS_BUILDENGINE)
+ $(ECHO_RBUILD)
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) msbuild
.PHONY: msbuild_clean
-msbuild_clean: $(RBUILD_TARGET)
- $(ECHO_RBUILD)
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c msbuild
+msbuild_clean: $(ROS_BUILDENGINE)
+ $(ECHO_RBUILD)
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c msbuild
.PHONY: depmap
-depmap: $(RBUILD_TARGET)
- $(ECHO_RBUILD)
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) depmap
+depmap: $(ROS_BUILDENGINE)
+ $(ECHO_RBUILD)
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) depmap
.PHONY: vreport
-vreport:$(RBUILD_TARGET)
- $(ECHO_RBUILD)
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) vreport
+vreport:$(ROS_BUILDENGINE)
+ $(ECHO_RBUILD)
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) vreport
.PHONY: msvc
-msvc: $(RBUILD_TARGET)
- $(ECHO_RBUILD)
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) msvc
+msvc: $(ROS_BUILDENGINE)
+ $(ECHO_RBUILD)
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) msvc
.PHONY: msvc6
-msvc6: $(RBUILD_TARGET)
- $(ECHO_RBUILD)
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs6.00 -voversionconfiguration
msvc
+msvc6: $(ROS_BUILDENGINE)
+ $(ECHO_RBUILD)
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs6.00
-voversionconfiguration msvc
.PHONY: msvc7
-msvc7: $(RBUILD_TARGET)
- $(ECHO_RBUILD)
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.00 -voversionconfiguration
msvc
+msvc7: $(ROS_BUILDENGINE)
+ $(ECHO_RBUILD)
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.00
-voversionconfiguration msvc
.PHONY: msvc71
-msvc71: $(RBUILD_TARGET)
- $(ECHO_RBUILD)
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.10 -voversionconfiguration
msvc
+msvc71: $(ROS_BUILDENGINE)
+ $(ECHO_RBUILD)
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.10
-voversionconfiguration msvc
.PHONY: msvc8
-msvc8: $(RBUILD_TARGET)
- $(ECHO_RBUILD)
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs8.00 -voversionconfiguration
msvc
+msvc8: $(ROS_BUILDENGINE)
+ $(ECHO_RBUILD)
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs8.00
-voversionconfiguration msvc
.PHONY: msvc9
-msvc9: $(RBUILD_TARGET)
- $(ECHO_RBUILD)
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs9.00 -voversionconfiguration
msvc
+msvc9: $(ROS_BUILDENGINE)
+ $(ECHO_RBUILD)
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs9.00
-voversionconfiguration msvc
.PHONY: msvc6_clean
-msvc6_clean: $(RBUILD_TARGET)
- $(ECHO_RBUILD)
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs6.00
-voversionconfiguration msvc
+msvc6_clean: $(ROS_BUILDENGINE)
+ $(ECHO_RBUILD)
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs6.00
-voversionconfiguration msvc
.PHONY: msvc7_clean
-msvc7_clean: $(RBUILD_TARGET)
- $(ECHO_RBUILD)
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs7.00
-voversionconfiguration msvc
+msvc7_clean: $(ROS_BUILDENGINE)
+ $(ECHO_RBUILD)
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs7.00
-voversionconfiguration msvc
.PHONY: msvc71_clean
-msvc71_clean: $(RBUILD_TARGET)
- $(ECHO_RBUILD)
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs7.10
-voversionconfiguration msvc
+msvc71_clean: $(ROS_BUILDENGINE)
+ $(ECHO_RBUILD)
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs7.10
-voversionconfiguration msvc
.PHONY: msvc8_clean
-msvc8_clean: $(RBUILD_TARGET)
- $(ECHO_RBUILD)
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs8.00
-voversionconfiguration msvc
+msvc8_clean: $(ROS_BUILDENGINE)
+ $(ECHO_RBUILD)
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs8.00
-voversionconfiguration msvc
.PHONY: msvc9_clean
-msvc9_clean: $(RBUILD_TARGET)
- $(ECHO_RBUILD)
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs9.00
-voversionconfiguration msvc
+msvc9_clean: $(ROS_BUILDENGINE)
+ $(ECHO_RBUILD)
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs9.00
-voversionconfiguration msvc
.PHONY: msvc_clean
-msvc_clean: $(RBUILD_TARGET)
- $(ECHO_RBUILD)
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c msvc
+msvc_clean: $(ROS_BUILDENGINE)
+ $(ECHO_RBUILD)
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c msvc
.PHONY: msvc_clean_all
-msvc_clean_all: $(RBUILD_TARGET)
- $(ECHO_RBUILD)
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs6.00
-voversionconfiguration msvc
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs7.00
-voversionconfiguration msvc
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs7.10
-voversionconfiguration msvc
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs8.10
-voversionconfiguration msvc
+msvc_clean_all: $(ROS_BUILDENGINE)
+ $(ECHO_RBUILD)
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs6.00
-voversionconfiguration msvc
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs7.00
-voversionconfiguration msvc
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs7.10
-voversionconfiguration msvc
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs8.10
-voversionconfiguration msvc
.PHONY: msvc7_install_debug
-msvc7_install_debug: $(RBUILD_TARGET)
- $(ECHO_RBUILD)
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.00 -vcdebug
-voversionconfiguration msvc
+msvc7_install_debug: $(ROS_BUILDENGINE)
+ $(ECHO_RBUILD)
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.00 -vcdebug
-voversionconfiguration msvc
.PHONY: msvc7_install_release
-msvc7_install_release: $(RBUILD_TARGET)
- $(ECHO_RBUILD)
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.00 -vcrelease
-voversionconfiguration msvc
+msvc7_install_release: $(ROS_BUILDENGINE)
+ $(ECHO_RBUILD)
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.00 -vcrelease
-voversionconfiguration msvc
.PHONY: msvc7_install_speed
-msvc7_install_speed: $(RBUILD_TARGET)
- $(ECHO_RBUILD)
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.00 -vcspeed
-voversionconfiguration msvc
+msvc7_install_speed: $(ROS_BUILDENGINE)
+ $(ECHO_RBUILD)
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.00 -vcspeed
-voversionconfiguration msvc
.PHONY: msvc71_install_debug
-msvc71_install_debug: $(RBUILD_TARGET)
- $(ECHO_RBUILD)
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.10 -vcdebug
-voversionconfiguration msvc
+msvc71_install_debug: $(ROS_BUILDENGINE)
+ $(ECHO_RBUILD)
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.10 -vcdebug
-voversionconfiguration msvc
.PHONY: msvc71_install_release
-msvc71_install_release: $(RBUILD_TARGET)
- $(ECHO_RBUILD)
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.10 -vcrelease
-voversionconfiguration msvc
+msvc71_install_release: $(ROS_BUILDENGINE)
+ $(ECHO_RBUILD)
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.10 -vcrelease
-voversionconfiguration msvc
.PHONY: msvc71_install_speed
-msvc71_install_speed: $(RBUILD_TARGET)
- $(ECHO_RBUILD)
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.10 -vcspeed
-voversionconfiguration msvc
+msvc71_install_speed: $(ROS_BUILDENGINE)
+ $(ECHO_RBUILD)
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.10 -vcspeed
-voversionconfiguration msvc
.PHONY: msvc8_install_debug
-msvc8_install_debug: $(RBUILD_TARGET)
- $(ECHO_RBUILD)
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs8.00 -vcdebug
-voversionconfiguration msvc
+msvc8_install_debug: $(ROS_BUILDENGINE)
+ $(ECHO_RBUILD)
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs8.00 -vcdebug
-voversionconfiguration msvc
.PHONY: msvc8_install_release
-msvc8_install_release: $(RBUILD_TARGET)
- $(ECHO_RBUILD)
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs8.00 -vcrelease
-voversionconfiguration msvc
+msvc8_install_release: $(ROS_BUILDENGINE)
+ $(ECHO_RBUILD)
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs8.00 -vcrelease
-voversionconfiguration msvc
.PHONY: msvc8_install_speed
-msvc8_install_speed: $(RBUILD_TARGET)
- $(ECHO_RBUILD)
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs8.00 -vcspeed
-voversionconfiguration msvc
+msvc8_install_speed: $(ROS_BUILDENGINE)
+ $(ECHO_RBUILD)
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs8.00 -vcspeed
-voversionconfiguration msvc
.PHONY: makefile_auto_clean
makefile_auto_clean:
@@ -581,6 +589,6 @@
clean: makefile_auto_clean
.PHONY: depends
-depends: $(RBUILD_TARGET)
- $(ECHO_RBUILD)
- $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) mingw
+depends: $(ROS_BUILDENGINE)
+ $(ECHO_RBUILD)
+ $(Q)$(ROS_BUILDENGINE) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) mingw