1
0

Makefile 750 B

12345678910111213141516171819202122232425262728293031
  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 Makefile.inc
  5. include ../rules.mk
  6. include ${ADK_TOPDIR}/mk/buildhlp.mk
  7. ifeq (${ADK_MAKE_PARALLEL},y)
  8. MPC_MAKEOPTS+= -j${ADK_MAKE_JOBS}
  9. endif
  10. $(WRKBUILD)/.configured:
  11. (cd $(WRKBUILD); \
  12. $(WRKBUILD)/configure \
  13. --prefix=$(STAGING_HOST_DIR)/usr \
  14. --with-gmp=$(STAGING_HOST_DIR)/usr \
  15. --disable-shared \
  16. --enable-static \
  17. );
  18. touch $@
  19. $(WRKBUILD)/.compiled: $(WRKBUILD)/.configured
  20. $(MAKE) ${MPC_MAKEOPTS} -C $(WRKBUILD) all
  21. touch $@
  22. $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
  23. $(MAKE) -C $(WRKBUILD) install
  24. touch $@
  25. include ${ADK_TOPDIR}/mk/toolchain.mk