Makefile 897 B

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