Makefile 850 B

123456789101112131415161718192021222324252627282930313233343536
  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:= mtd
  5. PKG_VERSION:= 1.0
  6. PKG_RELEASE:= 1
  7. PKG_DESCR:= MTD utility
  8. PKG_SECTION:= base
  9. PKG_TARGET_DEPENDS:= ag241 foxboard
  10. WRKDIST= ${WRKDIR}/${PKG_NAME}-${PKG_VERSION}
  11. NO_DISTFILES:= 1
  12. include ${TOPDIR}/mk/package.mk
  13. $(eval $(call PKG_template,MTD,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  14. PKGDFLT_MTD= y
  15. BUILD_STYLE:= manual
  16. INSTALL_STYLE:= manual
  17. do-build:
  18. mkdir -p ${WRKBUILD}
  19. ${CP} ./src/* ${WRKBUILD}
  20. ${TARGET_CC} ${TCPPFLAGS} ${TCFLAGS} -o ${WRKBUILD}/mtd \
  21. ${WRKBUILD}/mtd.c
  22. do-install:
  23. ${INSTALL_DIR} ${IDIR_MTD}/sbin
  24. ${INSTALL_BIN} ${WRKBUILD}/mtd ${IDIR_MTD}/sbin
  25. include ${TOPDIR}/mk/pkg-bottom.mk