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