Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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:= gdb
  5. PKG_VERSION:= 8.0
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= f6a24ffe4917e67014ef9273eb8b547cb96a13e5ca74895b06d683b391f3f4ee
  8. PKG_DESCR:= programm debugger
  9. PKG_SECTION:= app/debug
  10. PKG_SITES:= ${MASTER_SITE_GNU:=gdb/}
  11. PKG_DEPENDS:= libncurses zlib libexpat libthread-db
  12. PKG_BUILDDEP:= ncurses readline expat zlib
  13. PKG_NEEDS:= c++
  14. PKG_ARCH_DEPENDS:= !cris !m68k !avr32 !nios2 !microblaze !or1k
  15. include ${ADK_TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,GDB,gdb,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. TARGET_CFLAGS+= ${TARGET_CPPFLAGS} -fPIC
  18. CONFIGURE_ARGS+= --enable-static \
  19. --without-uiout \
  20. --disable-tui \
  21. --disable-gdbtk \
  22. --disable-gdbserver \
  23. --without-x \
  24. --disable-sim \
  25. --disable-werror \
  26. --without-python \
  27. --without-included-gettext \
  28. --without-auto-load-safe-path \
  29. --disable-install-libiberty \
  30. --disable-install-libbfd \
  31. --with-curses \
  32. --enable-gdbmi
  33. XAKE_FLAGS+= LDFLAGS='${TARGET_LDFLAGS}'
  34. # disable honour cflags stuff
  35. XAKE_FLAGS+= GCC_HONOUR_COPTS:=s
  36. gdb-install:
  37. ${INSTALL_DIR} ${IDIR_GDB}/usr/bin
  38. ${INSTALL_BIN} ${WRKINST}/usr/bin/gdb \
  39. ${IDIR_GDB}/usr/bin/
  40. # shipped libbfd conflicts with system wide one
  41. rm -f ${WRKINST}/usr/lib/libbfd*
  42. include ${ADK_TOPDIR}/mk/pkg-bottom.mk