Makefile 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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:= 3
  7. PKG_MD5SUM:= 55aec784e214037e61400287a55b5426
  8. PKG_DESCR:= memory analysing client tool
  9. PKG_SECTION:= debug
  10. PKG_DEPENDS:= exmap-kmod 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. PKG_SUBPKGS:= EXMAP EXMAPD EXMAPSERVER EXMAP_KMOD
  16. PKGSD_EXMAPD:= memory analysing daemon
  17. PKGSD_EXMAPSERVER:= memory analysing server
  18. PKGSD_EXMAP_KMOD:= memory analysing kernel module
  19. PKGSC_EXMAP_KMOD:= kernel
  20. DISTFILES:= ${PKG_NAME}-console-${PKG_VERSION}.tgz
  21. WRKDIST= ${WRKDIR}/${PKG_NAME}-console-${PKG_VERSION}
  22. include ${TOPDIR}/mk/package.mk
  23. $(eval $(call PKG_template,EXMAP,exmap,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  24. $(eval $(call PKG_template,EXMAPD,exmapd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_EXMAPD},${PKG_SECTION}))
  25. $(eval $(call PKG_template,EXMAPSERVER,exmapserver,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_EXMAPSERVER},${PKG_SECTION}))
  26. $(eval $(call PKG_template,EXMAP_KMOD,exmap-kmod,${KERNEL_VERSION}+${PKG_VERSION}-${ADK_TARGET}-${PKG_RELEASE},,${PKGSD_EXMAP_KMOD},${PKGSC_EXMAP_KMOD}))
  27. AUTOTOOL_STYLE:= autoreconf
  28. CONFIGURE_ARGS+= --disable-doc
  29. CONFIGURE_ENV+= LIBS="-lncurses"
  30. pre-build:
  31. $(MAKE) -C ${WRKBUILD}/kernel $(KERNEL_MODULE_FLAGS)
  32. post-install:
  33. ${INSTALL_DIR} ${IDIR_EXMAP_KMOD}/etc/modules.d/
  34. echo "exmap" > ${IDIR_EXMAP_KMOD}/etc/modules.d/90-exmap
  35. ${INSTALL_DIR} ${IDIR_EXMAP_KMOD}/lib/modules/${KERNEL_VERSION}/
  36. ${INSTALL_DATA} ${WRKBUILD}/kernel/exmap.ko \
  37. ${IDIR_EXMAP_KMOD}/lib/modules/${KERNEL_VERSION}
  38. ${INSTALL_DIR} ${IDIR_EXMAP}/usr/sbin
  39. ${INSTALL_BIN} ${WRKBUILD}/src/exmap ${IDIR_EXMAP}/usr/sbin
  40. ${INSTALL_DIR} ${IDIR_EXMAPD}/usr/sbin
  41. ${INSTALL_BIN} ${WRKBUILD}/src/exmapd ${IDIR_EXMAPD}/usr/sbin
  42. ${INSTALL_DIR} ${IDIR_EXMAPSERVER}/usr/sbin
  43. ${INSTALL_BIN} ${WRKBUILD}/src/exmapserver ${IDIR_EXMAPSERVER}/usr/sbin
  44. include ${TOPDIR}/mk/pkg-bottom.mk