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