Makefile 766 B

1234567891011121314151617181920212223242526272829303132
  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. LIBELF_MAKEOPTS+= -j${ADK_MAKE_JOBS}
  9. endif
  10. $(WRKBUILD)/.configured:
  11. (cd $(WRKBUILD); \
  12. $(WRKBUILD)/configure \
  13. --prefix=/usr \
  14. --disable-nls \
  15. --disable-compat \
  16. --disable-shared \
  17. --enable-static \
  18. );
  19. touch $@
  20. $(WRKBUILD)/.compiled: $(WRKBUILD)/.configured
  21. $(MAKE) ${LIBELF_MAKEOPTS} -C $(WRKBUILD) all
  22. touch $@
  23. $(WRKBUILD)/.installed: $(WRKBUILD)/.compiled
  24. $(MAKE) instroot=$(STAGING_HOST_DIR) -C $(WRKBUILD) install
  25. touch $@
  26. include ${ADK_TOPDIR}/mk/toolchain.mk