view share/mk/zrouter.base.tools.mk @ 504:617dc632a646

Build libnetbsd.a as the dependency of makefs tool.
author Aleksandr Rybalko <ray@ddteam.net>
date Wed, 01 Oct 2014 01:17:17 +0300
parents 928bc7646aed
children 209db861b703
line wrap: on
line source

fstype=cd9660
TDIR=/tmp/makefs_${fstype}_test

#makefs_${fstype}:
#	# Test if makefs accept ${fstype} filesystem
#	STATUS=`mkdir -p ${TDIR}/fsroot \
#	touch ${TDIR}/fsroot/test.file \
#	makefs -t ${fstype} ${TDIR}/fsroot.${fstype} ${TDIR}/fsroot || echo MAKEFS_FAIL=${fstype} \
#	rm -rf ${TDIR}`
#	echo ${STATUS}


makefs_ffs:	${ZTOOLS_PATH}/makefs

makefs_cd9660:	${ZTOOLS_PATH}/makefs

libnetbsd_a:
	cd ${FREEBSD_SRC_TREE}/lib/libnetbsd; \
	make MAKEOBJDIRPREFIX=${MAKEOBJDIRPREFIX} DESTDIR=${ZTOOLS_PATH}

${ZTOOLS_PATH}/makefs:	libnetbsd_a
	mkdir -p ${ZTOOLS_PATH}
	cd ${FREEBSD_SRC_TREE}/usr.sbin/makefs; \
	make MAKEOBJDIRPREFIX=${MAKEOBJDIRPREFIX} DESTDIR=${ZTOOLS_PATH}; \
	make MAKEOBJDIRPREFIX=${MAKEOBJDIRPREFIX} DESTDIR=${ZTOOLS_PATH} BINDIR= BINOWN=${OWN} BINGRP=${GRP} WITHOUT_MAN=yes WITHOUT_INFO=yes WITHOUT_NLS=yes install

${ZTOOLS_PATH}/mkulzma:
	mkdir -p ${ZTOOLS_PATH}
	cd ${FREEBSD_SRC_TREE}/usr.bin/mkulzma; \
	make MAKEOBJDIRPREFIX=${MAKEOBJDIRPREFIX} DESTDIR=${ZTOOLS_PATH}; \
	make MAKEOBJDIRPREFIX=${MAKEOBJDIRPREFIX} DESTDIR=${ZTOOLS_PATH} BINDIR= BINOWN=${OWN} BINGRP=${GRP} WITHOUT_MAN=yes WITHOUT_INFO=yes WITHOUT_NLS=yes install

${ZTOOLS_PATH}/mkuzip:
	mkdir -p ${ZTOOLS_PATH}
	cd ${FREEBSD_SRC_TREE}/usr.bin/mkuzip; \
	make MAKEOBJDIRPREFIX=${MAKEOBJDIRPREFIX} DESTDIR=${ZTOOLS_PATH}; \
	make MAKEOBJDIRPREFIX=${MAKEOBJDIRPREFIX} DESTDIR=${ZTOOLS_PATH} BINDIR= BINOWN=${OWN} BINGRP=${GRP} WITHOUT_MAN=yes WITHOUT_INFO=yes WITHOUT_NLS=yes install