Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

Makefile.am 23KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617
  1. #***************************************************************************
  2. # _ _ ____ _
  3. # Project ___| | | | _ \| |
  4. # / __| | | | |_) | |
  5. # | (__| |_| | _ <| |___
  6. # \___|\___/|_| \_\_____|
  7. #
  8. # Copyright (C) 1998 - 2017, 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.haxx.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. ###########################################################################
  22. AUTOMAKE_OPTIONS = foreign
  23. ACLOCAL_AMFLAGS = -I m4
  24. CMAKE_DIST = CMakeLists.txt CMake/CMakeConfigurableFile.in \
  25. CMake/CurlTests.c CMake/FindGSS.cmake CMake/OtherTests.cmake \
  26. CMake/Platforms/WindowsCache.cmake CMake/Utilities.cmake \
  27. CMake/Macros.cmake \
  28. CMake/CurlSymbolHiding.cmake CMake/FindCARES.cmake \
  29. CMake/FindLibSSH2.cmake CMake/FindNGHTTP2.cmake \
  30. CMake/FindMbedTLS.cmake
  31. VC6_LIBTMPL = projects/Windows/VC6/lib/libcurl.tmpl
  32. VC6_LIBDSP = projects/Windows/VC6/lib/libcurl.dsp.dist
  33. VC6_LIBDSP_DEPS = $(VC6_LIBTMPL) Makefile.am lib/Makefile.inc
  34. VC6_SRCTMPL = projects/Windows/VC6/src/curl.tmpl
  35. VC6_SRCDSP = projects/Windows/VC6/src/curl.dsp.dist
  36. VC6_SRCDSP_DEPS = $(VC6_SRCTMPL) Makefile.am src/Makefile.inc
  37. VC7_LIBTMPL = projects/Windows/VC7/lib/libcurl.tmpl
  38. VC7_LIBVCPROJ = projects/Windows/VC7/lib/libcurl.vcproj.dist
  39. VC7_LIBVCPROJ_DEPS = $(VC7_LIBTMPL) Makefile.am lib/Makefile.inc
  40. VC7_SRCTMPL = projects/Windows/VC7/src/curl.tmpl
  41. VC7_SRCVCPROJ = projects/Windows/VC7/src/curl.vcproj.dist
  42. VC7_SRCVCPROJ_DEPS = $(VC7_SRCTMPL) Makefile.am src/Makefile.inc
  43. VC71_LIBTMPL = projects/Windows/VC7.1/lib/libcurl.tmpl
  44. VC71_LIBVCPROJ = projects/Windows/VC7.1/lib/libcurl.vcproj.dist
  45. VC71_LIBVCPROJ_DEPS = $(VC71_LIBTMPL) Makefile.am lib/Makefile.inc
  46. VC71_SRCTMPL = projects/Windows/VC7.1/src/curl.tmpl
  47. VC71_SRCVCPROJ = projects/Windows/VC7.1/src/curl.vcproj.dist
  48. VC71_SRCVCPROJ_DEPS = $(VC71_SRCTMPL) Makefile.am src/Makefile.inc
  49. VC8_LIBTMPL = projects/Windows/VC8/lib/libcurl.tmpl
  50. VC8_LIBVCPROJ = projects/Windows/VC8/lib/libcurl.vcproj.dist
  51. VC8_LIBVCPROJ_DEPS = $(VC8_LIBTMPL) Makefile.am lib/Makefile.inc
  52. VC8_SRCTMPL = projects/Windows/VC8/src/curl.tmpl
  53. VC8_SRCVCPROJ = projects/Windows/VC8/src/curl.vcproj.dist
  54. VC8_SRCVCPROJ_DEPS = $(VC8_SRCTMPL) Makefile.am src/Makefile.inc
  55. VC9_LIBTMPL = projects/Windows/VC9/lib/libcurl.tmpl
  56. VC9_LIBVCPROJ = projects/Windows/VC9/lib/libcurl.vcproj.dist
  57. VC9_LIBVCPROJ_DEPS = $(VC9_LIBTMPL) Makefile.am lib/Makefile.inc
  58. VC9_SRCTMPL = projects/Windows/VC9/src/curl.tmpl
  59. VC9_SRCVCPROJ = projects/Windows/VC9/src/curl.vcproj.dist
  60. VC9_SRCVCPROJ_DEPS = $(VC9_SRCTMPL) Makefile.am src/Makefile.inc
  61. VC10_LIBTMPL = projects/Windows/VC10/lib/libcurl.tmpl
  62. VC10_LIBVCXPROJ = projects/Windows/VC10/lib/libcurl.vcxproj.dist
  63. VC10_LIBVCXPROJ_DEPS = $(VC10_LIBTMPL) Makefile.am lib/Makefile.inc
  64. VC10_SRCTMPL = projects/Windows/VC10/src/curl.tmpl
  65. VC10_SRCVCXPROJ = projects/Windows/VC10/src/curl.vcxproj.dist
  66. VC10_SRCVCXPROJ_DEPS = $(VC10_SRCTMPL) Makefile.am src/Makefile.inc
  67. VC11_LIBTMPL = projects/Windows/VC11/lib/libcurl.tmpl
  68. VC11_LIBVCXPROJ = projects/Windows/VC11/lib/libcurl.vcxproj.dist
  69. VC11_LIBVCXPROJ_DEPS = $(VC11_LIBTMPL) Makefile.am lib/Makefile.inc
  70. VC11_SRCTMPL = projects/Windows/VC11/src/curl.tmpl
  71. VC11_SRCVCXPROJ = projects/Windows/VC11/src/curl.vcxproj.dist
  72. VC11_SRCVCXPROJ_DEPS = $(VC11_SRCTMPL) Makefile.am src/Makefile.inc
  73. VC12_LIBTMPL = projects/Windows/VC12/lib/libcurl.tmpl
  74. VC12_LIBVCXPROJ = projects/Windows/VC12/lib/libcurl.vcxproj.dist
  75. VC12_LIBVCXPROJ_DEPS = $(VC12_LIBTMPL) Makefile.am lib/Makefile.inc
  76. VC12_SRCTMPL = projects/Windows/VC12/src/curl.tmpl
  77. VC12_SRCVCXPROJ = projects/Windows/VC12/src/curl.vcxproj.dist
  78. VC12_SRCVCXPROJ_DEPS = $(VC12_SRCTMPL) Makefile.am src/Makefile.inc
  79. VC14_LIBTMPL = projects/Windows/VC14/lib/libcurl.tmpl
  80. VC14_LIBVCXPROJ = projects/Windows/VC14/lib/libcurl.vcxproj.dist
  81. VC14_LIBVCXPROJ_DEPS = $(VC14_LIBTMPL) Makefile.am lib/Makefile.inc
  82. VC14_SRCTMPL = projects/Windows/VC14/src/curl.tmpl
  83. VC14_SRCVCXPROJ = projects/Windows/VC14/src/curl.vcxproj.dist
  84. VC14_SRCVCXPROJ_DEPS = $(VC14_SRCTMPL) Makefile.am src/Makefile.inc
  85. VC_DIST = projects/README \
  86. projects/build-openssl.bat \
  87. projects/build-wolfssl.bat \
  88. projects/checksrc.bat \
  89. projects/Windows/VC6/curl-all.dsw \
  90. projects/Windows/VC6/lib/libcurl.dsw \
  91. projects/Windows/VC6/src/curl.dsw \
  92. projects/Windows/VC7/curl-all.sln \
  93. projects/Windows/VC7/lib/libcurl.sln \
  94. projects/Windows/VC7/src/curl.sln \
  95. projects/Windows/VC7.1/curl-all.sln \
  96. projects/Windows/VC7.1/lib/libcurl.sln \
  97. projects/Windows/VC7.1/src/curl.sln \
  98. projects/Windows/VC8/curl-all.sln \
  99. projects/Windows/VC8/lib/libcurl.sln \
  100. projects/Windows/VC8/src/curl.sln \
  101. projects/Windows/VC9/curl-all.sln \
  102. projects/Windows/VC9/lib/libcurl.sln \
  103. projects/Windows/VC9/src/curl.sln \
  104. projects/Windows/VC10/curl-all.sln \
  105. projects/Windows/VC10/lib/libcurl.sln \
  106. projects/Windows/VC10/lib/libcurl.vcxproj.filters \
  107. projects/Windows/VC10/src/curl.sln \
  108. projects/Windows/VC10/src/curl.vcxproj.filters \
  109. projects/Windows/VC11/curl-all.sln \
  110. projects/Windows/VC11/lib/libcurl.sln \
  111. projects/Windows/VC11/lib/libcurl.vcxproj.filters \
  112. projects/Windows/VC11/src/curl.sln \
  113. projects/Windows/VC11/src/curl.vcxproj.filters \
  114. projects/Windows/VC12/curl-all.sln \
  115. projects/Windows/VC12/lib/libcurl.sln \
  116. projects/Windows/VC12/lib/libcurl.vcxproj.filters \
  117. projects/Windows/VC12/src/curl.sln \
  118. projects/Windows/VC12/src/curl.vcxproj.filters \
  119. projects/Windows/VC14/curl-all.sln \
  120. projects/Windows/VC14/lib/libcurl.sln \
  121. projects/Windows/VC14/lib/libcurl.vcxproj.filters \
  122. projects/Windows/VC14/src/curl.sln \
  123. projects/Windows/VC14/src/curl.vcxproj.filters \
  124. projects/generate.bat \
  125. projects/wolfssl_options.h \
  126. projects/wolfssl_override.props
  127. WINBUILD_DIST = winbuild/BUILD.WINDOWS.txt winbuild/gen_resp_file.bat \
  128. winbuild/MakefileBuild.vc winbuild/Makefile.vc
  129. EXTRA_DIST = CHANGES COPYING maketgz Makefile.dist curl-config.in \
  130. RELEASE-NOTES buildconf libcurl.pc.in MacOSX-Framework scripts/zsh.pl \
  131. scripts/updatemanpages.pl $(CMAKE_DIST) $(VC_DIST) $(WINBUILD_DIST) \
  132. lib/libcurl.vers.in buildconf.bat scripts/coverage.sh
  133. CLEANFILES = $(VC6_LIBDSP) $(VC6_SRCDSP) $(VC7_LIBVCPROJ) $(VC7_SRCVCPROJ) \
  134. $(VC71_LIBVCPROJ) $(VC71_SRCVCPROJ) $(VC8_LIBVCPROJ) $(VC8_SRCVCPROJ) \
  135. $(VC9_LIBVCPROJ) $(VC9_SRCVCPROJ) $(VC10_LIBVCXPROJ) $(VC10_SRCVCXPROJ) \
  136. $(VC11_LIBVCXPROJ) $(VC11_SRCVCXPROJ) $(VC12_LIBVCXPROJ) $(VC12_SRCVCXPROJ) \
  137. $(VC14_LIBVCXPROJ) $(VC14_SRCVCXPROJ)
  138. bin_SCRIPTS = curl-config
  139. SUBDIRS = lib docs src include
  140. DIST_SUBDIRS = $(SUBDIRS) tests packages scripts
  141. pkgconfigdir = $(libdir)/pkgconfig
  142. pkgconfig_DATA = libcurl.pc
  143. # List of files required to generate VC IDE .dsp, .vcproj and .vcxproj files
  144. include lib/Makefile.inc
  145. include src/Makefile.inc
  146. dist-hook:
  147. rm -rf $(top_builddir)/tests/log
  148. find $(distdir) -name "*.dist" -exec rm {} \;
  149. (distit=`find $(srcdir) -name "*.dist" | grep -v ./ares/`; \
  150. for file in $$distit; do \
  151. strip=`echo $$file | sed -e s/^$(srcdir)// -e s/\.dist//`; \
  152. cp $$file $(distdir)$$strip; \
  153. done)
  154. html:
  155. cd docs && $(MAKE) html
  156. pdf:
  157. cd docs && $(MAKE) pdf
  158. check: test examples check-docs
  159. if CROSSCOMPILING
  160. test-full: test
  161. test-torture: test
  162. test:
  163. @echo "NOTICE: we can't run the tests when cross-compiling!"
  164. else
  165. test:
  166. @(cd tests; $(MAKE) all quiet-test)
  167. test-full:
  168. @(cd tests; $(MAKE) all full-test)
  169. test-nonflaky:
  170. @(cd tests; $(MAKE) all nonflaky-test)
  171. test-torture:
  172. @(cd tests; $(MAKE) all torture-test)
  173. test-event:
  174. @(cd tests; $(MAKE) all event-test)
  175. test-am:
  176. @(cd tests; $(MAKE) all am-test)
  177. endif
  178. examples:
  179. @(cd docs/examples; $(MAKE) check)
  180. check-docs:
  181. @(cd docs/libcurl; $(MAKE) check)
  182. # This is a hook to have 'make clean' also clean up the docs and the tests
  183. # dir. The extra check for the Makefiles being present is necessary because
  184. # 'make distcheck' will make clean first in these directories _before_ it runs
  185. # this hook.
  186. clean-local:
  187. @(if test -f tests/Makefile; then cd tests; $(MAKE) clean; fi)
  188. @(if test -f docs/Makefile; then cd docs; $(MAKE) clean; fi)
  189. #
  190. # Build source and binary rpms. For rpm-3.0 and above, the ~/.rpmmacros
  191. # must contain the following line:
  192. # %_topdir /home/loic/local/rpm
  193. # and that /home/loic/local/rpm contains the directory SOURCES, BUILD etc.
  194. #
  195. # cd /home/loic/local/rpm ; mkdir -p SOURCES BUILD RPMS/i386 SPECS SRPMS
  196. #
  197. # If additional configure flags are needed to build the package, add the
  198. # following in ~/.rpmmacros
  199. # %configure CFLAGS="%{optflags}" ./configure %{_target_platform} --prefix=%{_prefix} ${AM_CONFIGFLAGS}
  200. # and run make rpm in the following way:
  201. # AM_CONFIGFLAGS='--with-uri=/home/users/loic/local/RedHat-6.2' make rpm
  202. #
  203. rpms:
  204. $(MAKE) RPMDIST=curl rpm
  205. $(MAKE) RPMDIST=curl-ssl rpm
  206. rpm:
  207. RPM_TOPDIR=`rpm --showrc | $(PERL) -n -e 'print if(s/.*_topdir\s+(.*)/$$1/)'` ; \
  208. cp $(srcdir)/packages/Linux/RPM/$(RPMDIST).spec $$RPM_TOPDIR/SPECS ; \
  209. cp $(PACKAGE)-$(VERSION).tar.gz $$RPM_TOPDIR/SOURCES ; \
  210. rpm -ba --clean --rmsource $$RPM_TOPDIR/SPECS/$(RPMDIST).spec ; \
  211. mv $$RPM_TOPDIR/RPMS/i386/$(RPMDIST)-*.rpm . ; \
  212. mv $$RPM_TOPDIR/SRPMS/$(RPMDIST)-*.src.rpm .
  213. #
  214. # Build a Solaris pkgadd format file
  215. # run 'make pkgadd' once you've done './configure' and 'make' to make a Solaris pkgadd format
  216. # file (which ends up back in this directory).
  217. # The pkgadd file is in 'pkgtrans' format, so to install on Solaris, do
  218. # pkgadd -d ./HAXXcurl-*
  219. #
  220. # gak - libtool requires an absolute directory, hence the pwd below...
  221. pkgadd:
  222. umask 022 ; \
  223. $(MAKE) install DESTDIR=`/bin/pwd`/packages/Solaris/root ; \
  224. cat COPYING > $(srcdir)/packages/Solaris/copyright ; \
  225. cd $(srcdir)/packages/Solaris && $(MAKE) package
  226. #
  227. # Build a cygwin binary tarball installation file
  228. # resulting .tar.bz2 file will end up at packages/Win32/cygwin
  229. cygwinbin:
  230. $(MAKE) -C packages/Win32/cygwin cygwinbin
  231. # We extend the standard install with a custom hook:
  232. install-data-hook:
  233. cd include && $(MAKE) install
  234. cd docs && $(MAKE) install
  235. # We extend the standard uninstall with a custom hook:
  236. uninstall-hook:
  237. cd include && $(MAKE) uninstall
  238. cd docs && $(MAKE) uninstall
  239. ca-bundle: lib/mk-ca-bundle.pl
  240. @echo "generating a fresh ca-bundle.crt"
  241. @perl $< -b -l -u lib/ca-bundle.crt
  242. ca-firefox: lib/firefox-db2pem.sh
  243. @echo "generating a fresh ca-bundle.crt"
  244. ./lib/firefox-db2pem.sh lib/ca-bundle.crt
  245. checksrc:
  246. cd lib && $(MAKE) checksrc
  247. cd src && $(MAKE) checksrc
  248. cd tests && $(MAKE) checksrc
  249. cd include/curl && $(MAKE) checksrc
  250. cd docs/examples && $(MAKE) checksrc
  251. .PHONY: vc-ide
  252. vc-ide: $(VC6_LIBDSP_DEPS) $(VC6_SRCDSP_DEPS) $(VC7_LIBVCPROJ_DEPS) \
  253. $(VC7_SRCVCPROJ_DEPS) $(VC71_LIBVCPROJ_DEPS) $(VC71_SRCVCPROJ_DEPS) \
  254. $(VC8_LIBVCPROJ_DEPS) $(VC8_SRCVCPROJ_DEPS) $(VC9_LIBVCPROJ_DEPS) \
  255. $(VC9_SRCVCPROJ_DEPS) $(VC10_LIBVCXPROJ_DEPS) $(VC10_SRCVCXPROJ_DEPS) \
  256. $(VC11_LIBVCXPROJ_DEPS) $(VC11_SRCVCXPROJ_DEPS) $(VC12_LIBVCXPROJ_DEPS) \
  257. $(VC12_SRCVCXPROJ_DEPS) $(VC14_LIBVCXPROJ_DEPS) $(VC14_SRCVCXPROJ_DEPS)
  258. @(win32_lib_srcs='$(LIB_CFILES)'; \
  259. win32_lib_hdrs='$(LIB_HFILES) config-win32.h'; \
  260. win32_lib_rc='$(LIB_RCFILES)'; \
  261. win32_lib_vauth_srcs='$(LIB_VAUTH_CFILES)'; \
  262. win32_lib_vauth_hdrs='$(LIB_VAUTH_HFILES)'; \
  263. win32_lib_vtls_srcs='$(LIB_VTLS_CFILES)'; \
  264. win32_lib_vtls_hdrs='$(LIB_VTLS_HFILES)'; \
  265. win32_src_srcs='$(CURL_CFILES)'; \
  266. win32_src_hdrs='$(CURL_HFILES)'; \
  267. win32_src_rc='$(CURL_RCFILES)'; \
  268. win32_src_x_srcs='$(CURLX_CFILES)'; \
  269. win32_src_x_hdrs='$(CURLX_HFILES) ../lib/config-win32.h'; \
  270. \
  271. sorted_lib_srcs=`for file in $$win32_lib_srcs; do echo $$file; done | sort`; \
  272. sorted_lib_hdrs=`for file in $$win32_lib_hdrs; do echo $$file; done | sort`; \
  273. sorted_lib_vauth_srcs=`for file in $$win32_lib_vauth_srcs; do echo $$file; done | sort`; \
  274. sorted_lib_vauth_hdrs=`for file in $$win32_lib_vauth_hdrs; do echo $$file; done | sort`; \
  275. sorted_lib_vtls_srcs=`for file in $$win32_lib_vtls_srcs; do echo $$file; done | sort`; \
  276. sorted_lib_vtls_hdrs=`for file in $$win32_lib_vtls_hdrs; do echo $$file; done | sort`; \
  277. sorted_src_srcs=`for file in $$win32_src_srcs; do echo $$file; done | sort`; \
  278. sorted_src_hdrs=`for file in $$win32_src_hdrs; do echo $$file; done | sort`; \
  279. sorted_src_x_srcs=`for file in $$win32_src_x_srcs; do echo $$file; done | sort`; \
  280. sorted_src_x_hdrs=`for file in $$win32_src_x_hdrs; do echo $$file; done | sort`; \
  281. \
  282. awk_code='\
  283. function gen_element(type, dir, file)\
  284. {\
  285. sub(/vauth\//, "", file);\
  286. sub(/vtls\//, "", file);\
  287. \
  288. spaces=" ";\
  289. if(dir == "lib\\vauth" || dir == "lib\\vtls")\
  290. tabs=" ";\
  291. else\
  292. tabs=" ";\
  293. \
  294. if(type == "dsp") {\
  295. printf("# Begin Source File\r\n");\
  296. printf("\r\n");\
  297. printf("SOURCE=..\\..\\..\\..\\%s\\%s\r\n", dir, file);\
  298. printf("# End Source File\r\n");\
  299. }\
  300. else if(type == "vcproj1") {\
  301. printf("%s<File\r\n", tabs);\
  302. printf("%s RelativePath=\"..\\..\\..\\..\\%s\\%s\">\r\n",\
  303. tabs, dir, file);\
  304. printf("%s</File>\r\n", tabs);\
  305. }\
  306. else if(type == "vcproj2") {\
  307. printf("%s<File\r\n", tabs);\
  308. printf("%s RelativePath=\"..\\..\\..\\..\\%s\\%s\"\r\n",\
  309. tabs, dir, file);\
  310. printf("%s>\r\n", tabs);\
  311. printf("%s</File>\r\n", tabs);\
  312. }\
  313. else if(type == "vcxproj") {\
  314. i = index(file, ".");\
  315. ext = substr(file, i == 0 ? 0 : i + 1);\
  316. \
  317. if(ext == "c")\
  318. printf("%s<ClCompile Include=\"..\\..\\..\\..\\%s\\%s\" />\r\n",\
  319. spaces, dir, file);\
  320. else if(ext == "h")\
  321. printf("%s<ClInclude Include=\"..\\..\\..\\..\\%s\\%s\" />\r\n",\
  322. spaces, dir, file);\
  323. else if(ext == "rc")\
  324. printf("%s<ResourceCompile Include=\"..\\..\\..\\..\\%s\\%s\" />\r\n",\
  325. spaces, dir, file);\
  326. }\
  327. }\
  328. \
  329. {\
  330. \
  331. if($$0 == "CURL_LIB_C_FILES") {\
  332. split(lib_srcs, arr);\
  333. for(val in arr) gen_element(proj_type, "lib", arr[val]);\
  334. }\
  335. else if($$0 == "CURL_LIB_H_FILES") {\
  336. split(lib_hdrs, arr);\
  337. for(val in arr) gen_element(proj_type, "lib", arr[val]);\
  338. }\
  339. else if($$0 == "CURL_LIB_RC_FILES") {\
  340. split(lib_rc, arr);\
  341. for(val in arr) gen_element(proj_type, "lib", arr[val]);\
  342. }\
  343. else if($$0 == "CURL_LIB_VAUTH_C_FILES") {\
  344. split(lib_vauth_srcs, arr);\
  345. for(val in arr) gen_element(proj_type, "lib\\vauth", arr[val]);\
  346. }\
  347. else if($$0 == "CURL_LIB_VAUTH_H_FILES") {\
  348. split(lib_vauth_hdrs, arr);\
  349. for(val in arr) gen_element(proj_type, "lib\\vauth", arr[val]);\
  350. }\
  351. else if($$0 == "CURL_LIB_VTLS_C_FILES") {\
  352. split(lib_vtls_srcs, arr);\
  353. for(val in arr) gen_element(proj_type, "lib\\vtls", arr[val]);\
  354. }\
  355. else if($$0 == "CURL_LIB_VTLS_H_FILES") {\
  356. split(lib_vtls_hdrs, arr);\
  357. for(val in arr) gen_element(proj_type, "lib\\vtls", arr[val]);\
  358. }\
  359. else if($$0 == "CURL_SRC_C_FILES") {\
  360. split(src_srcs, arr);\
  361. for(val in arr) gen_element(proj_type, "src", arr[val]);\
  362. }\
  363. else if($$0 == "CURL_SRC_H_FILES") {\
  364. split(src_hdrs, arr);\
  365. for(val in arr) gen_element(proj_type, "src", arr[val]);\
  366. }\
  367. else if($$0 == "CURL_SRC_RC_FILES") {\
  368. split(src_rc, arr);\
  369. for(val in arr) gen_element(proj_type, "src", arr[val]);\
  370. }\
  371. else if($$0 == "CURL_SRC_X_C_FILES") {\
  372. split(src_x_srcs, arr);\
  373. for(val in arr) {\
  374. sub(/..\/lib\//, "", arr[val]);\
  375. gen_element(proj_type, "lib", arr[val]);\
  376. }\
  377. }\
  378. else if($$0 == "CURL_SRC_X_H_FILES") {\
  379. split(src_x_hdrs, arr);\
  380. for(val in arr) {\
  381. sub(/..\/lib\//, "", arr[val]);\
  382. gen_element(proj_type, "lib", arr[val]);\
  383. }\
  384. }\
  385. else\
  386. printf("%s\r\n", $$0);\
  387. }';\
  388. \
  389. echo "generating '$(VC6_LIBDSP)'"; \
  390. awk -v proj_type=dsp \
  391. -v lib_srcs="$$sorted_lib_srcs" \
  392. -v lib_hdrs="$$sorted_lib_hdrs" \
  393. -v lib_rc="$$win32_lib_rc" \
  394. -v lib_vauth_srcs="$$sorted_lib_vauth_srcs" \
  395. -v lib_vauth_hdrs="$$sorted_lib_vauth_hdrs" \
  396. -v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
  397. -v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
  398. "$$awk_code" $(srcdir)/$(VC6_LIBTMPL) > $(VC6_LIBDSP) || { exit 1; }; \
  399. \
  400. echo "generating '$(VC6_SRCDSP)'"; \
  401. awk -v proj_type=dsp \
  402. -v src_srcs="$$sorted_src_srcs" \
  403. -v src_hdrs="$$sorted_src_hdrs" \
  404. -v src_rc="$$win32_src_rc" \
  405. -v src_x_srcs="$$sorted_src_x_srcs" \
  406. -v src_x_hdrs="$$sorted_src_x_hdrs" \
  407. "$$awk_code" $(srcdir)/$(VC6_SRCTMPL) > $(VC6_SRCDSP) || { exit 1; }; \
  408. \
  409. echo "generating '$(VC7_LIBVCPROJ)'"; \
  410. awk -v proj_type=vcproj1 \
  411. -v lib_srcs="$$sorted_lib_srcs" \
  412. -v lib_hdrs="$$sorted_lib_hdrs" \
  413. -v lib_rc="$$win32_lib_rc" \
  414. -v lib_vauth_srcs="$$sorted_lib_vauth_srcs" \
  415. -v lib_vauth_hdrs="$$sorted_lib_vauth_hdrs" \
  416. -v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
  417. -v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
  418. "$$awk_code" $(srcdir)/$(VC7_LIBTMPL) > $(VC7_LIBVCPROJ) || { exit 1; }; \
  419. \
  420. echo "generating '$(VC7_SRCVCPROJ)'"; \
  421. awk -v proj_type=vcproj1 \
  422. -v src_srcs="$$sorted_src_srcs" \
  423. -v src_hdrs="$$sorted_src_hdrs" \
  424. -v src_rc="$$win32_src_rc" \
  425. -v src_x_srcs="$$sorted_src_x_srcs" \
  426. -v src_x_hdrs="$$sorted_src_x_hdrs" \
  427. "$$awk_code" $(srcdir)/$(VC7_SRCTMPL) > $(VC7_SRCVCPROJ) || { exit 1; }; \
  428. \
  429. echo "generating '$(VC71_LIBVCPROJ)'"; \
  430. awk -v proj_type=vcproj1 \
  431. -v lib_srcs="$$sorted_lib_srcs" \
  432. -v lib_hdrs="$$sorted_lib_hdrs" \
  433. -v lib_rc="$$win32_lib_rc" \
  434. -v lib_vauth_srcs="$$sorted_lib_vauth_srcs" \
  435. -v lib_vauth_hdrs="$$sorted_lib_vauth_hdrs" \
  436. -v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
  437. -v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
  438. "$$awk_code" $(srcdir)/$(VC71_LIBTMPL) > $(VC71_LIBVCPROJ) || { exit 1; }; \
  439. \
  440. echo "generating '$(VC71_SRCVCPROJ)'"; \
  441. awk -v proj_type=vcproj1 \
  442. -v src_srcs="$$sorted_src_srcs" \
  443. -v src_hdrs="$$sorted_src_hdrs" \
  444. -v src_rc="$$win32_src_rc" \
  445. -v src_x_srcs="$$sorted_src_x_srcs" \
  446. -v src_x_hdrs="$$sorted_src_x_hdrs" \
  447. "$$awk_code" $(srcdir)/$(VC71_SRCTMPL) > $(VC71_SRCVCPROJ) || { exit 1; }; \
  448. \
  449. echo "generating '$(VC8_LIBVCPROJ)'"; \
  450. awk -v proj_type=vcproj2 \
  451. -v lib_srcs="$$sorted_lib_srcs" \
  452. -v lib_hdrs="$$sorted_lib_hdrs" \
  453. -v lib_rc="$$win32_lib_rc" \
  454. -v lib_vauth_srcs="$$sorted_lib_vauth_srcs" \
  455. -v lib_vauth_hdrs="$$sorted_lib_vauth_hdrs" \
  456. -v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
  457. -v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
  458. "$$awk_code" $(srcdir)/$(VC8_LIBTMPL) > $(VC8_LIBVCPROJ) || { exit 1; }; \
  459. \
  460. echo "generating '$(VC8_SRCVCPROJ)'"; \
  461. awk -v proj_type=vcproj2 \
  462. -v src_srcs="$$sorted_src_srcs" \
  463. -v src_hdrs="$$sorted_src_hdrs" \
  464. -v src_rc="$$win32_src_rc" \
  465. -v src_x_srcs="$$sorted_src_x_srcs" \
  466. -v src_x_hdrs="$$sorted_src_x_hdrs" \
  467. "$$awk_code" $(srcdir)/$(VC8_SRCTMPL) > $(VC8_SRCVCPROJ) || { exit 1; }; \
  468. \
  469. echo "generating '$(VC9_LIBVCPROJ)'"; \
  470. awk -v proj_type=vcproj2 \
  471. -v lib_srcs="$$sorted_lib_srcs" \
  472. -v lib_hdrs="$$sorted_lib_hdrs" \
  473. -v lib_rc="$$win32_lib_rc" \
  474. -v lib_vauth_srcs="$$sorted_lib_vauth_srcs" \
  475. -v lib_vauth_hdrs="$$sorted_lib_vauth_hdrs" \
  476. -v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
  477. -v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
  478. "$$awk_code" $(srcdir)/$(VC9_LIBTMPL) > $(VC9_LIBVCPROJ) || { exit 1; }; \
  479. \
  480. echo "generating '$(VC9_SRCVCPROJ)'"; \
  481. awk -v proj_type=vcproj2 \
  482. -v src_srcs="$$sorted_src_srcs" \
  483. -v src_hdrs="$$sorted_src_hdrs" \
  484. -v src_rc="$$win32_src_rc" \
  485. -v src_x_srcs="$$sorted_src_x_srcs" \
  486. -v src_x_hdrs="$$sorted_src_x_hdrs" \
  487. "$$awk_code" $(srcdir)/$(VC9_SRCTMPL) > $(VC9_SRCVCPROJ) || { exit 1; }; \
  488. \
  489. echo "generating '$(VC10_LIBVCXPROJ)'"; \
  490. awk -v proj_type=vcxproj \
  491. -v lib_srcs="$$sorted_lib_srcs" \
  492. -v lib_hdrs="$$sorted_lib_hdrs" \
  493. -v lib_rc="$$win32_lib_rc" \
  494. -v lib_vauth_srcs="$$sorted_lib_vauth_srcs" \
  495. -v lib_vauth_hdrs="$$sorted_lib_vauth_hdrs" \
  496. -v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
  497. -v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
  498. "$$awk_code" $(srcdir)/$(VC10_LIBTMPL) > $(VC10_LIBVCXPROJ) || { exit 1; }; \
  499. \
  500. echo "generating '$(VC10_SRCVCXPROJ)'"; \
  501. awk -v proj_type=vcxproj \
  502. -v src_srcs="$$sorted_src_srcs" \
  503. -v src_hdrs="$$sorted_src_hdrs" \
  504. -v src_rc="$$win32_src_rc" \
  505. -v src_x_srcs="$$sorted_src_x_srcs" \
  506. -v src_x_hdrs="$$sorted_src_x_hdrs" \
  507. "$$awk_code" $(srcdir)/$(VC10_SRCTMPL) > $(VC10_SRCVCXPROJ) || { exit 1; }; \
  508. \
  509. echo "generating '$(VC11_LIBVCXPROJ)'"; \
  510. awk -v proj_type=vcxproj \
  511. -v lib_srcs="$$sorted_lib_srcs" \
  512. -v lib_hdrs="$$sorted_lib_hdrs" \
  513. -v lib_rc="$$win32_lib_rc" \
  514. -v lib_vauth_srcs="$$sorted_lib_vauth_srcs" \
  515. -v lib_vauth_hdrs="$$sorted_lib_vauth_hdrs" \
  516. -v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
  517. -v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
  518. "$$awk_code" $(srcdir)/$(VC11_LIBTMPL) > $(VC11_LIBVCXPROJ) || { exit 1; }; \
  519. \
  520. echo "generating '$(VC11_SRCVCXPROJ)'"; \
  521. awk -v proj_type=vcxproj \
  522. -v src_srcs="$$sorted_src_srcs" \
  523. -v src_hdrs="$$sorted_src_hdrs" \
  524. -v src_rc="$$win32_src_rc" \
  525. -v src_x_srcs="$$sorted_src_x_srcs" \
  526. -v src_x_hdrs="$$sorted_src_x_hdrs" \
  527. "$$awk_code" $(srcdir)/$(VC11_SRCTMPL) > $(VC11_SRCVCXPROJ) || { exit 1; }; \
  528. \
  529. echo "generating '$(VC12_LIBVCXPROJ)'"; \
  530. awk -v proj_type=vcxproj \
  531. -v lib_srcs="$$sorted_lib_srcs" \
  532. -v lib_hdrs="$$sorted_lib_hdrs" \
  533. -v lib_rc="$$win32_lib_rc" \
  534. -v lib_vauth_srcs="$$sorted_lib_vauth_srcs" \
  535. -v lib_vauth_hdrs="$$sorted_lib_vauth_hdrs" \
  536. -v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
  537. -v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
  538. "$$awk_code" $(srcdir)/$(VC12_LIBTMPL) > $(VC12_LIBVCXPROJ) || { exit 1; }; \
  539. \
  540. echo "generating '$(VC12_SRCVCXPROJ)'"; \
  541. awk -v proj_type=vcxproj \
  542. -v src_srcs="$$sorted_src_srcs" \
  543. -v src_hdrs="$$sorted_src_hdrs" \
  544. -v src_rc="$$win32_src_rc" \
  545. -v src_x_srcs="$$sorted_src_x_srcs" \
  546. -v src_x_hdrs="$$sorted_src_x_hdrs" \
  547. "$$awk_code" $(srcdir)/$(VC12_SRCTMPL) > $(VC12_SRCVCXPROJ) || { exit 1; }; \
  548. \
  549. echo "generating '$(VC14_LIBVCXPROJ)'"; \
  550. awk -v proj_type=vcxproj \
  551. -v lib_srcs="$$sorted_lib_srcs" \
  552. -v lib_hdrs="$$sorted_lib_hdrs" \
  553. -v lib_rc="$$win32_lib_rc" \
  554. -v lib_vauth_srcs="$$sorted_lib_vauth_srcs" \
  555. -v lib_vauth_hdrs="$$sorted_lib_vauth_hdrs" \
  556. -v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
  557. -v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
  558. "$$awk_code" $(srcdir)/$(VC14_LIBTMPL) > $(VC14_LIBVCXPROJ) || { exit 1; }; \
  559. \
  560. echo "generating '$(VC14_SRCVCXPROJ)'"; \
  561. awk -v proj_type=vcxproj \
  562. -v src_srcs="$$sorted_src_srcs" \
  563. -v src_hdrs="$$sorted_src_hdrs" \
  564. -v src_rc="$$win32_src_rc" \
  565. -v src_x_srcs="$$sorted_src_x_srcs" \
  566. -v src_x_hdrs="$$sorted_src_x_hdrs" \
  567. "$$awk_code" $(srcdir)/$(VC14_SRCTMPL) > $(VC14_SRCVCXPROJ) || { exit 1; };)