Makefile.am 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541
  1. #***************************************************************************
  2. # _ _ ____ _
  3. # Project ___| | | | _ \| |
  4. # / __| | | | |_) | |
  5. # | (__| |_| | _ <| |___
  6. # \___|\___/|_| \_\_____|
  7. #
  8. # Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
  9. #
  10. # This software is licensed as described in the file COPYING, which
  11. # you should have received as part of this distribution. The terms
  12. # are also available at https://curl.se/docs/copyright.html.
  13. #
  14. # You may opt to use, copy, modify, merge, publish, distribute and/or sell
  15. # copies of the Software, and permit persons to whom the Software is
  16. # furnished to do so, under the terms of the COPYING file.
  17. #
  18. # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
  19. # KIND, either express or implied.
  20. #
  21. # SPDX-License-Identifier: curl
  22. #
  23. ###########################################################################
  24. AUTOMAKE_OPTIONS = foreign
  25. ACLOCAL_AMFLAGS = -I m4
  26. CMAKE_DIST = \
  27. CMake/cmake_uninstall.cmake.in \
  28. CMake/CMakeConfigurableFile.in \
  29. CMake/curl-config.cmake.in \
  30. CMake/CurlSymbolHiding.cmake \
  31. CMake/CurlTests.c \
  32. CMake/FindBearSSL.cmake \
  33. CMake/FindBrotli.cmake \
  34. CMake/FindCARES.cmake \
  35. CMake/FindGSS.cmake \
  36. CMake/FindLibPSL.cmake \
  37. CMake/FindLibSSH2.cmake \
  38. CMake/FindMbedTLS.cmake \
  39. CMake/FindMSH3.cmake \
  40. CMake/FindNGHTTP2.cmake \
  41. CMake/FindNGHTTP3.cmake \
  42. CMake/FindNGTCP2.cmake \
  43. CMake/FindQUICHE.cmake \
  44. CMake/FindWolfSSL.cmake \
  45. CMake/FindZstd.cmake \
  46. CMake/Macros.cmake \
  47. CMake/OtherTests.cmake \
  48. CMake/PickyWarnings.cmake \
  49. CMake/Platforms/WindowsCache.cmake \
  50. CMake/Utilities.cmake \
  51. CMakeLists.txt
  52. VC14_LIBTMPL = projects/Windows/VC14/lib/libcurl.tmpl
  53. VC14_LIBVCXPROJ = projects/Windows/VC14/lib/libcurl.vcxproj.dist
  54. VC14_LIBVCXPROJ_DEPS = $(VC14_LIBTMPL) Makefile.am lib/Makefile.inc
  55. VC14_SRCTMPL = projects/Windows/VC14/src/curl.tmpl
  56. VC14_SRCVCXPROJ = projects/Windows/VC14/src/curl.vcxproj.dist
  57. VC14_SRCVCXPROJ_DEPS = $(VC14_SRCTMPL) Makefile.am src/Makefile.inc
  58. VC14_10_LIBTMPL = projects/Windows/VC14.10/lib/libcurl.tmpl
  59. VC14_10_LIBVCXPROJ = projects/Windows/VC14.10/lib/libcurl.vcxproj.dist
  60. VC14_10_LIBVCXPROJ_DEPS = $(VC14_10_LIBTMPL) Makefile.am lib/Makefile.inc
  61. VC14_10_SRCTMPL = projects/Windows/VC14.10/src/curl.tmpl
  62. VC14_10_SRCVCXPROJ = projects/Windows/VC14.10/src/curl.vcxproj.dist
  63. VC14_10_SRCVCXPROJ_DEPS = $(VC14_10_SRCTMPL) Makefile.am src/Makefile.inc
  64. VC14_20_LIBTMPL = projects/Windows/VC14.20/lib/libcurl.tmpl
  65. VC14_20_LIBVCXPROJ = projects/Windows/VC14.20/lib/libcurl.vcxproj.dist
  66. VC14_20_LIBVCXPROJ_DEPS = $(VC14_20_LIBTMPL) Makefile.am lib/Makefile.inc
  67. VC14_20_SRCTMPL = projects/Windows/VC14.20/src/curl.tmpl
  68. VC14_20_SRCVCXPROJ = projects/Windows/VC14.20/src/curl.vcxproj.dist
  69. VC14_20_SRCVCXPROJ_DEPS = $(VC14_20_SRCTMPL) Makefile.am src/Makefile.inc
  70. VC14_30_LIBTMPL = projects/Windows/VC14.30/lib/libcurl.tmpl
  71. VC14_30_LIBVCXPROJ = projects/Windows/VC14.30/lib/libcurl.vcxproj.dist
  72. VC14_30_LIBVCXPROJ_DEPS = $(VC14_30_LIBTMPL) Makefile.am lib/Makefile.inc
  73. VC14_30_SRCTMPL = projects/Windows/VC14.30/src/curl.tmpl
  74. VC14_30_SRCVCXPROJ = projects/Windows/VC14.30/src/curl.vcxproj.dist
  75. VC14_30_SRCVCXPROJ_DEPS = $(VC14_30_SRCTMPL) Makefile.am src/Makefile.inc
  76. VC_DIST = projects/README.md \
  77. projects/build-openssl.bat \
  78. projects/build-wolfssl.bat \
  79. projects/checksrc.bat \
  80. projects/Windows/VC14/curl-all.sln \
  81. projects/Windows/VC14/lib/libcurl.sln \
  82. projects/Windows/VC14/lib/libcurl.vcxproj.filters \
  83. projects/Windows/VC14/src/curl.sln \
  84. projects/Windows/VC14/src/curl.vcxproj.filters \
  85. projects/Windows/VC14.10/curl-all.sln \
  86. projects/Windows/VC14.10/lib/libcurl.sln \
  87. projects/Windows/VC14.10/lib/libcurl.vcxproj.filters \
  88. projects/Windows/VC14.10/src/curl.sln \
  89. projects/Windows/VC14.10/src/curl.vcxproj.filters \
  90. projects/Windows/VC14.20/curl-all.sln \
  91. projects/Windows/VC14.20/lib/libcurl.sln \
  92. projects/Windows/VC14.20/lib/libcurl.vcxproj.filters \
  93. projects/Windows/VC14.20/src/curl.sln \
  94. projects/Windows/VC14.20/src/curl.vcxproj.filters \
  95. projects/Windows/VC14.30/curl-all.sln \
  96. projects/Windows/VC14.30/lib/libcurl.sln \
  97. projects/Windows/VC14.30/lib/libcurl.vcxproj.filters \
  98. projects/Windows/VC14.30/src/curl.sln \
  99. projects/Windows/VC14.30/src/curl.vcxproj.filters \
  100. projects/generate.bat \
  101. projects/wolfssl_options.h \
  102. projects/wolfssl_override.props
  103. WINBUILD_DIST = winbuild/README.md winbuild/gen_resp_file.bat \
  104. winbuild/MakefileBuild.vc winbuild/Makefile.vc
  105. PLAN9_DIST = plan9/include/mkfile \
  106. plan9/include/mkfile \
  107. plan9/mkfile.proto \
  108. plan9/mkfile \
  109. plan9/README \
  110. plan9/lib/mkfile.inc \
  111. plan9/lib/mkfile \
  112. plan9/src/mkfile.inc \
  113. plan9/src/mkfile
  114. EXTRA_DIST = CHANGES COPYING maketgz Makefile.dist curl-config.in \
  115. RELEASE-NOTES buildconf libcurl.pc.in MacOSX-Framework $(CMAKE_DIST) \
  116. $(VC_DIST) $(WINBUILD_DIST) $(PLAN9_DIST) lib/libcurl.vers.in buildconf.bat \
  117. libcurl.def
  118. CLEANFILES = $(VC14_LIBVCXPROJ) $(VC14_SRCVCXPROJ) \
  119. $(VC14_10_LIBVCXPROJ) $(VC14_10_SRCVCXPROJ) \
  120. $(VC14_20_LIBVCXPROJ) $(VC14_20_SRCVCXPROJ) \
  121. $(VC14_30_LIBVCXPROJ) $(VC14_30_SRCVCXPROJ)
  122. bin_SCRIPTS = curl-config
  123. SUBDIRS = lib src
  124. DIST_SUBDIRS = $(SUBDIRS) tests packages scripts include docs
  125. pkgconfigdir = $(libdir)/pkgconfig
  126. pkgconfig_DATA = libcurl.pc
  127. # List of files required to generate VC IDE .dsp, .vcproj and .vcxproj files
  128. include lib/Makefile.inc
  129. include src/Makefile.inc
  130. dist-hook:
  131. rm -rf $(top_builddir)/tests/log
  132. find $(distdir) -name "*.dist" -exec rm {} \;
  133. (distit=`find $(srcdir) -name "*.dist" | grep -v ./ares/`; \
  134. for file in $$distit; do \
  135. strip=`echo $$file | sed -e s/^$(srcdir)// -e s/\.dist//`; \
  136. cp -p $$file $(distdir)$$strip; \
  137. done)
  138. check: test examples check-docs
  139. if CROSSCOMPILING
  140. test-full: test
  141. test-torture: test
  142. test:
  143. @echo "NOTICE: we can't run the tests when cross-compiling!"
  144. else
  145. test:
  146. @(cd tests; $(MAKE) all quiet-test)
  147. test-full:
  148. @(cd tests; $(MAKE) all full-test)
  149. test-nonflaky:
  150. @(cd tests; $(MAKE) all nonflaky-test)
  151. test-torture:
  152. @(cd tests; $(MAKE) all torture-test)
  153. test-event:
  154. @(cd tests; $(MAKE) all event-test)
  155. test-am:
  156. @(cd tests; $(MAKE) all am-test)
  157. test-ci:
  158. @(cd tests; $(MAKE) all ci-test)
  159. endif
  160. examples:
  161. @(cd docs/examples; $(MAKE) check)
  162. check-docs:
  163. @(cd docs/libcurl; $(MAKE) check)
  164. # Build source and binary rpms. For rpm-3.0 and above, the ~/.rpmmacros
  165. # must contain the following line:
  166. # %_topdir /home/loic/local/rpm
  167. # and that /home/loic/local/rpm contains the directory SOURCES, BUILD etc.
  168. #
  169. # cd /home/loic/local/rpm ; mkdir -p SOURCES BUILD RPMS/i386 SPECS SRPMS
  170. #
  171. # If additional configure flags are needed to build the package, add the
  172. # following in ~/.rpmmacros
  173. # %configure CFLAGS="%{optflags}" ./configure %{_target_platform} --prefix=%{_prefix} ${AM_CONFIGFLAGS}
  174. # and run make rpm in the following way:
  175. # AM_CONFIGFLAGS='--with-uri=/home/users/loic/local/RedHat-6.2' make rpm
  176. #
  177. rpms:
  178. $(MAKE) RPMDIST=curl rpm
  179. $(MAKE) RPMDIST=curl-ssl rpm
  180. rpm:
  181. RPM_TOPDIR=`rpm --showrc | $(PERL) -n -e 'print if(s/.*_topdir\s+(.*)/$$1/)'` ; \
  182. cp $(srcdir)/packages/Linux/RPM/$(RPMDIST).spec $$RPM_TOPDIR/SPECS ; \
  183. cp $(PACKAGE)-$(VERSION).tar.gz $$RPM_TOPDIR/SOURCES ; \
  184. rpm -ba --clean --rmsource $$RPM_TOPDIR/SPECS/$(RPMDIST).spec ; \
  185. mv $$RPM_TOPDIR/RPMS/i386/$(RPMDIST)-*.rpm . ; \
  186. mv $$RPM_TOPDIR/SRPMS/$(RPMDIST)-*.src.rpm .
  187. #
  188. # Build a Solaris pkgadd format file
  189. # run 'make pkgadd' once you've done './configure' and 'make' to make a Solaris pkgadd format
  190. # file (which ends up back in this directory).
  191. # The pkgadd file is in 'pkgtrans' format, so to install on Solaris, do
  192. # pkgadd -d ./HAXXcurl-*
  193. #
  194. # gak - libtool requires an absolute directory, hence the pwd below...
  195. pkgadd:
  196. umask 022 ; \
  197. $(MAKE) install DESTDIR=`/bin/pwd`/packages/Solaris/root ; \
  198. cat COPYING > $(srcdir)/packages/Solaris/copyright ; \
  199. cd $(srcdir)/packages/Solaris && $(MAKE) package
  200. #
  201. # Build a cygwin binary tarball installation file
  202. # resulting .tar.bz2 file will end up at packages/Win32/cygwin
  203. cygwinbin:
  204. $(MAKE) -C packages/Win32/cygwin cygwinbin
  205. # We extend the standard install with a custom hook:
  206. if BUILD_DOCS
  207. install-data-hook:
  208. (cd include && $(MAKE) install)
  209. (cd docs && $(MAKE) install)
  210. (cd docs/libcurl && $(MAKE) install)
  211. else
  212. install-data-hook:
  213. (cd include && $(MAKE) install)
  214. (cd docs && $(MAKE) install)
  215. endif
  216. # We extend the standard uninstall with a custom hook:
  217. uninstall-hook:
  218. (cd include && $(MAKE) uninstall)
  219. (cd docs && $(MAKE) uninstall)
  220. (cd docs/libcurl && $(MAKE) uninstall)
  221. ca-bundle: $(srcdir)/scripts/mk-ca-bundle.pl
  222. @echo "generating a fresh ca-bundle.crt"
  223. @perl $(srcdir)/scripts/mk-ca-bundle.pl -b -l -u lib/ca-bundle.crt
  224. ca-firefox: $(srcdir)/scripts/firefox-db2pem.sh
  225. @echo "generating a fresh ca-bundle.crt"
  226. $(srcdir)/scripts/firefox-db2pem.sh lib/ca-bundle.crt
  227. checksrc:
  228. (cd lib && $(MAKE) checksrc)
  229. (cd src && $(MAKE) checksrc)
  230. (cd tests && $(MAKE) checksrc)
  231. (cd include/curl && $(MAKE) checksrc)
  232. (cd docs/examples && $(MAKE) checksrc)
  233. (cd packages && $(MAKE) checksrc)
  234. .PHONY: vc-ide
  235. vc-ide: $(VC14_LIBVCXPROJ_DEPS) $(VC14_SRCVCXPROJ_DEPS) \
  236. $(VC14_10_LIBVCXPROJ_DEPS) $(VC14_10_SRCVCXPROJ_DEPS) \
  237. $(VC14_20_LIBVCXPROJ_DEPS) $(VC14_20_SRCVCXPROJ_DEPS) \
  238. $(VC14_30_LIBVCXPROJ_DEPS) $(VC14_30_SRCVCXPROJ_DEPS)
  239. @(win32_lib_srcs='$(LIB_CFILES)'; \
  240. win32_lib_hdrs='$(LIB_HFILES) config-win32.h'; \
  241. win32_lib_rc='$(LIB_RCFILES)'; \
  242. win32_lib_vauth_srcs='$(LIB_VAUTH_CFILES)'; \
  243. win32_lib_vauth_hdrs='$(LIB_VAUTH_HFILES)'; \
  244. win32_lib_vquic_srcs='$(LIB_VQUIC_CFILES)'; \
  245. win32_lib_vquic_hdrs='$(LIB_VQUIC_HFILES)'; \
  246. win32_lib_vssh_srcs='$(LIB_VSSH_CFILES)'; \
  247. win32_lib_vssh_hdrs='$(LIB_VSSH_HFILES)'; \
  248. win32_lib_vtls_srcs='$(LIB_VTLS_CFILES)'; \
  249. win32_lib_vtls_hdrs='$(LIB_VTLS_HFILES)'; \
  250. win32_src_srcs='$(CURL_CFILES)'; \
  251. win32_src_hdrs='$(CURL_HFILES)'; \
  252. win32_src_rc='$(CURL_RCFILES)'; \
  253. win32_src_x_srcs='$(CURLX_CFILES)'; \
  254. win32_src_x_hdrs='$(CURLX_HFILES) ../lib/config-win32.h'; \
  255. \
  256. sorted_lib_srcs=`for file in $$win32_lib_srcs; do echo $$file; done | sort`; \
  257. sorted_lib_hdrs=`for file in $$win32_lib_hdrs; do echo $$file; done | sort`; \
  258. sorted_lib_vauth_srcs=`for file in $$win32_lib_vauth_srcs; do echo $$file; done | sort`; \
  259. sorted_lib_vauth_hdrs=`for file in $$win32_lib_vauth_hdrs; do echo $$file; done | sort`; \
  260. sorted_lib_vquic_srcs=`for file in $$win32_lib_vquic_srcs; do echo $$file; done | sort`; \
  261. sorted_lib_vquic_hdrs=`for file in $$win32_lib_vquic_hdrs; do echo $$file; done | sort`; \
  262. sorted_lib_vssh_srcs=`for file in $$win32_lib_vssh_srcs; do echo $$file; done | sort`; \
  263. sorted_lib_vssh_hdrs=`for file in $$win32_lib_vssh_hdrs; do echo $$file; done | sort`; \
  264. sorted_lib_vtls_srcs=`for file in $$win32_lib_vtls_srcs; do echo $$file; done | sort`; \
  265. sorted_lib_vtls_hdrs=`for file in $$win32_lib_vtls_hdrs; do echo $$file; done | sort`; \
  266. sorted_src_srcs=`for file in $$win32_src_srcs; do echo $$file; done | sort`; \
  267. sorted_src_hdrs=`for file in $$win32_src_hdrs; do echo $$file; done | sort`; \
  268. sorted_src_x_srcs=`for file in $$win32_src_x_srcs; do echo $$file; done | sort`; \
  269. sorted_src_x_hdrs=`for file in $$win32_src_x_hdrs; do echo $$file; done | sort`; \
  270. \
  271. awk_code='\
  272. function gen_element(type, dir, file)\
  273. {\
  274. sub(/vauth\//, "", file);\
  275. sub(/vquic\//, "", file);\
  276. sub(/vssh\//, "", file);\
  277. sub(/vtls\//, "", file);\
  278. \
  279. spaces=" ";\
  280. if(dir == "lib\\vauth" ||\
  281. dir == "lib\\vquic" ||\
  282. dir == "lib\\vssh" ||\
  283. dir == "lib\\vtls")\
  284. tabs=" ";\
  285. else\
  286. tabs=" ";\
  287. \
  288. if(type == "dsp") {\
  289. printf("# Begin Source File\r\n");\
  290. printf("\r\n");\
  291. printf("SOURCE=..\\..\\..\\..\\%s\\%s\r\n", dir, file);\
  292. printf("# End Source File\r\n");\
  293. }\
  294. else if(type == "vcproj1") {\
  295. printf("%s<File\r\n", tabs);\
  296. printf("%s RelativePath=\"..\\..\\..\\..\\%s\\%s\">\r\n",\
  297. tabs, dir, file);\
  298. printf("%s</File>\r\n", tabs);\
  299. }\
  300. else if(type == "vcproj2") {\
  301. printf("%s<File\r\n", tabs);\
  302. printf("%s RelativePath=\"..\\..\\..\\..\\%s\\%s\"\r\n",\
  303. tabs, dir, file);\
  304. printf("%s>\r\n", tabs);\
  305. printf("%s</File>\r\n", tabs);\
  306. }\
  307. else if(type == "vcxproj") {\
  308. i = index(file, ".");\
  309. ext = substr(file, i == 0 ? 0 : i + 1);\
  310. \
  311. if(ext == "c")\
  312. printf("%s<ClCompile Include=\"..\\..\\..\\..\\%s\\%s\" />\r\n",\
  313. spaces, dir, file);\
  314. else if(ext == "h")\
  315. printf("%s<ClInclude Include=\"..\\..\\..\\..\\%s\\%s\" />\r\n",\
  316. spaces, dir, file);\
  317. else if(ext == "rc")\
  318. printf("%s<ResourceCompile Include=\"..\\..\\..\\..\\%s\\%s\" />\r\n",\
  319. spaces, dir, file);\
  320. }\
  321. }\
  322. \
  323. {\
  324. \
  325. if($$0 == "CURL_LIB_C_FILES") {\
  326. split(lib_srcs, arr);\
  327. for(val in arr) gen_element(proj_type, "lib", arr[val]);\
  328. }\
  329. else if($$0 == "CURL_LIB_H_FILES") {\
  330. split(lib_hdrs, arr);\
  331. for(val in arr) gen_element(proj_type, "lib", arr[val]);\
  332. }\
  333. else if($$0 == "CURL_LIB_RC_FILES") {\
  334. split(lib_rc, arr);\
  335. for(val in arr) gen_element(proj_type, "lib", arr[val]);\
  336. }\
  337. else if($$0 == "CURL_LIB_VAUTH_C_FILES") {\
  338. split(lib_vauth_srcs, arr);\
  339. for(val in arr) gen_element(proj_type, "lib\\vauth", arr[val]);\
  340. }\
  341. else if($$0 == "CURL_LIB_VAUTH_H_FILES") {\
  342. split(lib_vauth_hdrs, arr);\
  343. for(val in arr) gen_element(proj_type, "lib\\vauth", arr[val]);\
  344. }\
  345. else if($$0 == "CURL_LIB_VQUIC_C_FILES") {\
  346. split(lib_vquic_srcs, arr);\
  347. for(val in arr) gen_element(proj_type, "lib\\vquic", arr[val]);\
  348. }\
  349. else if($$0 == "CURL_LIB_VQUIC_H_FILES") {\
  350. split(lib_vquic_hdrs, arr);\
  351. for(val in arr) gen_element(proj_type, "lib\\vquic", arr[val]);\
  352. }\
  353. else if($$0 == "CURL_LIB_VSSH_C_FILES") {\
  354. split(lib_vssh_srcs, arr);\
  355. for(val in arr) gen_element(proj_type, "lib\\vssh", arr[val]);\
  356. }\
  357. else if($$0 == "CURL_LIB_VSSH_H_FILES") {\
  358. split(lib_vssh_hdrs, arr);\
  359. for(val in arr) gen_element(proj_type, "lib\\vssh", arr[val]);\
  360. }\
  361. else if($$0 == "CURL_LIB_VTLS_C_FILES") {\
  362. split(lib_vtls_srcs, arr);\
  363. for(val in arr) gen_element(proj_type, "lib\\vtls", arr[val]);\
  364. }\
  365. else if($$0 == "CURL_LIB_VTLS_H_FILES") {\
  366. split(lib_vtls_hdrs, arr);\
  367. for(val in arr) gen_element(proj_type, "lib\\vtls", arr[val]);\
  368. }\
  369. else if($$0 == "CURL_SRC_C_FILES") {\
  370. split(src_srcs, arr);\
  371. for(val in arr) gen_element(proj_type, "src", arr[val]);\
  372. }\
  373. else if($$0 == "CURL_SRC_H_FILES") {\
  374. split(src_hdrs, arr);\
  375. for(val in arr) gen_element(proj_type, "src", arr[val]);\
  376. }\
  377. else if($$0 == "CURL_SRC_RC_FILES") {\
  378. split(src_rc, arr);\
  379. for(val in arr) gen_element(proj_type, "src", arr[val]);\
  380. }\
  381. else if($$0 == "CURL_SRC_X_C_FILES") {\
  382. split(src_x_srcs, arr);\
  383. for(val in arr) {\
  384. sub(/..\/lib\//, "", arr[val]);\
  385. gen_element(proj_type, "lib", arr[val]);\
  386. }\
  387. }\
  388. else if($$0 == "CURL_SRC_X_H_FILES") {\
  389. split(src_x_hdrs, arr);\
  390. for(val in arr) {\
  391. sub(/..\/lib\//, "", arr[val]);\
  392. gen_element(proj_type, "lib", arr[val]);\
  393. }\
  394. }\
  395. else\
  396. printf("%s\r\n", $$0);\
  397. }';\
  398. \
  399. echo "generating '$(VC14_LIBVCXPROJ)'"; \
  400. awk -v proj_type=vcxproj \
  401. -v lib_srcs="$$sorted_lib_srcs" \
  402. -v lib_hdrs="$$sorted_lib_hdrs" \
  403. -v lib_rc="$$win32_lib_rc" \
  404. -v lib_vauth_srcs="$$sorted_lib_vauth_srcs" \
  405. -v lib_vauth_hdrs="$$sorted_lib_vauth_hdrs" \
  406. -v lib_vquic_srcs="$$sorted_lib_vquic_srcs" \
  407. -v lib_vquic_hdrs="$$sorted_lib_vquic_hdrs" \
  408. -v lib_vssh_srcs="$$sorted_lib_vssh_srcs" \
  409. -v lib_vssh_hdrs="$$sorted_lib_vssh_hdrs" \
  410. -v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
  411. -v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
  412. "$$awk_code" $(srcdir)/$(VC14_LIBTMPL) > $(VC14_LIBVCXPROJ) || { exit 1; }; \
  413. \
  414. echo "generating '$(VC14_SRCVCXPROJ)'"; \
  415. awk -v proj_type=vcxproj \
  416. -v src_srcs="$$sorted_src_srcs" \
  417. -v src_hdrs="$$sorted_src_hdrs" \
  418. -v src_rc="$$win32_src_rc" \
  419. -v src_x_srcs="$$sorted_src_x_srcs" \
  420. -v src_x_hdrs="$$sorted_src_x_hdrs" \
  421. "$$awk_code" $(srcdir)/$(VC14_SRCTMPL) > $(VC14_SRCVCXPROJ) || { exit 1; }; \
  422. \
  423. echo "generating '$(VC14_10_LIBVCXPROJ)'"; \
  424. awk -v proj_type=vcxproj \
  425. -v lib_srcs="$$sorted_lib_srcs" \
  426. -v lib_hdrs="$$sorted_lib_hdrs" \
  427. -v lib_rc="$$win32_lib_rc" \
  428. -v lib_vauth_srcs="$$sorted_lib_vauth_srcs" \
  429. -v lib_vauth_hdrs="$$sorted_lib_vauth_hdrs" \
  430. -v lib_vquic_srcs="$$sorted_lib_vquic_srcs" \
  431. -v lib_vquic_hdrs="$$sorted_lib_vquic_hdrs" \
  432. -v lib_vssh_srcs="$$sorted_lib_vssh_srcs" \
  433. -v lib_vssh_hdrs="$$sorted_lib_vssh_hdrs" \
  434. -v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
  435. -v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
  436. "$$awk_code" $(srcdir)/$(VC14_10_LIBTMPL) > $(VC14_10_LIBVCXPROJ) || { exit 1; }; \
  437. \
  438. echo "generating '$(VC14_10_SRCVCXPROJ)'"; \
  439. awk -v proj_type=vcxproj \
  440. -v src_srcs="$$sorted_src_srcs" \
  441. -v src_hdrs="$$sorted_src_hdrs" \
  442. -v src_rc="$$win32_src_rc" \
  443. -v src_x_srcs="$$sorted_src_x_srcs" \
  444. -v src_x_hdrs="$$sorted_src_x_hdrs" \
  445. "$$awk_code" $(srcdir)/$(VC14_10_SRCTMPL) > $(VC14_10_SRCVCXPROJ) || { exit 1; }; \
  446. \
  447. echo "generating '$(VC14_20_LIBVCXPROJ)'"; \
  448. awk -v proj_type=vcxproj \
  449. -v lib_srcs="$$sorted_lib_srcs" \
  450. -v lib_hdrs="$$sorted_lib_hdrs" \
  451. -v lib_rc="$$win32_lib_rc" \
  452. -v lib_vauth_srcs="$$sorted_lib_vauth_srcs" \
  453. -v lib_vauth_hdrs="$$sorted_lib_vauth_hdrs" \
  454. -v lib_vquic_srcs="$$sorted_lib_vquic_srcs" \
  455. -v lib_vquic_hdrs="$$sorted_lib_vquic_hdrs" \
  456. -v lib_vssh_srcs="$$sorted_lib_vssh_srcs" \
  457. -v lib_vssh_hdrs="$$sorted_lib_vssh_hdrs" \
  458. -v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
  459. -v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
  460. "$$awk_code" $(srcdir)/$(VC14_20_LIBTMPL) > $(VC14_20_LIBVCXPROJ) || { exit 1; }; \
  461. \
  462. echo "generating '$(VC14_20_SRCVCXPROJ)'"; \
  463. awk -v proj_type=vcxproj \
  464. -v src_srcs="$$sorted_src_srcs" \
  465. -v src_hdrs="$$sorted_src_hdrs" \
  466. -v src_rc="$$win32_src_rc" \
  467. -v src_x_srcs="$$sorted_src_x_srcs" \
  468. -v src_x_hdrs="$$sorted_src_x_hdrs" \
  469. "$$awk_code" $(srcdir)/$(VC14_20_SRCTMPL) > $(VC14_20_SRCVCXPROJ) || { exit 1; }; \
  470. \
  471. echo "generating '$(VC14_30_LIBVCXPROJ)'"; \
  472. awk -v proj_type=vcxproj \
  473. -v lib_srcs="$$sorted_lib_srcs" \
  474. -v lib_hdrs="$$sorted_lib_hdrs" \
  475. -v lib_rc="$$win32_lib_rc" \
  476. -v lib_vauth_srcs="$$sorted_lib_vauth_srcs" \
  477. -v lib_vauth_hdrs="$$sorted_lib_vauth_hdrs" \
  478. -v lib_vquic_srcs="$$sorted_lib_vquic_srcs" \
  479. -v lib_vquic_hdrs="$$sorted_lib_vquic_hdrs" \
  480. -v lib_vssh_srcs="$$sorted_lib_vssh_srcs" \
  481. -v lib_vssh_hdrs="$$sorted_lib_vssh_hdrs" \
  482. -v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
  483. -v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
  484. "$$awk_code" $(srcdir)/$(VC14_30_LIBTMPL) > $(VC14_30_LIBVCXPROJ) || { exit 1; }; \
  485. \
  486. echo "generating '$(VC14_30_SRCVCXPROJ)'"; \
  487. awk -v proj_type=vcxproj \
  488. -v src_srcs="$$sorted_src_srcs" \
  489. -v src_hdrs="$$sorted_src_hdrs" \
  490. -v src_rc="$$win32_src_rc" \
  491. -v src_x_srcs="$$sorted_src_x_srcs" \
  492. -v src_x_hdrs="$$sorted_src_x_hdrs" \
  493. "$$awk_code" $(srcdir)/$(VC14_30_SRCTMPL) > $(VC14_30_SRCVCXPROJ) || { exit 1; };)
  494. tidy:
  495. (cd src && $(MAKE) tidy)
  496. (cd lib && $(MAKE) tidy)