Makefile 1.4 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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= gdb
  5. PKG_VERSION:= 7.11.1
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= e9216da4e3755e9f414c1aa0026b626251dfc57ffe572a266e98da4f6988fc70
  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_NOPARALLEL:= 1
  14. PKG_ARCH_DEPENDS:= !cris !m68k !avr32 !nios2 !microblaze
  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+= --without-uiout \
  19. --disable-tui \
  20. --disable-gdbtk \
  21. --disable-gdbserver \
  22. --without-x \
  23. --disable-sim \
  24. --disable-werror \
  25. --without-python \
  26. --without-included-gettext \
  27. --without-auto-load-safe-path \
  28. --disable-install-libiberty \
  29. --disable-install-libbfd \
  30. --with-curses \
  31. --enable-gdbmi
  32. XAKE_FLAGS+= LDFLAGS='${TARGET_LDFLAGS}'
  33. # disable honour cflags stuff
  34. XAKE_FLAGS+= GCC_HONOUR_COPTS:=s
  35. gdb-install:
  36. ${INSTALL_DIR} ${IDIR_GDB}/usr/bin
  37. ${INSTALL_BIN} ${WRKINST}/usr/bin/gdb \
  38. ${IDIR_GDB}/usr/bin/
  39. # shipped libbfd conflicts with system wide one
  40. rm -f ${WRKINST}/usr/lib/libbfd*
  41. include ${ADK_TOPDIR}/mk/pkg-bottom.mk