diff options
Diffstat (limited to 'tools/mksh')
-rw-r--r-- | tools/mksh/Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tools/mksh/Makefile b/tools/mksh/Makefile new file mode 100644 index 000000000..2c912e52b --- /dev/null +++ b/tools/mksh/Makefile @@ -0,0 +1,29 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(TOPDIR)/rules.mk + +PKG_NAME:= mksh +PKG_VERSION:= 49 +PKG_RELEASE:= 1 +PKG_MD5SUM:= e8c205cac72c3dc8540bbc3897421422 +PKG_SITES:= ${MASTER_SITE_MIRBSD:distfiles/=dist/mir/mksh/} + +DISTFILES= ${PKG_NAME}-R${PKG_VERSION}.tgz +WRKDIST= ${WRKDIR}/${PKG_NAME} + +include ../rules.mk + +install: ${STAGING_HOST_DIR}/usr/bin/mksh + +$(WRKBUILD)/.compiled: ${WRKDIST}/.prepared + cd ${WRKBUILD} && CC='${CC_FOR_BUILD}' CFLAGS='${CFLAGS_FOR_BUILD}' \ + HAVE_CAN_FSTACKPROTECTORALL=0 \ + TARGET_OS=Linux ${BASH} ${WRKSRC}/Build.sh -Q -r -c lto + touch $@ + +${STAGING_HOST_DIR}/usr/bin/mksh: $(WRKBUILD)/.compiled + ${INSTALL_BIN} ${WRKBUILD}/mksh \ + ${STAGING_HOST_DIR}/usr/bin + +include $(TOPDIR)/mk/tools.mk |