make.mk 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #
  2. # Copyright (c) 2006-2011 Nokia Corporation and/or its subsidiary(-ies).
  3. # All rights reserved.
  4. # This component and the accompanying materials are made available
  5. # under the terms of the License "Eclipse Public License v1.0"
  6. # which accompanies this distribution, and is available
  7. # at the URL "http://www.eclipse.org/legal/epl-v10.html".
  8. #
  9. # Initial Contributors:
  10. # Nokia Corporation - initial contribution.
  11. #
  12. # Contributors:
  13. #
  14. # Description:
  15. # Utility makefile
  16. #
  17. RAPTOR_MAKE_VER:=3.81
  18. MAKE_SOURCEDIR:=$(OUTPUTPATH)/make-$(RAPTOR_MAKE_VER)
  19. MAKE_TAR:=$(SBS_HOME)/util/ext/make-$(RAPTOR_MAKE_VER).tar.bz2
  20. MAKE_TAR_URL:=http://mirrors.kernel.org/gnu/make/make-$(RAPTOR_MAKE_VER).tar.bz2 http://www.nic.funet.fi/pub/gnu/ftp.gnu.org/pub/gnu/make/make-$(RAPTOR_MAKE_VER).tar.bz2
  21. define b_make
  22. .PHONY:: make
  23. all:: make
  24. make: $(INSTALLROOT)/bin/make
  25. $(call fetch_gbzip,$(MAKE_TAR),$(MAKE_TAR_URL))
  26. $(INSTALLROOT)/bin/make: $(MAKE_TAR)
  27. rm -rf $(MAKE_SOURCEDIR) && \
  28. cd $(OUTPUTPATH) && \
  29. tar -xjf $(MAKE_TAR) && \
  30. ( \
  31. cd $(MAKE_SOURCEDIR) && \
  32. CFLAGS="-O2 $(GCCTUNE)" ./configure --prefix=$(INSTALLROOT) --disable-job-server && \
  33. $(MAKE) -j8 && $(MAKE) install \
  34. )
  35. endef
  36. $(eval $(b_make))