Makefile 1.3 KB

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