changeset 417:53ceb7208ffc

Move local tools objects to ZROUTER_OBJ/... dir.
author Aleksandr Rybalko <ray@ddteam.net>
date Fri, 14 Sep 2012 01:48:26 +0300
parents c46079649662
children 370cf0e347e3
files share/mk/zrouter.local.tools.mk
diffstat 1 files changed, 16 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/share/mk/zrouter.local.tools.mk	Fri Sep 14 00:25:01 2012 +0300
+++ b/share/mk/zrouter.local.tools.mk	Fri Sep 14 01:48:26 2012 +0300
@@ -9,34 +9,34 @@
 	mkdir -p ${ZTOOLS_PATH}
 
 ${ZTOOLS_PATH}/oldlzma:	${ZTOOLS_PATH}_dir
-	cd ${ZROUTER_ROOT}/tools/oldlzma; \
-	    MAKEOBJDIRPREFIX=/usr/obj/ ${MAKE} ${ZTOOLS_INSTALL_VAR} all install
+	cd ${ZROUTER_ROOT}/tools/oldlzma; mkdir -p ${ZROUTER_OBJ}/`pwd`; \
+	    MAKEOBJDIRPREFIX=${ZROUTER_OBJ}/ ${MAKE} ${ZTOOLS_INSTALL_VAR} all install
 
 ${ZTOOLS_PATH}/packimage:	${ZTOOLS_PATH}_dir
-	cd ${ZROUTER_ROOT}/tools/packimage ; \
-	    MAKEOBJDIRPREFIX=/usr/obj/ ${MAKE} ${ZTOOLS_INSTALL_VAR} all install
+	cd ${ZROUTER_ROOT}/tools/packimage; mkdir -p ${ZROUTER_OBJ}/`pwd`;  \
+	    MAKEOBJDIRPREFIX=${ZROUTER_OBJ}/ ${MAKE} ${ZTOOLS_INSTALL_VAR} all install
 
 ${ZTOOLS_PATH}/trx:	${ZTOOLS_PATH}_dir
-	cd ${ZROUTER_ROOT}/tools/trx; \
-	    MAKEOBJDIRPREFIX=/usr/obj/ ${MAKE} ${ZTOOLS_INSTALL_VAR} all install
+	cd ${ZROUTER_ROOT}/tools/trx; mkdir -p ${ZROUTER_OBJ}/`pwd`;  \
+	    MAKEOBJDIRPREFIX=${ZROUTER_OBJ}/ ${MAKE} ${ZTOOLS_INSTALL_VAR} all install
 
 ${ZTOOLS_PATH}/asustrx:	${ZTOOLS_PATH}_dir
-	cd ${ZROUTER_ROOT}/tools/asustrx; \
-	    MAKEOBJDIRPREFIX=/usr/obj/ ${MAKE} ${ZTOOLS_INSTALL_VAR} all install
+	cd ${ZROUTER_ROOT}/tools/asustrx; mkdir -p ${ZROUTER_OBJ}/`pwd`;  \
+	    MAKEOBJDIRPREFIX=${ZROUTER_OBJ}/ ${MAKE} ${ZTOOLS_INSTALL_VAR} all install
 
 ${ZTOOLS_PATH}/make_dlink_dsr_image:	${ZTOOLS_PATH}_dir
-	cd ${ZROUTER_ROOT}/tools/make_dlink_dsr_image; \
-	    MAKEOBJDIRPREFIX=/usr/obj/ ${MAKE} ${ZTOOLS_INSTALL_VAR} all install
+	cd ${ZROUTER_ROOT}/tools/make_dlink_dsr_image; mkdir -p ${ZROUTER_OBJ}/`pwd`;  \
+	    MAKEOBJDIRPREFIX=${ZROUTER_OBJ}/ ${MAKE} ${ZTOOLS_INSTALL_VAR} all install
 
 ${ZTOOLS_PATH}/ubnt-mkfwimage:	${ZTOOLS_PATH}_dir
-	cd ${ZROUTER_ROOT}/tools/ubnt-mkfwimage; \
-	    MAKEOBJDIRPREFIX=/usr/obj/ ${MAKE} ${ZTOOLS_INSTALL_VAR} all install
+	cd ${ZROUTER_ROOT}/tools/ubnt-mkfwimage; mkdir -p ${ZROUTER_OBJ}/`pwd`;  \
+	    MAKEOBJDIRPREFIX=${ZROUTER_OBJ}/ ${MAKE} ${ZTOOLS_INSTALL_VAR} all install
 
 ${ZTOOLS_PATH}/uboot_mkimage:	${ZTOOLS_PATH}_dir
-	cd ${ZROUTER_ROOT}/tools/uboot_mkimage; \
-	    MAKEOBJDIRPREFIX=/usr/obj/ ${MAKE} ${ZTOOLS_INSTALL_VAR} all install
+	cd ${ZROUTER_ROOT}/tools/uboot_mkimage; mkdir -p ${ZROUTER_OBJ}/`pwd`;  \
+	    MAKEOBJDIRPREFIX=${ZROUTER_OBJ}/ ${MAKE} ${ZTOOLS_INSTALL_VAR} all install
 
 ${ZTOOLS_PATH}/mktplinkfw:	${ZTOOLS_PATH}_dir
-	cd ${ZROUTER_ROOT}/tools/mktplinkfw; \
-	    MAKEOBJDIRPREFIX=/usr/obj/ ${MAKE} ${ZTOOLS_INSTALL_VAR} all install
+	cd ${ZROUTER_ROOT}/tools/mktplinkfw; mkdir -p ${ZROUTER_OBJ}/`pwd`;  \
+	    MAKEOBJDIRPREFIX=${ZROUTER_OBJ}/ ${MAKE} ${ZTOOLS_INSTALL_VAR} all install