Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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:= 7.12
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 834ff3c5948b30718343ea57b11cbc3235d7995c6a4f3a5cecec8c8114164f94
  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_NOPARALLEL:= 1
  15. PKG_ARCH_DEPENDS:= !cris !m68k !avr32 !nios2 !microblaze !or1k
  16. include ${ADK_TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,GDB,gdb,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. TARGET_CFLAGS+= ${TARGET_CPPFLAGS} -fPIC
  19. CONFIGURE_ARGS+= --enable-static \
  20. --without-uiout \
  21. --disable-tui \
  22. --disable-gdbtk \
  23. --disable-gdbserver \
  24. --without-x \
  25. --disable-sim \
  26. --disable-werror \
  27. --without-python \
  28. --without-included-gettext \
  29. --without-auto-load-safe-path \
  30. --disable-install-libiberty \
  31. --disable-install-libbfd \
  32. --with-curses \
  33. --enable-gdbmi
  34. XAKE_FLAGS+= LDFLAGS='${TARGET_LDFLAGS}'
  35. # disable honour cflags stuff
  36. XAKE_FLAGS+= GCC_HONOUR_COPTS:=s
  37. gdb-install:
  38. ${INSTALL_DIR} ${IDIR_GDB}/usr/bin
  39. ${INSTALL_BIN} ${WRKINST}/usr/bin/gdb \
  40. ${IDIR_GDB}/usr/bin/
  41. # shipped libbfd conflicts with system wide one
  42. rm -f ${WRKINST}/usr/lib/libbfd*
  43. include ${ADK_TOPDIR}/mk/pkg-bottom.mk