Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= exmap
  5. PKG_VERSION:= 0.4.1
  6. PKG_RELEASE:= 4
  7. PKG_HASH:= 53082354ae893fd385051c96214640cbeba527131ccf9f5320626252a4aef8d5
  8. PKG_DESCR:= memory analysing tools
  9. PKG_SECTION:= app/debug
  10. PKG_DEPENDS:= libreadline glib
  11. PKG_BUILDDEP:= glib readline
  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 ${ADK_TOPDIR}/mk/package.mk
  18. include ${ADK_TOPDIR}/mk/kernel-ver.mk
  19. $(eval $(call PKG_template,EXMAP,exmap,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. AUTOTOOL_STYLE:= autoreconf
  21. CONFIGURE_ARGS+= --disable-doc
  22. CONFIGURE_ENV+= LIBS="-lncurses"
  23. pre-build:
  24. LDFLAGS="" $(MAKE) -C ${WRKBUILD}/kernel $(KERNEL_MODULE_FLAGS)
  25. exmap-install:
  26. ${INSTALL_DIR} ${IDIR_EXMAP}/etc/modules.d/
  27. echo "exmap" > ${IDIR_EXMAP}/etc/modules.d/90-exmap
  28. ${INSTALL_DIR} ${IDIR_EXMAP}/lib/modules/${KERNEL_VERSION}/
  29. ${INSTALL_DATA} ${WRKBUILD}/kernel/exmap.ko \
  30. ${IDIR_EXMAP}/lib/modules/${KERNEL_VERSION}
  31. ${INSTALL_DIR} ${IDIR_EXMAP}/usr/sbin
  32. ${INSTALL_BIN} ${WRKBUILD}/src/exmap* ${IDIR_EXMAP}/usr/sbin
  33. include ${ADK_TOPDIR}/mk/pkg-bottom.mk