Makefile 1.3 KB

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