Makefile 842 B

1234567891011121314151617181920212223242526272829
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:= mksh
  5. PKG_VERSION:= 49
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= e8c205cac72c3dc8540bbc3897421422
  8. PKG_SITES:= ${MASTER_SITE_MIRBSD:distfiles/=dist/mir/mksh/}
  9. DISTFILES= ${PKG_NAME}-R${PKG_VERSION}.tgz
  10. WRKDIST= ${WRKDIR}/${PKG_NAME}
  11. include ../rules.mk
  12. install: ${STAGING_HOST_DIR}/usr/bin/mksh
  13. $(WRKBUILD)/.compiled: ${WRKDIST}/.prepared
  14. cd ${WRKBUILD} && CC='${CC_FOR_BUILD}' CFLAGS='${CFLAGS_FOR_BUILD}' \
  15. HAVE_CAN_FSTACKPROTECTORALL=0 \
  16. TARGET_OS=Linux ${BASH} ${WRKSRC}/Build.sh -Q -r -c lto
  17. touch $@
  18. ${STAGING_HOST_DIR}/usr/bin/mksh: $(WRKBUILD)/.compiled
  19. ${INSTALL_BIN} ${WRKBUILD}/mksh \
  20. ${STAGING_HOST_DIR}/usr/bin
  21. include $(TOPDIR)/mk/tools.mk