Makefile 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. # Makefile
  2. #
  3. # Copyright (C) 2006-2020 wolfSSL Inc.
  4. #
  5. # This file is part of wolfSSL.
  6. #
  7. # wolfSSL is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation; either version 2 of the License, or
  10. # (at your option) any later version.
  11. #
  12. # wolfSSL is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with this program; if not, write to the Free Software
  19. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
  20. ENVI=UbuntuARM
  21. # default to Ubuntu Release build
  22. ifndef V
  23. V=UbuntuARM_Release_aarch64
  24. endif
  25. SUPPORTED_VS = $(default_VS)
  26. include $(HEXAGON_SDK_ROOT)/build/make.d/$(ENVI)_vs.min
  27. include $(HEXAGON_SDK_ROOT)/build/defines.min
  28. ifeq ($(CDSP_FLAG), 1)
  29. LIB_DSPRPC = libcdsprpc
  30. else ifeq ($(MDSP_FLAG), 1)
  31. LIB_DSPRPC = libmdsprpc
  32. else ifeq ($(SLPI_FLAG), 1)
  33. LIB_DSPRPC = libsdsprpc
  34. else
  35. LIB_DSPRPC = libadsprpc
  36. endif
  37. $(info ************ LIB=$(LIB_DSPRPC) ************)
  38. # include files
  39. CC_FLAGS += -I../../
  40. CC_FLAGS += -I./
  41. CC_FLAGS += -DWOLFSSL_USER_SETTINGS
  42. CC_FLAGS += -mcpu=generic+crypto
  43. #CC_FLAGS += -O3
  44. DEPENDENCIES = \
  45. ATOMIC \
  46. RPCMEM
  47. ATOMIC_DIR = $(HEXAGON_SDK_ROOT)/libs/common/atomic
  48. RPCMEM_DIR = $(HEXAGON_SDK_ROOT)/libs/common/rpcmem
  49. # stub library
  50. BUILD_DLLS += libwolfssl
  51. libwolfssl_QAICIDLS += DSP/wolfssl_dsp
  52. libwolfssl_C_SRCS += $V/wolfSSL_stub
  53. libwolfssl_DLLS += $(LIB_DSPRPC)
  54. libwolfssl_C_SRCS += ../../wolfcrypt/src/wc_dsp
  55. libwolfssl_LIBS += rpcmem
  56. libwolfssl_LD_FLAGS += -ldl
  57. # wolfSSL crypto source files
  58. libwolfssl_C_SRCS += \
  59. ../../wolfcrypt/src/aes \
  60. ../../wolfcrypt/src/md2 \
  61. ../../wolfcrypt/src/arc4 \
  62. ../../wolfcrypt/src/md4 \
  63. ../../wolfcrypt/src/asm \
  64. ../../wolfcrypt/src/md5 \
  65. ../../wolfcrypt/src/asn \
  66. ../../wolfcrypt/src/memory \
  67. ../../wolfcrypt/src/async \
  68. ../../wolfcrypt/src/blake2b \
  69. ../../wolfcrypt/src/pkcs12 \
  70. ../../wolfcrypt/src/blake2s \
  71. ../../wolfcrypt/src/pkcs7 \
  72. ../../wolfcrypt/src/camellia \
  73. ../../wolfcrypt/src/poly1305 \
  74. ../../wolfcrypt/src/chacha20_poly1305 \
  75. ../../wolfcrypt/src/pwdbased \
  76. ../../wolfcrypt/src/chacha \
  77. ../../wolfcrypt/src/rabbit \
  78. ../../wolfcrypt/src/cmac \
  79. ../../wolfcrypt/src/random \
  80. ../../wolfcrypt/src/coding \
  81. ../../wolfcrypt/src/ripemd \
  82. ../../wolfcrypt/src/compress \
  83. ../../wolfcrypt/src/rsa \
  84. ../../wolfcrypt/src/cpuid \
  85. ../../wolfcrypt/src/selftest \
  86. ../../wolfcrypt/src/cryptocb \
  87. ../../wolfcrypt/src/sha256 \
  88. ../../wolfcrypt/src/curve25519 \
  89. ../../wolfcrypt/src/sha3 \
  90. ../../wolfcrypt/src/des3 \
  91. ../../wolfcrypt/src/sha512 \
  92. ../../wolfcrypt/src/dh \
  93. ../../wolfcrypt/src/sha \
  94. ../../wolfcrypt/src/signature \
  95. ../../wolfcrypt/src/ecc \
  96. ../../wolfcrypt/src/ecc_fp \
  97. ../../wolfcrypt/src/ed25519 \
  98. ../../wolfcrypt/src/sp_armthumb \
  99. ../../wolfcrypt/src/error \
  100. ../../wolfcrypt/src/sp_int \
  101. ../../wolfcrypt/src/fe_low_mem \
  102. ../../wolfcrypt/src/sp_cortexm \
  103. ../../wolfcrypt/src/fe_operations \
  104. ../../wolfcrypt/src/fips \
  105. ../../wolfcrypt/src/sp_x86_64 \
  106. ../../wolfcrypt/src/fips_test \
  107. ../../wolfcrypt/src/srp \
  108. ../../wolfcrypt/src/ge_low_mem \
  109. ../../wolfcrypt/src/ge_operations \
  110. ../../wolfcrypt/src/wc_encrypt \
  111. ../../wolfcrypt/src/hash \
  112. ../../wolfcrypt/src/wc_pkcs11 \
  113. ../../wolfcrypt/src/hc128 \
  114. ../../wolfcrypt/src/wc_port \
  115. ../../wolfcrypt/src/hmac \
  116. ../../wolfcrypt/src/wolfcrypt_first \
  117. ../../wolfcrypt/src/idea \
  118. ../../wolfcrypt/src/wolfcrypt_last \
  119. ../../wolfcrypt/src/wolfevent \
  120. ../../wolfcrypt/src/logging \
  121. ../../wolfcrypt/src/sp_c32 \
  122. ../../wolfcrypt/src/sp_c64 \
  123. ../../wolfcrypt/src/sp_arm32 \
  124. ../../wolfcrypt/src/sp_arm64 \
  125. ../../wolfcrypt/src/wolfmath
  126. # wolfSSL TLS source files
  127. libwolfssl_C_SRCS += \
  128. ../../src/ocsp \
  129. ../../src/tls \
  130. ../../src/crl \
  131. ../../src/sniffer \
  132. ../../src/wolfio \
  133. ../../src/internal \
  134. ../../src/ssl \
  135. ../../src/keys \
  136. ../../src/tls13
  137. # build benchmark app
  138. BUILD_EXES += benchmark
  139. benchmark_C_SRCS += ../../wolfcrypt/benchmark/benchmark
  140. benchmark_LD_FLAGS += -ldl
  141. benchmark_LD_FLAGS += -lpthread
  142. benchmark_DLLS += libwolfssl
  143. benchmark_LIBS += rpcmem
  144. benchmark_DLLS += $(LIB_DSPRPC)
  145. # build test app
  146. BUILD_EXES += testwolfcrypt
  147. testwolfcrypt_C_SRCS += ../../wolfcrypt/test/test
  148. testwolfcrypt_DLLS += libwolfssl
  149. testwolfcrypt_LD_FLAGS += -ldl
  150. testwolfcrypt_LIBS += rpcmem
  151. testwolfcrypt_DLLS += $(LIB_DSPRPC)
  152. # build ecc verify test app
  153. BUILD_EXES += eccverify
  154. eccverify_C_SRCS += ecc-verify
  155. eccverify_DLLS += libwolfssl
  156. eccverify_LD_FLAGS += -ldl
  157. eccverify_LIBS += rpcmem
  158. eccverify_DLLS += $(LIB_DSPRPC)
  159. # build ecc verify test app
  160. BUILD_EXES += eccbenchmark
  161. eccbenchmark_C_SRCS += ecc-verify-benchmark
  162. eccbenchmark_DLLS += libwolfssl
  163. eccbenchmark_LD_FLAGS += -lpthread
  164. eccbenchmark_LD_FLAGS += -ldl
  165. eccbenchmark_LIBS += rpcmem
  166. eccbenchmark_DLLS += $(LIB_DSPRPC)
  167. BUILD_COPIES = \
  168. $(DLLS) \
  169. $(EXES) \
  170. $(LIBS) \
  171. $(SHIP_DIR)/ ;
  172. include $(RULES_MIN)