Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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:= 2
  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. $(HOST_CC) $(HOST_CFLAGS) -o ${WRKBUILD}/makedevs ${WRKBUILD}/makedevs.c
  19. adk-helper-hostinstall:
  20. ${INSTALL_DIR} ${STAGING_HOST_DIR}/usr/bin
  21. ${INSTALL_BIN} ${WRKBUILD}/mkcrypt ${STAGING_HOST_DIR}/usr/bin
  22. ${INSTALL_BIN} ${WRKBUILD}/dkgetsz ${STAGING_HOST_DIR}/usr/bin
  23. ${INSTALL_BIN} ${WRKBUILD}/makedevs ${STAGING_HOST_DIR}/usr/bin
  24. include ${ADK_TOPDIR}/mk/host-bottom.mk
  25. include ${ADK_TOPDIR}/mk/pkg-bottom.mk