Makefile 1.9 KB

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