Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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:= programm debugger
  7. PKG_SECTION:= app/debug
  8. PKG_DEPENDS:= libthread-db libncurses libexpat 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. TARGET_CFLAGS+= ${TARGET_CPPFLAGS} -fPIC
  14. CONFIGURE_ARGS+= --without-uiout \
  15. --disable-tui \
  16. --disable-gdbtk \
  17. --without-x \
  18. --disable-sim \
  19. --disable-werror \
  20. --disable-gdbserver \
  21. --without-python \
  22. --without-included-gettext \
  23. --without-auto-load-safe-path \
  24. --with-curses \
  25. --enable-gdbmi
  26. XAKE_FLAGS+= LDFLAGS='${TARGET_LDFLAGS}'
  27. # disable honour cflags stuff
  28. XAKE_FLAGS+= GCC_HONOUR_COPTS:=s
  29. gdb-install:
  30. ${INSTALL_DIR} ${IDIR_GDB}/usr/bin
  31. ${INSTALL_BIN} ${WRKINST}/usr/bin/gdb ${IDIR_GDB}/usr/bin/
  32. # shipped libbfd conflicts with system wide one
  33. rm -f ${WRKINST}/usr/lib/libbfd*
  34. include ${TOPDIR}/mk/pkg-bottom.mk