2
0

Makefile.am 20 KB

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