Makefile 881 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. $(WRKBUILD)/.configured:
  8. (cd $(WRKBUILD); \
  9. CC='' \
  10. CFLAGS='' \
  11. LDFLAGS='' \
  12. ./configure --prefix=/usr \
  13. --target=$(GNU_TARGET_NAME) \
  14. --enable-newlib-io-long-long \
  15. --enable-newlib-register-fini \
  16. --disable-newlib-supplied-syscalls \
  17. --disable-nls \
  18. )
  19. touch $@
  20. $(WRKBUILD)/.compiled:
  21. PATH='$(HOST_PATH)' $(MAKE) -C $(WRKBUILD) \
  22. CC='' \
  23. CFLAGS='$(TARGET_CFLAGS)' \
  24. all
  25. touch $@
  26. $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
  27. PATH='$(HOST_PATH)' $(MAKE) -C $(WRKBUILD) \
  28. CC='' \
  29. CFLAGS='$(TARGET_CFLAGS)' \
  30. DESTDIR=$(STAGING_TARGET_DIR) \
  31. install
  32. touch $@
  33. include ${ADK_TOPDIR}/mk/toolchain.mk