Makefile 3.8 KB

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