1
0

Makefile 956 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 ${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:= misc
  9. PKG_CFLINE_MKCRYPT:= depends on ADK_HOST_ONLY
  10. NO_DISTFILES:= 1
  11. include ${TOPDIR}/mk/host.mk
  12. include ${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. $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -o ${WRKBUILD}/mkcrypt ${WRKBUILD}/mkcrypt.c
  17. $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -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 ${TOPDIR}/mk/host-bottom.mk
  23. include ${TOPDIR}/mk/pkg-bottom.mk