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. --disable-install-libiberty \
  25. --disable-install-libbfd \
  26. --with-curses \
  27. --enable-gdbmi
  28. XAKE_FLAGS+= LDFLAGS='${TARGET_LDFLAGS}'
  29. # disable honour cflags stuff
  30. XAKE_FLAGS+= GCC_HONOUR_COPTS:=s
  31. gdb-install:
  32. ${INSTALL_DIR} ${IDIR_GDB}/usr/bin
  33. ${INSTALL_BIN} ${WRKINST}/usr/bin/gdb ${IDIR_GDB}/usr/bin/
  34. include ${TOPDIR}/mk/pkg-bottom.mk