diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-03-07 10:55:50 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-03-07 10:55:50 +0100 |
commit | 5101b72fac2c9a6971a0c7d2fe6bbd318e9678ab (patch) | |
tree | 73e65e00e46546c46a0bcd9f0d81173da288f2c6 /tools/mksh | |
parent | 8b0401f6010bb6318fe86f6a6eb11098a0952903 (diff) |
use mksh in tools, too
Diffstat (limited to 'tools/mksh')
-rw-r--r-- | tools/mksh/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tools/mksh/Makefile b/tools/mksh/Makefile new file mode 100644 index 000000000..8cb7c29b7 --- /dev/null +++ b/tools/mksh/Makefile @@ -0,0 +1,30 @@ +# 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='${TARGET_CC}' CFLAGS='${TARGET_CFLAGS}' \ + CPPFLAGS='${TARGET_CPPFLAGS}' LDFLAGS='${TARGET_LDFLAGS}' \ + 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 |