Makefile 868 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:= nand
  5. PKG_VERSION:= 1.0
  6. PKG_RELEASE:= 3
  7. PKG_DESCR:= nand flash utility
  8. PKG_SECTION:= sys/fs
  9. PKG_DFLT_NAND:= y if ADK_TARGET_WITH_NAND
  10. PKG_CFLINE_NAND:= depends on ADK_TARGET_WITH_NAND
  11. NO_DISTFILES:= 1
  12. include ${ADK_TOPDIR}/mk/package.mk
  13. $(eval $(call PKG_template,NAND,nand,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  14. CONFIG_STYLE:= manual
  15. BUILD_STYLE:= manual
  16. INSTALL_STYLE:= manual
  17. do-build:
  18. ${TARGET_CC} ${TARGET_CPPFLAGS} ${TARGET_CFLAGS} ${TARGET_LDFLAGS} \
  19. -o ${WRKBUILD}/nand ${WRKBUILD}/nand.c
  20. do-install:
  21. ${INSTALL_DIR} ${IDIR_NAND}/sbin
  22. ${INSTALL_BIN} ${WRKBUILD}/nand ${IDIR_NAND}/sbin
  23. include ${ADK_TOPDIR}/mk/pkg-bottom.mk