Makefile 964 B

123456789101112131415161718192021222324252627282930313233
  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:= adk-helper
  5. PKG_VERSION:= 1.0
  6. PKG_RELEASE:= 1
  7. PKG_DESCR:= adk helper utilities
  8. PKG_SECTION:= base/misc
  9. PKG_CFLINE_ADK_HELPER:= depends on ADK_HOST_ONLY
  10. NO_DISTFILES:= 1
  11. include ${ADK_TOPDIR}/mk/host.mk
  12. include ${ADK_TOPDIR}/mk/package.mk
  13. $(eval $(call HOST_template,ADK_HELPER,adk-helper,${PKG_VERSION}-${PKG_RELEASE}))
  14. HOST_STYLE:= manual
  15. host-build:
  16. $(HOST_CC) $(HOST_CFLAGS) -o ${WRKBUILD}/mkcrypt ${WRKBUILD}/mkcrypt.c
  17. $(HOST_CC) $(HOST_CFLAGS) -o ${WRKBUILD}/dkgetsz ${WRKBUILD}/dkgetsz.c
  18. adk-helper-hostinstall:
  19. ${INSTALL_DIR} ${STAGING_HOST_DIR}/usr/bin
  20. ${INSTALL_BIN} ${WRKBUILD}/mkcrypt ${STAGING_HOST_DIR}/usr/bin
  21. ${INSTALL_BIN} ${WRKBUILD}/dkgetsz ${STAGING_HOST_DIR}/usr/bin
  22. include ${ADK_TOPDIR}/mk/host-bottom.mk
  23. include ${ADK_TOPDIR}/mk/pkg-bottom.mk