Makefile 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. #########################################################################
  2. #
  3. # Targets supported
  4. # all - builds everything and installs
  5. # install - identical to all
  6. # depend - build dependencies
  7. # clean - clears derived objects except the .depend files
  8. # distclean- clears all derived objects and the .depend file
  9. #
  10. # @par
  11. # This file is provided under a dual BSD/GPLv2 license. When using or
  12. # redistributing this file, you may do so under either license.
  13. #
  14. # GPL LICENSE SUMMARY
  15. #
  16. # Copyright(c) 2007,2008,2009 Intel Corporation. All rights reserved.
  17. #
  18. # This program is free software; you can redistribute it and/or modify
  19. # it under the terms of version 2 of the GNU General Public License as
  20. # published by the Free Software Foundation.
  21. #
  22. # This program is distributed in the hope that it will be useful, but
  23. # WITHOUT ANY WARRANTY; without even the implied warranty of
  24. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  25. # General Public License for more details.
  26. #
  27. # You should have received a copy of the GNU General Public License
  28. # along with this program; if not, write to the Free Software
  29. # Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
  30. # The full GNU General Public License is included in this distribution
  31. # in the file called LICENSE.GPL.
  32. #
  33. # Contact Information:
  34. # Intel Corporation
  35. #
  36. # BSD LICENSE
  37. #
  38. # Copyright(c) 2007,2008,2009 Intel Corporation. All rights reserved.
  39. # All rights reserved.
  40. #
  41. # Redistribution and use in source and binary forms, with or without
  42. # modification, are permitted provided that the following conditions
  43. # are met:
  44. #
  45. # * Redistributions of source code must retain the above copyright
  46. # notice, this list of conditions and the following disclaimer.
  47. # * Redistributions in binary form must reproduce the above copyright
  48. # notice, this list of conditions and the following disclaimer in
  49. # the documentation and/or other materials provided with the
  50. # distribution.
  51. # * Neither the name of Intel Corporation nor the names of its
  52. # contributors may be used to endorse or promote products derived
  53. # from this software without specific prior written permission.
  54. #
  55. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  56. # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  57. # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  58. # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  59. # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  60. # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  61. # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  62. # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  63. # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  64. # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  65. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  66. #
  67. #
  68. # version: Security.L.1.0.2-229
  69. ############################################################################
  70. ####################Common variables and definitions########################
  71. ifndef ICP_ROOT
  72. $(warning ICP_ROOT is undefined. Please set the path to EP80579 release package directory \
  73. "-> setenv ICP_ROOT <path>")
  74. all fastdep:
  75. :
  76. else
  77. ifndef KERNEL_SOURCE_ROOT
  78. $(error KERNEL_SOURCE_ROOT is undefined. Please set the path to the kernel source directory \
  79. "-> setenv KERNEL_SOURCE_ROOT <path>")
  80. endif
  81. # Ensure The ENV_DIR environmental var is defined.
  82. ifndef ICP_ENV_DIR
  83. $(error ICP_ENV_DIR is undefined. Please set the path to EP80579 driver environment.mk file \
  84. "-> setenv ICP_ENV_DIR <path>")
  85. endif
  86. #Add your project environment Makefile
  87. include ${ICP_ENV_DIR}/environment.mk
  88. #include the makefile with all the default and common Make variable definitions
  89. include ${ICP_BUILDSYSTEM_PATH}/build_files/common.mk
  90. #Add the name for the executable, Library or Module output definitions
  91. OUTPUT_NAME= icp_ocf
  92. # List of Source Files to be compiled
  93. SOURCES= icp_common.c icp_sym.c icp_asym.c icp_ocf_linux.c
  94. #common includes between all supported OSes
  95. INCLUDES= -I ${ICP_API_DIR} -I${ICP_LAC_API} \
  96. -I${ICP_OCF_SRC_DIR}
  97. # The location of the os level makefile needs to be changed.
  98. include ${ICP_ENV_DIR}/${ICP_OS}_${ICP_OS_LEVEL}.mk
  99. # On the line directly below list the outputs you wish to build for,
  100. # e.g "lib_static lib_shared exe module" as shown below
  101. install: module
  102. ###################Include rules makefiles########################
  103. include ${ICP_BUILDSYSTEM_PATH}/build_files/rules.mk
  104. ###################End of Rules inclusion#########################
  105. endif