Makefile 1.3 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. 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_BUILDDEP_UCLIBC:= libiconv-tiny
  12. PKG_BUILDDEP_UCLIBC_NG:=libiconv-tiny
  13. include ${ADK_TOPDIR}/mk/package.mk
  14. $(eval $(call PKG_template,GDB,gdb,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  15. ifeq ($(ADK_TARGET_LIB_MUSL),y)
  16. CONFIGURE_ARGS+= --disable-gdbserver
  17. else
  18. CONFIGURE_ARGS+= --enable-gdbserver
  19. endif
  20. TARGET_CFLAGS+= ${TARGET_CPPFLAGS} -fPIC
  21. CONFIGURE_ARGS+= --without-uiout \
  22. --disable-tui \
  23. --disable-gdbtk \
  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 ${IDIR_GDB}/usr/bin/
  40. include ${ADK_TOPDIR}/mk/pkg-bottom.mk