Makerules.licenses 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #
  2. # Copyright (C) 2013 by Ole Reinhardt <ole.reinhardt@embedded-it.de>
  3. #
  4. # All rights reserved.
  5. #
  6. # Redistribution and use in source and binary forms, with or without
  7. # modification, are permitted provided that the following conditions
  8. # are met:
  9. #
  10. # 1. Redistributions of source code must retain the above copyright
  11. # notice, this list of conditions and the following disclaimer.
  12. # 2. Redistributions in binary form must reproduce the above copyright
  13. # notice, this list of conditions and the following disclaimer in the
  14. # documentation and/or other materials provided with the distribution.
  15. # 3. All advertising materials mentioning features or use of this
  16. # software must display the following acknowledgement:
  17. #
  18. # This product includes software developed by egnite Software GmbH
  19. # and its contributors.
  20. #
  21. # THIS SOFTWARE IS PROVIDED BY EGNITE SOFTWARE GMBH AND CONTRIBUTORS
  22. # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  23. # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  24. # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL EGNITE
  25. # SOFTWARE GMBH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  26. # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  27. # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  28. # OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  29. # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  30. # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
  31. # THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  32. # SUCH DAMAGE.
  33. #
  34. # For additional information see http://www.ethernut.de/
  35. #
  36. # $Id$
  37. #
  38. ifeq ($(PROJ),libnutarch)
  39. ifeq ($(MCD_LICENSE),y)
  40. ifneq ($(LICENSE_ST_GUIDANCE),y)
  41. MSG_LICENSE += "\n"
  42. MSG_LICENSE += "******************************************************************************\n"
  43. MSG_LICENSE += "* WARNING: STM32 License ST Guidance Only not accepted. *\n"
  44. MSG_LICENSE += "* Not all files will be compiled, build may fail! *\n"
  45. MSG_LICENSE += "******************************************************************************\n"
  46. MSG_LICENSE += "\n"
  47. LOG_CMD = echo -e $(MSG_LICENSE) >&2
  48. endif
  49. ifneq ($(LICENSE_MCD_ST_LIBERTY),y)
  50. MSG_LICENSE += "\n"
  51. MSG_LICENSE += "******************************************************************************\n"
  52. MSG_LICENSE += "* WARNING: STM32 MCD-ST Liberty SW License Agreement V2 not accepted *\n"
  53. MSG_LICENSE += "* Not all files will be compiled, build may fail! *\n"
  54. MSG_LICENSE += "******************************************************************************\n"
  55. MSG_LICENSE += "\n"
  56. LOG_CMD = echo -e $(MSG_LICENSE) >&2
  57. endif
  58. endif
  59. endif
  60. check-licenses:
  61. @$(LOG_CMD)
  62. .PHONY: check-licenses