Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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. (cd $(WRKBUILD); CC='$(TARGET_CC)' CROSS_COMPILE='$(TARGET_CROSS)' \
  9. ./configure --prefix=/usr \
  10. --target=$(REAL_GNU_TARGET_NAME) \
  11. --disable-gcc-wrapper \
  12. )
  13. $(MAKE) -C $(WRKBUILD) DESTDIR=$(STAGING_TARGET_DIR) install-headers
  14. touch $(WRKBUILD)/.configured
  15. touch $@
  16. $(WRKBUILD)/.compiled:
  17. # reconfigure musl, otherwise linking with libgcc is disabled
  18. (cd $(WRKBUILD); CC='$(TARGET_CC)' CROSS_COMPILE='$(TARGET_CROSS)' \
  19. ./configure --prefix=/usr \
  20. --target=$(REAL_GNU_TARGET_NAME) \
  21. --disable-gcc-wrapper \
  22. )
  23. $(MAKE) CFLAGS='$(TARGET_CFLAGS)' -C $(WRKBUILD) all
  24. touch $@
  25. $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
  26. $(MAKE) -C $(WRKBUILD) DESTDIR=$(STAGING_TARGET_DIR) install
  27. touch $@
  28. $(WRKBUILD)/.fixup:
  29. touch $@
  30. include ${TOPDIR}/mk/toolchain.mk