Makefile 1.1 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. (cd $(WRKBUILD); \
  13. gdb_cv_func_sigsetjmp=yes \
  14. ./configure \
  15. --prefix=$(STAGING_HOST_DIR) \
  16. --build=$(GNU_HOST_NAME) \
  17. --host=$(GNU_HOST_NAME) \
  18. --target=$(REAL_GNU_TARGET_NAME) \
  19. --disable-dependency-tracking \
  20. --without-uiout \
  21. --enable-gdbmi \
  22. --disable-gdbtk \
  23. --without-included-gettext \
  24. --disable-libtool-lock \
  25. --disable-nls \
  26. --with-curses \
  27. --enable-threads \
  28. --disable-sim \
  29. --disable-tui \
  30. --disable-werror \
  31. --without-x \
  32. );
  33. touch $@
  34. $(WRKBUILD)/.compiled:
  35. $(MAKE) ${GDB_MAKEOPTS} -C $(WRKBUILD) CFLAGS="-fPIC ${CFLAGS_FOR_BUILD}"
  36. touch $@
  37. $(WRKBUILD)/.installed:
  38. install -c $(WRKBUILD)/gdb/gdb $(TARGET_CROSS)gdb
  39. cd $(STAGING_HOST_DIR)/bin && \
  40. ln -fs $(TARGET_CROSS)gdb $(GNU_TARGET_NAME)-gdb
  41. touch $@
  42. include ${TOPDIR}/mk/toolchain.mk