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