Makefile.am 19 KB

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