Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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:= exmap
  5. PKG_VERSION:= 0.4.1
  6. PKG_RELEASE:= 4
  7. PKG_MD5SUM:= 55aec784e214037e61400287a55b5426
  8. PKG_DESCR:= memory analysing tools
  9. PKG_SECTION:= app/debug
  10. PKG_DEPENDS:= libreadline glib
  11. PKG_BUILDDEP:= glib readline autotool
  12. PKG_SITES:= http://labs.o-hand.com/sources/exmap-console/
  13. PKG_ARCH_DEPENDS:= !m68k
  14. PKG_CFLINE_EXMAP:= depends on !ADK_TOOLCHAIN_ONLY
  15. DISTFILES:= ${PKG_NAME}-console-${PKG_VERSION}.tgz
  16. WRKDIST= ${WRKDIR}/${PKG_NAME}-console-${PKG_VERSION}
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,EXMAP,exmap,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. AUTOTOOL_STYLE:= autoreconf
  20. CONFIGURE_ARGS+= --disable-doc
  21. CONFIGURE_ENV+= LIBS="-lncurses"
  22. pre-build:
  23. $(MAKE) -C ${WRKBUILD}/kernel $(KERNEL_MODULE_FLAGS)
  24. exmap-install:
  25. ${INSTALL_DIR} ${IDIR_EXMAP}/etc/modules.d/
  26. echo "exmap" > ${IDIR_EXMAP}/etc/modules.d/90-exmap
  27. ${INSTALL_DIR} ${IDIR_EXMAP}/lib/modules/${KERNEL_VERSION}/
  28. ${INSTALL_DATA} ${WRKBUILD}/kernel/exmap.ko \
  29. ${IDIR_EXMAP}/lib/modules/${KERNEL_VERSION}
  30. ${INSTALL_DIR} ${IDIR_EXMAP}/usr/sbin
  31. ${INSTALL_BIN} ${WRKBUILD}/src/exmap* ${IDIR_EXMAP}/usr/sbin
  32. include ${TOPDIR}/mk/pkg-bottom.mk