1
0

Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 ../rules.mk
  5. include Makefile.inc
  6. include ${ADK_TOPDIR}/mk/buildhlp.mk
  7. ifeq (${ADK_MAKE_PARALLEL},y)
  8. GDB_MAKEOPTS+= -j${ADK_MAKE_JOBS}
  9. endif
  10. $(WRKBUILD)/.headers:
  11. $(WRKBUILD)/.configured:
  12. $(SED) 's/install_to_$(INSTALL_DEST) //' ${WRKBUILD}/libiberty/Makefile.in
  13. (cd $(WRKBUILD); \
  14. gdb_cv_func_sigsetjmp=yes \
  15. ./configure \
  16. --prefix=$(STAGING_HOST_DIR) \
  17. --build=$(GNU_HOST_NAME) \
  18. --host=$(GNU_HOST_NAME) \
  19. --target=$(GNU_TARGET_NAME) \
  20. --disable-dependency-tracking \
  21. --without-uiout \
  22. --enable-gdbmi \
  23. --disable-gdbtk \
  24. --without-included-gettext \
  25. --disable-libtool-lock \
  26. --disable-nls \
  27. --with-curses \
  28. --enable-threads \
  29. --disable-sim \
  30. --disable-tui \
  31. --disable-werror \
  32. --disable-install-libiberty \
  33. --without-python \
  34. --without-x \
  35. );
  36. touch $@
  37. $(WRKBUILD)/.compiled:
  38. $(MAKE) ${GDB_MAKEOPTS} -C $(WRKBUILD) CFLAGS="-fPIC ${CFLAGS_FOR_BUILD}"
  39. touch $@
  40. $(WRKBUILD)/.installed:
  41. $(INSTALL_BIN) $(WRKBUILD)/gdb/gdb $(TARGET_CROSS)gdb
  42. touch $@
  43. include ${ADK_TOPDIR}/mk/toolchain.mk