Makefile 2.1 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:= 1
  7. PKG_MD5SUM:= 55aec784e214037e61400287a55b5426
  8. PKG_DESCR:= memory analysing client tool
  9. PKG_SECTION:= utils
  10. PKG_DEPENDS:= kmod-exmap libreadline glib
  11. PKG_BUILDDEP+= glib readline
  12. PKG_SITES:= http://labs.o-hand.com/sources/exmap-console/
  13. DISTFILES:= ${PKG_NAME}-console-${PKG_VERSION}.tgz
  14. WRKDIST= ${WRKDIR}/${PKG_NAME}-console-${PKG_VERSION}
  15. PKG_DESCR_EXMAPD:= memory analysing daemon
  16. PKG_DESCR_EXMAPSERVER:= memory analysing server
  17. PKG_DESCR_KMOD_EXMAP:= memory analysing kernel module
  18. include ${TOPDIR}/mk/package.mk
  19. $(eval $(call PKG_template,EXMAP,exmap,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. $(eval $(call PKG_template,EXMAPD,exmapd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_EXMAPD},${PKG_SECTION}))
  21. $(eval $(call PKG_template,EXMAPSERVER,exmapserver,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_EXMAPSERVER},${PKG_SECTION}))
  22. $(eval $(call PKG_template,KMOD_EXMAP,kmod-exmap,${KERNEL_VERSION}+${PKG_VERSION}-${ADK_TARGET}-${PKG_RELEASE},,${PKG_DESCR_KMOD_EXMAP},${PKG_SECTION}))
  23. CONFIGURE_STYLE:= gnu
  24. CONFIGURE_ARGS+= --disable-doc
  25. CONFIGURE_ENV+= LIBS="-lncurses"
  26. BUILD_STYLE:= auto
  27. pre-build:
  28. KERNEL_PATH=${LINUX_DIR} \
  29. CROSS_COMPILE="${TARGET_CROSS}" \
  30. V=1 ARCH="${ARCH}" KERNELVERSION="2.6" \
  31. LDFLAGS="" \
  32. $(MAKE) -C ${WRKBUILD}/kernel
  33. post-install:
  34. ${INSTALL_DIR} ${IDIR_KMOD_EXMAP}/etc/modules.d/
  35. echo "exmap" > ${IDIR_KMOD_EXMAP}/etc/modules.d/90-exmap
  36. ${INSTALL_DIR} ${IDIR_KMOD_EXMAP}/lib/modules/${KERNEL_VERSION}/
  37. ${INSTALL_DATA} ${WRKBUILD}/kernel/exmap.ko \
  38. ${IDIR_KMOD_EXMAP}/lib/modules/${KERNEL_VERSION}
  39. ${INSTALL_DIR} ${IDIR_EXMAP}/usr/sbin
  40. ${INSTALL_BIN} ${WRKBUILD}/src/exmap ${IDIR_EXMAP}/usr/sbin
  41. ${INSTALL_DIR} ${IDIR_EXMAPD}/usr/sbin
  42. ${INSTALL_BIN} ${WRKBUILD}/src/exmapd ${IDIR_EXMAPD}/usr/sbin
  43. ${INSTALL_DIR} ${IDIR_EXMAPSERVER}/usr/sbin
  44. ${INSTALL_BIN} ${WRKBUILD}/src/exmapserver ${IDIR_EXMAPSERVER}/usr/sbin
  45. include ${TOPDIR}/mk/pkg-bottom.mk