Makefile 786 B

123456789101112131415161718192021222324252627282930313233
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include $(TOPDIR)/rules.mk
  6. include ../rules.mk
  7. include $(TOPDIR)/toolchain/gmp/Makefile.inc
  8. include Makefile.inc
  9. include ${TOPDIR}/mk/buildhlp.mk
  10. $(WRKBUILD)/.headers:
  11. $(WRKBUILD)/.configure_done:
  12. (cd $(WRKBUILD); \
  13. $(WRKBUILD)/configure \
  14. --prefix=$(STAGING_TOOLS) \
  15. --build=$(GNU_HOST_NAME) \
  16. --host=$(GNU_HOST_NAME) \
  17. --with-gmp-build=$(GMP_BUILD_DIR) \
  18. --disable-shared \
  19. --enable-static \
  20. );
  21. touch $@
  22. $(WRKBUILD)/.compiled: $(WRKBUILD)/.configure_done
  23. $(MAKE) -C $(WRKBUILD) all
  24. touch $@
  25. $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
  26. $(MAKE) -C $(WRKBUILD) install
  27. touch $@
  28. include ${TOPDIR}/mk/toolchain.mk