Makefile 913 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 $(TOPDIR)/rules.mk
  4. include Makefile.inc
  5. include ../rules.mk
  6. include ${TOPDIR}/mk/buildhlp.mk
  7. ifeq (${ADK_MAKE_PARALLEL},y)
  8. GMP_MAKEOPTS+= -j${ADK_MAKE_JOBS}
  9. endif
  10. $(WRKBUILD)/.headers:
  11. $(WRKBUILD)/.configured:
  12. # for cygwin and ubunto on amd64
  13. ifneq (,$(filter CYGWIN%,${OStype}))
  14. (cd $(WRKBUILD); cp configfsf.guess config.guess)
  15. endif
  16. ifeq (${OStype},Linux)
  17. (cd $(WRKBUILD); cp configfsf.guess config.guess)
  18. endif
  19. (cd $(WRKBUILD); \
  20. ./configure \
  21. --prefix=$(STAGING_HOST_DIR) \
  22. --disable-shared \
  23. --enable-static \
  24. )
  25. touch $@
  26. $(WRKBUILD)/.compiled: $(WRKBUILD)/.configured
  27. $(MAKE) ${GMP_MAKEOPTS} -C $(WRKBUILD) all
  28. touch $@
  29. $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
  30. $(MAKE) -C $(WRKBUILD) install
  31. touch $@
  32. include ${TOPDIR}/mk/toolchain.mk