bvcpp.mk 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. BVCPP_TAR:=$(SBS_HOME)/util/ext/bv.tgz
  18. BVCPP_TAR_URL:=http://rene.europe.nokia.com/~raptorbot/files/bv.tgz
  19. # This rule is allowed to fail as it is possible that
  20. # a user might not be able to obtain the bv.tgz file
  21. # and although this makes binary variation harder
  22. # it is not impossible if one uses gcc > 4.4
  23. # by setting SBS_BVCPP
  24. define b_bvcpp
  25. .PHONY:: bvcpp
  26. all:: bvcpp
  27. bvcpp: $(INSTALLROOT)/bv/bin/cpp
  28. $(INSTALLROOT)/bv/bin/cpp: $(BVCPP_TAR)
  29. -@if [ -f $(BVCPP_TAR) ]; then cd $(INSTALLROOT) && \
  30. rm -rf bv && \
  31. tar -xzf $(BVCPP_TAR)&& touch $$@ ; else \
  32. echo "Cannot find a prepackaged binary variation capabale CPP. GCC 4.4 is usually sufficient - set SBS_BVCPP to point to it"; fi
  33. $(call fetch_gbzip,$(BVCPP_TAR),$(BVCPP_TAR_URL))
  34. endef
  35. $(eval $(b_bvcpp))