Makefile 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. # Makefile
  2. #
  3. # Copyright (C) 2006-2024 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=hexagon
  21. # default to hexagon v65 Release build
  22. ifndef V
  23. V=hexagon_Release_dynamic_toolv83_v65
  24. endif
  25. SUPPORTED_VS = $(default_VS)
  26. DEPENDENCIES = \
  27. ATOMIC \
  28. RPCMEM \
  29. TEST_MAIN \
  30. TEST_UTIL
  31. ATOMIC_DIR = $(HEXAGON_SDK_ROOT)/libs/common/atomic
  32. RPCMEM_DIR = $(HEXAGON_SDK_ROOT)/libs/common/rpcmem
  33. TEST_MAIN_DIR = $(HEXAGON_SDK_ROOT)/test/common/test_main
  34. TEST_UTIL_DIR = $(HEXAGON_SDK_ROOT)/test/common/test_util
  35. include $(HEXAGON_SDK_ROOT)/build/make.d/$(ENVI)_vs.min
  36. include $(HEXAGON_SDK_ROOT)/build/defines.min
  37. QURT = $(HEXAGON_SDK_ROOT)/libs/common/qurt
  38. QAIC_FLAGS += -I../../../
  39. CC_FLAGS += -I../../../
  40. CC_FLAGS += -I $(QURT)/computev65/include/posix/
  41. CC_FLAGS += -I $(QURT)/computev65/include/qurt/
  42. CC_FLAGS += -I../
  43. CC_FLAGS += -DWOLFSSL_USER_SETTINGS
  44. CC_FLAGS += -DWOLFSSL_DSP_BUILD
  45. CC_FLAGS += -DWC_NO_RNG
  46. #CC_FLAGS += -O3
  47. C_FLAGS += $(MHVX_DOUBLE_FLAG) -mllvm -hexagon-eif=0
  48. CC_FLAGS += $(MHVX_DOUBLE_FLAG) -mllvm -hexagon-eif=0
  49. # stub library
  50. BUILD_LIBS += libwolfssl_dsp_skel
  51. ifeq (1,$(V_dynamic))
  52. BUILD_DLLS += libwolfssl_dsp_skel
  53. endif
  54. libwolfssl_dsp_skel_QAICIDLS += wolfssl_dsp
  55. libwolfssl_dsp_skel_C_SRCS += $V/wolfSSL_skel
  56. libwolfssl_dsp_skel.C_SRCS += ../../../wolfcrypt/src/sp_dsp32.c
  57. libwolfssl_dsp_skel.C_SRCS += ../../../wolfcrypt/src/sp_int.c
  58. libwolfssl_dsp_skel.C_SRCS += ../../../wolfcrypt/src/wc_port.c
  59. libwolfssl_dsp_skel.C_SRCS += ../../../wolfcrypt/src/logging.c
  60. libwolfssl_dsp_skel.C_SRCS += ../../../wolfcrypt/src/memory.c
  61. libwolfssl_dsp_skel.C_SRCS += ../../../wolfcrypt/src/wolfmath.c
  62. #libsp_dsp_skel_DLLS += libdspCV_skel
  63. # quality test
  64. #BUILD_QEXES += eccverify_q
  65. #eccverify_q_QAICIDLS = wolfssl_dsp
  66. #eccverify_q_C_SRCS = ../ecc-verify
  67. #eccverify_q.C_SRCS += ../../../wolfcrypt/src/wc_dsp.c
  68. #eccverify_q.C_SRCS += ../../../wolfcrypt/src/sp_dsp32.c
  69. #eccverify_q.C_SRCS += ../../../wolfcrypt/src/sp_int.c
  70. #eccverify_q.C_SRCS += ../../../wolfcrypt/src/wc_port.c
  71. #eccverify_q.C_SRCS += ../../../wolfcrypt/src/wc_encrypt.c
  72. #eccverify_q.C_SRCS += ../../../wolfcrypt/src/pwdbased.c
  73. #eccverify_q.C_SRCS += ../../../wolfcrypt/src/hash.c
  74. #eccverify_q.C_SRCS += ../../../wolfcrypt/src/arc4.c
  75. #eccverify_q.C_SRCS += ../../../wolfcrypt/src/hmac.c
  76. #eccverify_q.C_SRCS += ../../../wolfcrypt/src/md5.c
  77. #eccverify_q.C_SRCS += ../../../wolfcrypt/src/coding.c
  78. #eccverify_q.C_SRCS += ../../../wolfcrypt/src/aes.c
  79. #eccverify_q.C_SRCS += ../../../wolfcrypt/src/des3.c
  80. #eccverify_q.C_SRCS += ../../../wolfcrypt/src/random.c
  81. #eccverify_q.C_SRCS += ../../../wolfcrypt/src/logging.c
  82. #eccverify_q.C_SRCS += ../../../wolfcrypt/src/ecc.c
  83. #eccverify_q.C_SRCS += ../../../wolfcrypt/src/memory.c
  84. #eccverify_q.C_SRCS += ../../../wolfcrypt/src/sha256.c
  85. #eccverify_q.C_SRCS += ../../../wolfcrypt/src/sha.c
  86. #eccverify_q.C_SRCS += ../../../wolfcrypt/src/asn.c
  87. #eccverify_q.C_SRCS += ../../../wolfcrypt/src/wolfmath.c
  88. #eccverify_q.C_SRCS += ../../../wolfcrypt/src/sp_c32.c
  89. #eccverify_q.C_SRCS += ../../../wolfcrypt/src/sp_c64.c
  90. #eccverify_q_LIBS = rtld rpcmem test_util atomic test_main
  91. BUILD_COPIES = \
  92. $(DLLS) \
  93. $(EXES) \
  94. $(LIBS) \
  95. $(SHIP_DIR)/ ;
  96. include $(RULES_MIN)