Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= mksh
  5. PKG_VERSION:= 50d
  6. PKG_RELEASE:= 3
  7. PKG_HASH:= a2268826a1463959ff7b7979fbf9176f1298400ecc24ae13d6337eee5c63f982
  8. PKG_DESCR:= mirbsd korn shell
  9. PKG_SECTION:= base/shells
  10. PKG_URL:= http://www.mirbsd.org/mksh.htm
  11. PKG_SITES:= $(MASTER_SITE_MIRBSD:distfiles/=dist/mir/mksh/)
  12. PKG_DFLT_MKSH:= y if (!ADK_TOOLCHAIN_ONLY && !ADK_TARGET_UCLINUX)
  13. DISTFILES:= $(PKG_NAME)-R$(PKG_VERSION).tgz
  14. WRKDIST= $(WRKDIR)/$(PKG_NAME)
  15. include $(ADK_TOPDIR)/mk/host.mk
  16. include $(ADK_TOPDIR)/mk/package.mk
  17. $(eval $(call HOST_template,MKSH,mksh,$(PKG_VERSION)-$(PKG_RELEASE)))
  18. $(eval $(call PKG_template,MKSH,mksh,$(PKG_VERSION)-$(PKG_RELEASE),,$(PKG_DESCR),$(PKG_SECTION)))
  19. TARGET_CPPFLAGS+= -DMKSHRC_PATH=\"/etc/mkshrc\"
  20. HOST_STYLE:= manual
  21. CONFIG_STYLE:= manual
  22. BUILD_STYLE:= manual
  23. INSTALL_STYLE:= manual
  24. host-build:
  25. cd $(WRKBUILD) && $(BASH) $(WRKSRC)/Build.sh -Q -r -c lto
  26. mksh-hostinstall:
  27. $(INSTALL_DIR) $(STAGING_HOST_DIR)/usr/bin
  28. $(INSTALL_BIN) $(WRKBUILD)/mksh \
  29. $(STAGING_HOST_DIR)/usr/bin
  30. do-build:
  31. cd $(WRKBUILD) && CC='$(TARGET_CC)' CFLAGS='$(TARGET_CFLAGS)' \
  32. CPPFLAGS='$(TARGET_CPPFLAGS)' LDFLAGS='$(TARGET_LDFLAGS)' \
  33. HAVE_CAN_FSTACKPROTECTORALL=0 HAVE_CAN_FSTACKPROTECTORSTRONG=0 \
  34. TARGET_OS=Linux $(BASH) $(WRKSRC)/Build.sh -Q -r -c lto
  35. mksh-install:
  36. $(INSTALL_DIR) $(IDIR_MKSH)/etc
  37. $(CP) $(WRKSRC)/dot.mkshrc $(IDIR_MKSH)/etc/mkshrc
  38. $(INSTALL_DIR) $(IDIR_MKSH)/bin
  39. $(INSTALL_BIN) $(WRKBUILD)/mksh $(IDIR_MKSH)/bin
  40. include $(ADK_TOPDIR)/mk/host-bottom.mk
  41. include $(ADK_TOPDIR)/mk/pkg-bottom.mk