Makefile 1.0 KB

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