Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include $(TOPDIR)/rules.mk
  6. include ../rules.mk
  7. include Makefile.inc
  8. include ${TOPDIR}/mk/buildhlp.mk
  9. $(WRKBUILD)/.headers:
  10. $(WRKBUILD)/.configure_done:
  11. (cd $(WRKBUILD); \
  12. gdb_cv_func_sigsetjmp=yes \
  13. ./configure \
  14. --prefix=$(STAGING_TOOLS) \
  15. --build=$(GNU_HOST_NAME) \
  16. --host=$(GNU_HOST_NAME) \
  17. --target=$(REAL_GNU_TARGET_NAME) \
  18. --disable-dependency-tracking \
  19. --without-uiout \
  20. --enable-gdbmi \
  21. --disable-gdbtk \
  22. --without-included-gettext \
  23. --disable-libtool-lock \
  24. --disable-nls \
  25. --with-curses \
  26. --enable-threads \
  27. --disable-sim \
  28. --disable-tui \
  29. --disable-werror \
  30. --without-x \
  31. );
  32. touch $@
  33. $(WRKBUILD)/.compiled:
  34. $(MAKE) -C $(WRKBUILD) CFLAGS="-fPIC ${HOSTCFLAGS}"
  35. touch $@
  36. $(WRKBUILD)/.installed:
  37. install -c $(WRKBUILD)/gdb/gdb $(TARGET_CROSS)gdb
  38. cd $(STAGING_TOOLS)/bin && \
  39. ln -fs $(TARGET_CROSS)gdb $(GNU_TARGET_NAME)-gdb
  40. touch $@
  41. include ${TOPDIR}/mk/toolchain.mk