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 ${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
  12. PKG_BUILDDEP_UCLIBC:= libiconv-tiny
  13. PKG_BUILDDEP_UCLIBC_NG:=libiconv-tiny
  14. include ${ADK_TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,GDB,gdb,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. TARGET_CFLAGS+= ${TARGET_CPPFLAGS} -fPIC
  17. CONFIGURE_ARGS+= --without-uiout \
  18. --disable-tui \
  19. --disable-gdbtk \
  20. --disable-gdbserver \
  21. --without-x \
  22. --disable-sim \
  23. --disable-werror \
  24. --without-python \
  25. --without-included-gettext \
  26. --without-auto-load-safe-path \
  27. --disable-install-libiberty \
  28. --disable-install-libbfd \
  29. --with-curses \
  30. --enable-gdbmi
  31. XAKE_FLAGS+= LDFLAGS='${TARGET_LDFLAGS}'
  32. # disable honour cflags stuff
  33. XAKE_FLAGS+= GCC_HONOUR_COPTS:=s
  34. gdb-install:
  35. ${INSTALL_DIR} ${IDIR_GDB}/usr/bin
  36. ${INSTALL_BIN} ${WRKINST}/usr/bin/gdb ${IDIR_GDB}/usr/bin/
  37. include ${ADK_TOPDIR}/mk/pkg-bottom.mk