Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 ../rules.mk
  5. include Makefile.inc
  6. include ${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-x \
  34. );
  35. touch $@
  36. $(WRKBUILD)/.compiled:
  37. $(MAKE) ${GDB_MAKEOPTS} -C $(WRKBUILD) CFLAGS="-fPIC ${CFLAGS_FOR_BUILD}"
  38. touch $@
  39. $(WRKBUILD)/.installed:
  40. $(INSTALL_BIN) $(WRKBUILD)/gdb/gdb $(TARGET_CROSS)gdb
  41. touch $@
  42. include ${TOPDIR}/mk/toolchain.mk