Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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_DESCR:= GNU debugger
  6. PKG_SECTION:= debug
  7. PKG_DEPENDS:= libthread-db libncurses libiconv libexpat
  8. PKG_BUILDDEP:= ncurses readline libiconv expat
  9. PKG_NOPARALLEL:= 1
  10. PKG_ARCH_DEPENDS:= !cris
  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:= $(filter-out -flto,$(TARGET_CFLAGS))
  14. TARGET_CFLAGS+= ${TARGET_CPPFLAGS} -fPIC
  15. CONFIGURE_ARGS+= --without-uiout --enable-gdbmi \
  16. --disable-tui --disable-gdbtk --without-x \
  17. --without-included-gettext --disable-sim \
  18. --enable-threads --with-curses --disable-werror \
  19. --enable-static --without-python
  20. XAKE_FLAGS+= LDFLAGS='${TARGET_LDFLAGS}'
  21. # disable honour cflags stuff
  22. XAKE_FLAGS+= GCC_HONOUR_COPTS:=s
  23. pre-build:
  24. @-rm $(STAGING_TARGET_DIR)/lib/libiberty.a $(STAGING_TARGET_DIR)/usr/lib/libiberty.a
  25. post-install:
  26. ${INSTALL_DIR} ${IDIR_GDB}/usr/bin
  27. ${INSTALL_BIN} ${WRKINST}/usr/bin/gdb ${IDIR_GDB}/usr/bin/
  28. include ${TOPDIR}/mk/pkg-bottom.mk