Makefile.am 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. # includes append to these:
  2. SUFFIXES =
  3. TESTS =
  4. CLEANFILES =
  5. DISTCLEANFILES =
  6. MAINTAINERCLEANFILES =
  7. bin_PROGRAMS =
  8. noinst_HEADERS =
  9. lib_LTLIBRARIES =
  10. man_MANS =
  11. noinst_LTLIBRARIES =
  12. noinst_PROGRAMS =
  13. include_HEADERS =
  14. nobase_include_HEADERS =
  15. check_PROGRAMS =
  16. EXTRA_HEADERS =
  17. BUILT_SOURCES=
  18. EXTRA_DIST=
  19. dist_doc_DATA=
  20. dist_noinst_SCRIPTS =
  21. noinst_SCRIPTS =
  22. check_SCRIPTS =
  23. noinst_DATA =
  24. SUBDIRS_OPT =
  25. DIST_SUBDIRS_OPT =
  26. #includes additional rules from aminclude.am
  27. @INC_AMINCLUDE@
  28. DISTCLEANFILES+= aminclude.am
  29. CLEANFILES+= ecc-key.der \
  30. ecc-public-key.der \
  31. cert.der \
  32. cert.pem \
  33. certecc.der \
  34. certecc.pem \
  35. certreq.der \
  36. certreq.pem \
  37. key.der \
  38. key.pem \
  39. ecc-key-pkcs8.der \
  40. othercert.der \
  41. othercert.pem \
  42. pkcs7cert.der \
  43. pkcs7authEnvelopedDataAES128GCM.der \
  44. pkcs7authEnvelopedDataAES128GCM_ECDH_SHA1KDF.der \
  45. pkcs7authEnvelopedDataAES128GCM_KEKRI.der \
  46. pkcs7authEnvelopedDataAES128GCM_ORI.der \
  47. pkcs7authEnvelopedDataAES128GCM_PWRI.der \
  48. pkcs7authEnvelopedDataAES192GCM.der \
  49. pkcs7authEnvelopedDataAES256GCM.der \
  50. pkcs7authEnvelopedDataAES256GCM_ECDH_SHA256KDF.der \
  51. pkcs7authEnvelopedDataAES256GCM_ECDH_SHA256KDF_authAttribs.der \
  52. pkcs7authEnvelopedDataAES256GCM_ECDH_SHA256KDF_bothAttribs.der \
  53. pkcs7authEnvelopedDataAES256GCM_ECDH_SHA256KDF_fw_bothAttribs.der \
  54. pkcs7authEnvelopedDataAES256GCM_ECDH_SHA256KDF_unauthAttribs.der \
  55. pkcs7authEnvelopedDataAES256GCM_ECDH_SHA512KDF.der \
  56. pkcs7authEnvelopedDataAES256GCM_ECDH_SHA512KDF_ukm.der \
  57. pkcs7authEnvelopedDataAES256GCM_firmwarePkgData.der \
  58. pkcs7authEnvelopedDataAES256GCM_IANDS.der \
  59. pkcs7authEnvelopedDataAES256GCM_SKID.der \
  60. pkcs7compressedData_data_zlib.der \
  61. pkcs7compressedData_firmwarePkgData_zlib.der \
  62. pkcs7encryptedDataAES128CBC.der \
  63. pkcs7encryptedDataAES192CBC.der \
  64. pkcs7encryptedDataAES256CBC_attribs.der \
  65. pkcs7encryptedDataAES256CBC.der \
  66. pkcs7encryptedDataAES256CBC_firmwarePkgData.der \
  67. pkcs7encryptedDataAES256CBC_multi_attribs.der \
  68. pkcs7encryptedDataDES3.der \
  69. pkcs7encryptedDataDES.der \
  70. pkcs7envelopedDataAES256CBC_ECDH.der \
  71. pkcs7envelopedDataAES128CBC_ECDH_SHA1KDF.der \
  72. pkcs7envelopedDataAES256CBC_ECDH_SHA256KDF.der \
  73. pkcs7envelopedDataAES256CBC_ECDH_SHA512KDF.der \
  74. pkcs7envelopedDataAES256CBC_ECDH_SHA512KDF_ukm.der \
  75. pkcs7envelopedDataDES3.der \
  76. pkcs7envelopedDataAES128CBC.der \
  77. pkcs7envelopedDataAES128CBC_KEKRI.der \
  78. pkcs7envelopedDataAES128CBC_PWRI.der \
  79. pkcs7envelopedDataAES128CBC_ORI.der \
  80. pkcs7envelopedDataAES192CBC.der \
  81. pkcs7envelopedDataAES256CBC.der \
  82. pkcs7envelopedDataAES256CBC_IANDS.der \
  83. pkcs7envelopedDataAES256CBC_SKID.der \
  84. pkcs7signedData_RSA_SHA.der \
  85. pkcs7signedData_RSA_SHA_noattr.der \
  86. pkcs7signedData_RSA_SHA224.der \
  87. pkcs7signedData_RSA_SHA256.der \
  88. pkcs7signedData_RSA_SHA256_firmwarePkgData.der \
  89. pkcs7signedData_RSA_SHA256_custom_contentType.der \
  90. pkcs7signedData_RSA_SHA256_with_ca_cert.der \
  91. pkcs7signedData_RSA_SHA256_SKID.der \
  92. pkcs7signedData_RSA_SHA256_detachedSig.der \
  93. pkcs7signedData_RSA_SHA384.der \
  94. pkcs7signedData_RSA_SHA512.der \
  95. pkcs7signedData_ECDSA_SHA.der \
  96. pkcs7signedData_ECDSA_SHA_noattr.der \
  97. pkcs7signedData_ECDSA_SHA224.der \
  98. pkcs7signedData_ECDSA_SHA256.der \
  99. pkcs7signedData_ECDSA_SHA256_firmwarePkgData.der \
  100. pkcs7signedData_ECDSA_SHA256_custom_contentType.der \
  101. pkcs7signedData_ECDSA_SHA256_SKID.der \
  102. pkcs7signedData_ECDSA_SHA384.der \
  103. pkcs7signedData_ECDSA_SHA512.der \
  104. pkcs7signedFirmwarePkgData_ECDSA_SHA256.der \
  105. pkcs7signedFirmwarePkgData_ECDSA_SHA256_SKID.der \
  106. pkcs7signedFirmwarePkgData_ECDSA_SHA256_noattr.der \
  107. pkcs7signedFirmwarePkgData_RSA_SHA256.der \
  108. pkcs7signedFirmwarePkgData_RSA_SHA256_SKID.der \
  109. pkcs7signedFirmwarePkgData_RSA_SHA256_noattr.der \
  110. pkcs7signedFirmwarePkgData_RSA_SHA256_with_ca_cert.der \
  111. pkcs7signedCompressedFirmwarePkgData_ECDSA_SHA256.der \
  112. pkcs7signedCompressedFirmwarePkgData_ECDSA_SHA256_noattr.der \
  113. pkcs7signedCompressedFirmwarePkgData_RSA_SHA256.der \
  114. pkcs7signedCompressedFirmwarePkgData_RSA_SHA256_noattr.der \
  115. pkcs7signedEncryptedFirmwarePkgData_RSA_SHA256.der \
  116. pkcs7signedEncryptedFirmwarePkgData_RSA_SHA256_noattr.der \
  117. pkcs7signedEncryptedFirmwarePkgData_ECDSA_SHA256.der \
  118. pkcs7signedEncryptedFirmwarePkgData_ECDSA_SHA256_noattr.der \
  119. pkcs7signedEncryptedCompressedFirmwarePkgData_ECDSA_SHA256.der \
  120. pkcs7signedEncryptedCompressedFirmwarePkgData_ECDSA_SHA256_noattr.der \
  121. pkcs7signedEncryptedCompressedFirmwarePkgData_RSA_SHA256.der \
  122. pkcs7signedEncryptedCompressedFirmwarePkgData_RSA_SHA256_noattr.der \
  123. tests/test-log-dump-to-file.txt \
  124. MyKeyLog.txt
  125. exampledir = $(docdir)/example
  126. dist_example_DATA=
  127. ACLOCAL_AMFLAGS= -I m4
  128. EXTRA_DIST+= lib/dummy
  129. EXTRA_DIST+= wolfssl.vcproj
  130. EXTRA_DIST+= wolfssl.vcxproj
  131. EXTRA_DIST+= wolfssl.sln
  132. EXTRA_DIST+= wolfssl64.sln
  133. EXTRA_DIST+= valgrind-error.sh
  134. EXTRA_DIST+= valgrind-bash.supp
  135. EXTRA_DIST+= fips-hash.sh
  136. EXTRA_DIST+= gencertbuf.pl
  137. EXTRA_DIST+= README.md
  138. EXTRA_DIST+= README
  139. EXTRA_DIST+= ChangeLog.md
  140. EXTRA_DIST+= LICENSING
  141. EXTRA_DIST+= INSTALL
  142. EXTRA_DIST+= IPP
  143. EXTRA_DIST+= LPCExpresso.cproject
  144. EXTRA_DIST+= LPCExpresso.project
  145. EXTRA_DIST+= resource.h wolfssl.rc
  146. EXTRA_DIST+= CMakeLists.txt
  147. include cmake/include.am
  148. include wrapper/include.am
  149. include cyassl/include.am
  150. include wolfssl/include.am
  151. include certs/include.am
  152. include doc/include.am
  153. include swig/include.am
  154. include src/include.am
  155. include support/include.am
  156. include wolfcrypt/user-crypto/include.am
  157. include wolfcrypt/benchmark/include.am
  158. include wolfcrypt/src/include.am
  159. include wolfcrypt/test/include.am
  160. include examples/include.am
  161. include testsuite/include.am
  162. include tests/include.am
  163. include sslSniffer/sslSnifferTest/include.am
  164. include rpm/include.am
  165. include linuxkm/include.am
  166. include zephyr/include.am
  167. # Exclude references to non-DFSG sources from build files
  168. if !BUILD_DISTRO
  169. include mqx/util_lib/Sources/include.am
  170. include mqx/wolfcrypt_benchmark/Sources/include.am
  171. include mqx/wolfcrypt_test/Sources/include.am
  172. include mqx/wolfssl/include.am
  173. include mqx/wolfssl_client/Sources/include.am
  174. include mplabx/include.am
  175. include mplabx/wolfcrypt_benchmark.X/nbproject/include.am
  176. include mplabx/wolfcrypt_test.X/nbproject/include.am
  177. include mplabx/wolfssl.X/nbproject/include.am
  178. include mcapi/include.am
  179. include mcapi/wolfcrypt_mcapi.X/nbproject/include.am
  180. include mcapi/wolfcrypt_test.X/nbproject/include.am
  181. include mcapi/wolfssl.X/nbproject/include.am
  182. include mcapi/zlib.X/nbproject/include.am
  183. include tirtos/include.am
  184. include IDE/include.am
  185. endif
  186. include scripts/include.am
  187. if BUILD_LINUXKM
  188. # rather than setting $SUBDIRS here directly, we set an auxiliary variable.
  189. # autotools see the SUBDIRS assignment here even if BUILD_LINUXKM is false,
  190. # at least for purposes of recursing for "make distdir", which we don't want to happen.
  191. SUBDIRS_OPT += linuxkm
  192. DIST_SUBDIRS_OPT += linuxkm
  193. export KERNEL_ROOT KERNEL_ARCH KERNEL_EXTRA_CFLAGS AM_CFLAGS CFLAGS AM_CCASFLAGS CCASFLAGS \
  194. src_libwolfssl_la_OBJECTS ENABLED_CRYPT_TESTS ENABLED_LINUXKM_PIE ENABLED_ASM \
  195. CFLAGS_FPU_DISABLE CFLAGS_FPU_ENABLE CFLAGS_SIMD_DISABLE CFLAGS_SIMD_ENABLE \
  196. CFLAGS_AUTO_VECTORIZE_DISABLE CFLAGS_AUTO_VECTORIZE_ENABLE \
  197. ASFLAGS_FPU_DISABLE_SIMD_ENABLE ASFLAGS_FPU_ENABLE_SIMD_DISABLE \
  198. ASFLAGS_FPUSIMD_DISABLE ASFLAGS_FPUSIMD_ENABLE
  199. module:
  200. +$(MAKE) -C linuxkm libwolfssl.ko
  201. clean_module:
  202. +$(MAKE) -C linuxkm clean
  203. install_module modules_install:
  204. +$(MAKE) -C linuxkm modules_install
  205. endif
  206. if USE_VALGRIND
  207. TESTS_ENVIRONMENT=./valgrind-error.sh
  208. endif
  209. TEST_EXTENSIONS=.test
  210. TESTS += $(check_PROGRAMS)
  211. check_SCRIPTS+= $(dist_noinst_SCRIPTS)
  212. TESTS += $(check_SCRIPTS)
  213. test: check
  214. tests/unit.log: testsuite/testsuite.log
  215. scripts/unit.log: testsuite/testsuite.log
  216. DISTCLEANFILES+= cyassl-config
  217. DISTCLEANFILES+= wolfssl-config
  218. MAINTAINERCLEANFILES+= wolfssl/wolfcrypt/async.h
  219. MAINTAINERCLEANFILES+= wolfssl/wolfcrypt/fips.h
  220. MAINTAINERCLEANFILES+= wolfssl/wolfcrypt/port/cavium/cavium_nitrox.h
  221. MAINTAINERCLEANFILES+= wolfssl/wolfcrypt/port/intel/quickassist.h
  222. MAINTAINERCLEANFILES+= wolfssl/wolfcrypt/port/intel/quickassist_mem.h
  223. SUBDIRS=$(SUBDIRS_OPT)
  224. DIST_SUBDIRS=$(DIST_SUBDIRS_OPT)
  225. maintainer-clean-local:
  226. -rm Makefile.in
  227. -rm aclocal.m4
  228. -rm build-aux/compile
  229. -rm build-aux/config.guess
  230. -rm build-aux/config.sub
  231. -rm build-aux/depcomp
  232. -rm build-aux/install-sh
  233. -rm build-aux/ltmain.sh
  234. -rm build-aux/missing
  235. -rm cyassl-config
  236. -rmdir build-aux
  237. -rm configure
  238. -rm config.log
  239. -rm config.status
  240. -rm config.in
  241. -rm m4/libtool.m4
  242. -rm m4/ltoptions.m4
  243. -rm m4/ltsugar.m4
  244. -rm m4/ltversion.m4
  245. -rm m4/lt~obsolete.m4
  246. -rm support/wolfssl.pc
  247. find . -type f -name '*~' -exec rm -f '{}' \;
  248. -rm -f @PACKAGE@-*.tar.gz
  249. -rm -f @PACKAGE@-*.rpm
  250. # !!!! first line of rule has to start with a hard (real) tab, not spaces
  251. egs:
  252. $(MAKE) examples/client/client; \
  253. $(MAKE) examples/echoclient/echoclient;\
  254. $(MAKE) examples/server/server; \
  255. $(MAKE) examples/echoserver/echoserver;
  256. wc_egs:
  257. $(MAKE) wolfcrypt/test/testwolfcrypt; \
  258. $(MAKE) wolfcrypt/benchmark/benchmark;
  259. install-exec-local: install-generic-config
  260. install-generic-config:
  261. $(mkinstalldirs) $(DESTDIR)$(bindir)
  262. $(INSTALL_SCRIPT) @GENERIC_CONFIG@ $(DESTDIR)$(bindir)
  263. uninstall-local:
  264. -rm -f $(DESTDIR)$(bindir)/@GENERIC_CONFIG@
  265. merge-clean:
  266. @find ./ | $(GREP) \.gcda | xargs rm -f
  267. @find ./ | $(GREP) \.gcno | xargs rm -f
  268. @find ./ | $(GREP) \.gz | xargs rm -f
  269. @find ./ | $(GREP) \.orig | xargs rm -f
  270. @find ./ | $(GREP) \.rej | xargs rm -f
  271. @find ./ | $(GREP) \.rpm | xargs rm -f
  272. @find ./ | $(GREP) \.THIS | xargs rm -f
  273. @find ./ | $(GREP) \.OTHER | xargs rm -f
  274. @find ./ | $(GREP) \.BASE | xargs rm -f
  275. @find ./ | $(GREP) \~$$ | xargs rm -f