Annotation of embedaddon/curl/Makefile.am, revision 1.1.1.1
1.1 misho 1: #***************************************************************************
2: # _ _ ____ _
3: # Project ___| | | | _ \| |
4: # / __| | | | |_) | |
5: # | (__| |_| | _ <| |___
6: # \___|\___/|_| \_\_____|
7: #
8: # Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
9: #
10: # This software is licensed as described in the file COPYING, which
11: # you should have received as part of this distribution. The terms
12: # are also available at https://curl.haxx.se/docs/copyright.html.
13: #
14: # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15: # copies of the Software, and permit persons to whom the Software is
16: # furnished to do so, under the terms of the COPYING file.
17: #
18: # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19: # KIND, either express or implied.
20: #
21: ###########################################################################
22:
23: AUTOMAKE_OPTIONS = foreign
24:
25: ACLOCAL_AMFLAGS = -I m4
26:
27: CMAKE_DIST = \
28: CMake/cmake_uninstall.cmake.in \
29: CMake/CMakeConfigurableFile.in \
30: CMake/curl-config.cmake.in \
31: CMake/CurlSymbolHiding.cmake \
32: CMake/CurlTests.c \
33: CMake/FindBearSSL.cmake \
34: CMake/FindCARES.cmake \
35: CMake/FindGSS.cmake \
36: CMake/FindLibSSH2.cmake \
37: CMake/FindMbedTLS.cmake \
38: CMake/FindNGHTTP2.cmake \
39: CMake/FindWolfSSL.cmake \
40: CMake/Macros.cmake \
41: CMake/OtherTests.cmake \
42: CMake/Platforms/WindowsCache.cmake \
43: CMake/Utilities.cmake \
44: CMakeLists.txt
45:
46: VC6_LIBTMPL = projects/Windows/VC6/lib/libcurl.tmpl
47: VC6_LIBDSP = projects/Windows/VC6/lib/libcurl.dsp.dist
48: VC6_LIBDSP_DEPS = $(VC6_LIBTMPL) Makefile.am lib/Makefile.inc
49: VC6_SRCTMPL = projects/Windows/VC6/src/curl.tmpl
50: VC6_SRCDSP = projects/Windows/VC6/src/curl.dsp.dist
51: VC6_SRCDSP_DEPS = $(VC6_SRCTMPL) Makefile.am src/Makefile.inc
52:
53: VC7_LIBTMPL = projects/Windows/VC7/lib/libcurl.tmpl
54: VC7_LIBVCPROJ = projects/Windows/VC7/lib/libcurl.vcproj.dist
55: VC7_LIBVCPROJ_DEPS = $(VC7_LIBTMPL) Makefile.am lib/Makefile.inc
56: VC7_SRCTMPL = projects/Windows/VC7/src/curl.tmpl
57: VC7_SRCVCPROJ = projects/Windows/VC7/src/curl.vcproj.dist
58: VC7_SRCVCPROJ_DEPS = $(VC7_SRCTMPL) Makefile.am src/Makefile.inc
59:
60: VC71_LIBTMPL = projects/Windows/VC7.1/lib/libcurl.tmpl
61: VC71_LIBVCPROJ = projects/Windows/VC7.1/lib/libcurl.vcproj.dist
62: VC71_LIBVCPROJ_DEPS = $(VC71_LIBTMPL) Makefile.am lib/Makefile.inc
63: VC71_SRCTMPL = projects/Windows/VC7.1/src/curl.tmpl
64: VC71_SRCVCPROJ = projects/Windows/VC7.1/src/curl.vcproj.dist
65: VC71_SRCVCPROJ_DEPS = $(VC71_SRCTMPL) Makefile.am src/Makefile.inc
66:
67: VC8_LIBTMPL = projects/Windows/VC8/lib/libcurl.tmpl
68: VC8_LIBVCPROJ = projects/Windows/VC8/lib/libcurl.vcproj.dist
69: VC8_LIBVCPROJ_DEPS = $(VC8_LIBTMPL) Makefile.am lib/Makefile.inc
70: VC8_SRCTMPL = projects/Windows/VC8/src/curl.tmpl
71: VC8_SRCVCPROJ = projects/Windows/VC8/src/curl.vcproj.dist
72: VC8_SRCVCPROJ_DEPS = $(VC8_SRCTMPL) Makefile.am src/Makefile.inc
73:
74: VC9_LIBTMPL = projects/Windows/VC9/lib/libcurl.tmpl
75: VC9_LIBVCPROJ = projects/Windows/VC9/lib/libcurl.vcproj.dist
76: VC9_LIBVCPROJ_DEPS = $(VC9_LIBTMPL) Makefile.am lib/Makefile.inc
77: VC9_SRCTMPL = projects/Windows/VC9/src/curl.tmpl
78: VC9_SRCVCPROJ = projects/Windows/VC9/src/curl.vcproj.dist
79: VC9_SRCVCPROJ_DEPS = $(VC9_SRCTMPL) Makefile.am src/Makefile.inc
80:
81: VC10_LIBTMPL = projects/Windows/VC10/lib/libcurl.tmpl
82: VC10_LIBVCXPROJ = projects/Windows/VC10/lib/libcurl.vcxproj.dist
83: VC10_LIBVCXPROJ_DEPS = $(VC10_LIBTMPL) Makefile.am lib/Makefile.inc
84: VC10_SRCTMPL = projects/Windows/VC10/src/curl.tmpl
85: VC10_SRCVCXPROJ = projects/Windows/VC10/src/curl.vcxproj.dist
86: VC10_SRCVCXPROJ_DEPS = $(VC10_SRCTMPL) Makefile.am src/Makefile.inc
87:
88: VC11_LIBTMPL = projects/Windows/VC11/lib/libcurl.tmpl
89: VC11_LIBVCXPROJ = projects/Windows/VC11/lib/libcurl.vcxproj.dist
90: VC11_LIBVCXPROJ_DEPS = $(VC11_LIBTMPL) Makefile.am lib/Makefile.inc
91: VC11_SRCTMPL = projects/Windows/VC11/src/curl.tmpl
92: VC11_SRCVCXPROJ = projects/Windows/VC11/src/curl.vcxproj.dist
93: VC11_SRCVCXPROJ_DEPS = $(VC11_SRCTMPL) Makefile.am src/Makefile.inc
94:
95: VC12_LIBTMPL = projects/Windows/VC12/lib/libcurl.tmpl
96: VC12_LIBVCXPROJ = projects/Windows/VC12/lib/libcurl.vcxproj.dist
97: VC12_LIBVCXPROJ_DEPS = $(VC12_LIBTMPL) Makefile.am lib/Makefile.inc
98: VC12_SRCTMPL = projects/Windows/VC12/src/curl.tmpl
99: VC12_SRCVCXPROJ = projects/Windows/VC12/src/curl.vcxproj.dist
100: VC12_SRCVCXPROJ_DEPS = $(VC12_SRCTMPL) Makefile.am src/Makefile.inc
101:
102: VC14_LIBTMPL = projects/Windows/VC14/lib/libcurl.tmpl
103: VC14_LIBVCXPROJ = projects/Windows/VC14/lib/libcurl.vcxproj.dist
104: VC14_LIBVCXPROJ_DEPS = $(VC14_LIBTMPL) Makefile.am lib/Makefile.inc
105: VC14_SRCTMPL = projects/Windows/VC14/src/curl.tmpl
106: VC14_SRCVCXPROJ = projects/Windows/VC14/src/curl.vcxproj.dist
107: VC14_SRCVCXPROJ_DEPS = $(VC14_SRCTMPL) Makefile.am src/Makefile.inc
108:
109: VC15_LIBTMPL = projects/Windows/VC15/lib/libcurl.tmpl
110: VC15_LIBVCXPROJ = projects/Windows/VC15/lib/libcurl.vcxproj.dist
111: VC15_LIBVCXPROJ_DEPS = $(VC15_LIBTMPL) Makefile.am lib/Makefile.inc
112: VC15_SRCTMPL = projects/Windows/VC15/src/curl.tmpl
113: VC15_SRCVCXPROJ = projects/Windows/VC15/src/curl.vcxproj.dist
114: VC15_SRCVCXPROJ_DEPS = $(VC15_SRCTMPL) Makefile.am src/Makefile.inc
115:
116: VC_DIST = projects/README \
117: projects/build-openssl.bat \
118: projects/build-wolfssl.bat \
119: projects/checksrc.bat \
120: projects/Windows/VC6/curl-all.dsw \
121: projects/Windows/VC6/lib/libcurl.dsw \
122: projects/Windows/VC6/src/curl.dsw \
123: projects/Windows/VC7/curl-all.sln \
124: projects/Windows/VC7/lib/libcurl.sln \
125: projects/Windows/VC7/src/curl.sln \
126: projects/Windows/VC7.1/curl-all.sln \
127: projects/Windows/VC7.1/lib/libcurl.sln \
128: projects/Windows/VC7.1/src/curl.sln \
129: projects/Windows/VC8/curl-all.sln \
130: projects/Windows/VC8/lib/libcurl.sln \
131: projects/Windows/VC8/src/curl.sln \
132: projects/Windows/VC9/curl-all.sln \
133: projects/Windows/VC9/lib/libcurl.sln \
134: projects/Windows/VC9/src/curl.sln \
135: projects/Windows/VC10/curl-all.sln \
136: projects/Windows/VC10/lib/libcurl.sln \
137: projects/Windows/VC10/lib/libcurl.vcxproj.filters \
138: projects/Windows/VC10/src/curl.sln \
139: projects/Windows/VC10/src/curl.vcxproj.filters \
140: projects/Windows/VC11/curl-all.sln \
141: projects/Windows/VC11/lib/libcurl.sln \
142: projects/Windows/VC11/lib/libcurl.vcxproj.filters \
143: projects/Windows/VC11/src/curl.sln \
144: projects/Windows/VC11/src/curl.vcxproj.filters \
145: projects/Windows/VC12/curl-all.sln \
146: projects/Windows/VC12/lib/libcurl.sln \
147: projects/Windows/VC12/lib/libcurl.vcxproj.filters \
148: projects/Windows/VC12/src/curl.sln \
149: projects/Windows/VC12/src/curl.vcxproj.filters \
150: projects/Windows/VC14/curl-all.sln \
151: projects/Windows/VC14/lib/libcurl.sln \
152: projects/Windows/VC14/lib/libcurl.vcxproj.filters \
153: projects/Windows/VC14/src/curl.sln \
154: projects/Windows/VC14/src/curl.vcxproj.filters \
155: projects/Windows/VC15/curl-all.sln \
156: projects/Windows/VC15/lib/libcurl.sln \
157: projects/Windows/VC15/lib/libcurl.vcxproj.filters \
158: projects/Windows/VC15/src/curl.sln \
159: projects/Windows/VC15/src/curl.vcxproj.filters \
160: projects/generate.bat \
161: projects/wolfssl_options.h \
162: projects/wolfssl_override.props
163:
164: WINBUILD_DIST = winbuild/BUILD.WINDOWS.txt winbuild/gen_resp_file.bat \
165: winbuild/MakefileBuild.vc winbuild/Makefile.vc
166:
167: PLAN9_DIST = plan9/include/mkfile \
168: plan9/include/mkfile \
169: plan9/mkfile.proto \
170: plan9/mkfile \
171: plan9/README \
172: plan9/lib/mkfile.inc \
173: plan9/lib/mkfile \
174: plan9/src/mkfile.inc \
175: plan9/src/mkfile
176:
177: EXTRA_DIST = CHANGES COPYING maketgz Makefile.dist curl-config.in \
178: RELEASE-NOTES buildconf libcurl.pc.in MacOSX-Framework \
179: scripts/updatemanpages.pl $(CMAKE_DIST) \
180: $(VC_DIST) $(WINBUILD_DIST) $(PLAN9_DIST) \
181: lib/libcurl.vers.in buildconf.bat scripts/coverage.sh scripts/completion.pl
182:
183: CLEANFILES = $(VC6_LIBDSP) $(VC6_SRCDSP) $(VC7_LIBVCPROJ) $(VC7_SRCVCPROJ) \
184: $(VC71_LIBVCPROJ) $(VC71_SRCVCPROJ) $(VC8_LIBVCPROJ) $(VC8_SRCVCPROJ) \
185: $(VC9_LIBVCPROJ) $(VC9_SRCVCPROJ) $(VC10_LIBVCXPROJ) $(VC10_SRCVCXPROJ) \
186: $(VC11_LIBVCXPROJ) $(VC11_SRCVCXPROJ) $(VC12_LIBVCXPROJ) $(VC12_SRCVCXPROJ) \
187: $(VC14_LIBVCXPROJ) $(VC14_SRCVCXPROJ) $(VC15_LIBVCXPROJ) $(VC15_SRCVCXPROJ)
188:
189: bin_SCRIPTS = curl-config
190:
191: SUBDIRS = lib src
192: DIST_SUBDIRS = $(SUBDIRS) tests packages scripts include docs
193:
194: pkgconfigdir = $(libdir)/pkgconfig
195: pkgconfig_DATA = libcurl.pc
196:
197: # List of files required to generate VC IDE .dsp, .vcproj and .vcxproj files
198: include lib/Makefile.inc
199: include src/Makefile.inc
200:
201: dist-hook:
202: rm -rf $(top_builddir)/tests/log
203: find $(distdir) -name "*.dist" -exec rm {} \;
204: (distit=`find $(srcdir) -name "*.dist" | grep -v ./ares/`; \
205: for file in $$distit; do \
206: strip=`echo $$file | sed -e s/^$(srcdir)// -e s/\.dist//`; \
207: cp -p $$file $(distdir)$$strip; \
208: done)
209:
210: html:
211: cd docs && $(MAKE) html
212:
213: pdf:
214: cd docs && $(MAKE) pdf
215:
216: check: test examples check-docs
217:
218: if CROSSCOMPILING
219: test-full: test
220: test-torture: test
221:
222: test:
223: @echo "NOTICE: we can't run the tests when cross-compiling!"
224:
225: else
226:
227: test:
228: @(cd tests; $(MAKE) all quiet-test)
229:
230: test-full:
231: @(cd tests; $(MAKE) all full-test)
232:
233: test-nonflaky:
234: @(cd tests; $(MAKE) all nonflaky-test)
235:
236: test-torture:
237: @(cd tests; $(MAKE) all torture-test)
238:
239: test-event:
240: @(cd tests; $(MAKE) all event-test)
241:
242: test-am:
243: @(cd tests; $(MAKE) all am-test)
244:
245: endif
246:
247: examples:
248: @(cd docs/examples; $(MAKE) check)
249:
250: check-docs:
251: @(cd docs/libcurl; $(MAKE) check)
252:
253: # Build source and binary rpms. For rpm-3.0 and above, the ~/.rpmmacros
254: # must contain the following line:
255: # %_topdir /home/loic/local/rpm
256: # and that /home/loic/local/rpm contains the directory SOURCES, BUILD etc.
257: #
258: # cd /home/loic/local/rpm ; mkdir -p SOURCES BUILD RPMS/i386 SPECS SRPMS
259: #
260: # If additional configure flags are needed to build the package, add the
261: # following in ~/.rpmmacros
262: # %configure CFLAGS="%{optflags}" ./configure %{_target_platform} --prefix=%{_prefix} ${AM_CONFIGFLAGS}
263: # and run make rpm in the following way:
264: # AM_CONFIGFLAGS='--with-uri=/home/users/loic/local/RedHat-6.2' make rpm
265: #
266:
267: rpms:
268: $(MAKE) RPMDIST=curl rpm
269: $(MAKE) RPMDIST=curl-ssl rpm
270:
271: rpm:
272: RPM_TOPDIR=`rpm --showrc | $(PERL) -n -e 'print if(s/.*_topdir\s+(.*)/$$1/)'` ; \
273: cp $(srcdir)/packages/Linux/RPM/$(RPMDIST).spec $$RPM_TOPDIR/SPECS ; \
274: cp $(PACKAGE)-$(VERSION).tar.gz $$RPM_TOPDIR/SOURCES ; \
275: rpm -ba --clean --rmsource $$RPM_TOPDIR/SPECS/$(RPMDIST).spec ; \
276: mv $$RPM_TOPDIR/RPMS/i386/$(RPMDIST)-*.rpm . ; \
277: mv $$RPM_TOPDIR/SRPMS/$(RPMDIST)-*.src.rpm .
278:
279: #
280: # Build a Solaris pkgadd format file
281: # run 'make pkgadd' once you've done './configure' and 'make' to make a Solaris pkgadd format
282: # file (which ends up back in this directory).
283: # The pkgadd file is in 'pkgtrans' format, so to install on Solaris, do
284: # pkgadd -d ./HAXXcurl-*
285: #
286:
287: # gak - libtool requires an absolute directory, hence the pwd below...
288: pkgadd:
289: umask 022 ; \
290: $(MAKE) install DESTDIR=`/bin/pwd`/packages/Solaris/root ; \
291: cat COPYING > $(srcdir)/packages/Solaris/copyright ; \
292: cd $(srcdir)/packages/Solaris && $(MAKE) package
293:
294: #
295: # Build a cygwin binary tarball installation file
296: # resulting .tar.bz2 file will end up at packages/Win32/cygwin
297: cygwinbin:
298: $(MAKE) -C packages/Win32/cygwin cygwinbin
299:
300: # We extend the standard install with a custom hook:
301: install-data-hook:
302: (cd include && $(MAKE) install)
303: (cd docs && $(MAKE) install)
304: (cd docs/libcurl && $(MAKE) install)
305:
306: # We extend the standard uninstall with a custom hook:
307: uninstall-hook:
308: (cd include && $(MAKE) uninstall)
309: (cd docs && $(MAKE) uninstall)
310: (cd docs/libcurl && $(MAKE) uninstall)
311:
312: ca-bundle: lib/mk-ca-bundle.pl
313: @echo "generating a fresh ca-bundle.crt"
314: @perl $< -b -l -u lib/ca-bundle.crt
315:
316: ca-firefox: lib/firefox-db2pem.sh
317: @echo "generating a fresh ca-bundle.crt"
318: ./lib/firefox-db2pem.sh lib/ca-bundle.crt
319:
320: checksrc:
321: (cd lib && $(MAKE) checksrc)
322: (cd src && $(MAKE) checksrc)
323: (cd tests && $(MAKE) checksrc)
324: (cd include/curl && $(MAKE) checksrc)
325: (cd docs/examples && $(MAKE) checksrc)
326:
327: .PHONY: vc-ide
328:
329: vc-ide: $(VC6_LIBDSP_DEPS) $(VC6_SRCDSP_DEPS) $(VC7_LIBVCPROJ_DEPS) \
330: $(VC7_SRCVCPROJ_DEPS) $(VC71_LIBVCPROJ_DEPS) $(VC71_SRCVCPROJ_DEPS) \
331: $(VC8_LIBVCPROJ_DEPS) $(VC8_SRCVCPROJ_DEPS) $(VC9_LIBVCPROJ_DEPS) \
332: $(VC9_SRCVCPROJ_DEPS) $(VC10_LIBVCXPROJ_DEPS) $(VC10_SRCVCXPROJ_DEPS) \
333: $(VC11_LIBVCXPROJ_DEPS) $(VC11_SRCVCXPROJ_DEPS) $(VC12_LIBVCXPROJ_DEPS) \
334: $(VC12_SRCVCXPROJ_DEPS) $(VC14_LIBVCXPROJ_DEPS) $(VC14_SRCVCXPROJ_DEPS) \
335: $(VC15_LIBVCXPROJ_DEPS) $(VC15_SRCVCXPROJ_DEPS)
336: @(win32_lib_srcs='$(LIB_CFILES)'; \
337: win32_lib_hdrs='$(LIB_HFILES) config-win32.h'; \
338: win32_lib_rc='$(LIB_RCFILES)'; \
339: win32_lib_vauth_srcs='$(LIB_VAUTH_CFILES)'; \
340: win32_lib_vauth_hdrs='$(LIB_VAUTH_HFILES)'; \
341: win32_lib_vquic_srcs='$(LIB_VQUIC_CFILES)'; \
342: win32_lib_vquic_hdrs='$(LIB_VQUIC_HFILES)'; \
343: win32_lib_vssh_srcs='$(LIB_VSSH_CFILES)'; \
344: win32_lib_vssh_hdrs='$(LIB_VSSH_HFILES)'; \
345: win32_lib_vtls_srcs='$(LIB_VTLS_CFILES)'; \
346: win32_lib_vtls_hdrs='$(LIB_VTLS_HFILES)'; \
347: win32_src_srcs='$(CURL_CFILES)'; \
348: win32_src_hdrs='$(CURL_HFILES)'; \
349: win32_src_rc='$(CURL_RCFILES)'; \
350: win32_src_x_srcs='$(CURLX_CFILES)'; \
351: win32_src_x_hdrs='$(CURLX_HFILES) ../lib/config-win32.h'; \
352: \
353: sorted_lib_srcs=`for file in $$win32_lib_srcs; do echo $$file; done | sort`; \
354: sorted_lib_hdrs=`for file in $$win32_lib_hdrs; do echo $$file; done | sort`; \
355: sorted_lib_vauth_srcs=`for file in $$win32_lib_vauth_srcs; do echo $$file; done | sort`; \
356: sorted_lib_vauth_hdrs=`for file in $$win32_lib_vauth_hdrs; do echo $$file; done | sort`; \
357: sorted_lib_vquic_srcs=`for file in $$win32_lib_vquic_srcs; do echo $$file; done | sort`; \
358: sorted_lib_vquic_hdrs=`for file in $$win32_lib_vquic_hdrs; do echo $$file; done | sort`; \
359: sorted_lib_vssh_srcs=`for file in $$win32_lib_vssh_srcs; do echo $$file; done | sort`; \
360: sorted_lib_vssh_hdrs=`for file in $$win32_lib_vssh_hdrs; do echo $$file; done | sort`; \
361: sorted_lib_vtls_srcs=`for file in $$win32_lib_vtls_srcs; do echo $$file; done | sort`; \
362: sorted_lib_vtls_hdrs=`for file in $$win32_lib_vtls_hdrs; do echo $$file; done | sort`; \
363: sorted_src_srcs=`for file in $$win32_src_srcs; do echo $$file; done | sort`; \
364: sorted_src_hdrs=`for file in $$win32_src_hdrs; do echo $$file; done | sort`; \
365: sorted_src_x_srcs=`for file in $$win32_src_x_srcs; do echo $$file; done | sort`; \
366: sorted_src_x_hdrs=`for file in $$win32_src_x_hdrs; do echo $$file; done | sort`; \
367: \
368: awk_code='\
369: function gen_element(type, dir, file)\
370: {\
371: sub(/vauth\//, "", file);\
372: sub(/vquic\//, "", file);\
373: sub(/vssh\//, "", file);\
374: sub(/vtls\//, "", file);\
375: \
376: spaces=" ";\
377: if(dir == "lib\\vauth" ||\
378: dir == "lib\\vquic" ||\
379: dir == "lib\\vssh" ||\
380: dir == "lib\\vtls")\
381: tabs=" ";\
382: else\
383: tabs=" ";\
384: \
385: if(type == "dsp") {\
386: printf("# Begin Source File\r\n");\
387: printf("\r\n");\
388: printf("SOURCE=..\\..\\..\\..\\%s\\%s\r\n", dir, file);\
389: printf("# End Source File\r\n");\
390: }\
391: else if(type == "vcproj1") {\
392: printf("%s<File\r\n", tabs);\
393: printf("%s RelativePath=\"..\\..\\..\\..\\%s\\%s\">\r\n",\
394: tabs, dir, file);\
395: printf("%s</File>\r\n", tabs);\
396: }\
397: else if(type == "vcproj2") {\
398: printf("%s<File\r\n", tabs);\
399: printf("%s RelativePath=\"..\\..\\..\\..\\%s\\%s\"\r\n",\
400: tabs, dir, file);\
401: printf("%s>\r\n", tabs);\
402: printf("%s</File>\r\n", tabs);\
403: }\
404: else if(type == "vcxproj") {\
405: i = index(file, ".");\
406: ext = substr(file, i == 0 ? 0 : i + 1);\
407: \
408: if(ext == "c")\
409: printf("%s<ClCompile Include=\"..\\..\\..\\..\\%s\\%s\" />\r\n",\
410: spaces, dir, file);\
411: else if(ext == "h")\
412: printf("%s<ClInclude Include=\"..\\..\\..\\..\\%s\\%s\" />\r\n",\
413: spaces, dir, file);\
414: else if(ext == "rc")\
415: printf("%s<ResourceCompile Include=\"..\\..\\..\\..\\%s\\%s\" />\r\n",\
416: spaces, dir, file);\
417: }\
418: }\
419: \
420: {\
421: \
422: if($$0 == "CURL_LIB_C_FILES") {\
423: split(lib_srcs, arr);\
424: for(val in arr) gen_element(proj_type, "lib", arr[val]);\
425: }\
426: else if($$0 == "CURL_LIB_H_FILES") {\
427: split(lib_hdrs, arr);\
428: for(val in arr) gen_element(proj_type, "lib", arr[val]);\
429: }\
430: else if($$0 == "CURL_LIB_RC_FILES") {\
431: split(lib_rc, arr);\
432: for(val in arr) gen_element(proj_type, "lib", arr[val]);\
433: }\
434: else if($$0 == "CURL_LIB_VAUTH_C_FILES") {\
435: split(lib_vauth_srcs, arr);\
436: for(val in arr) gen_element(proj_type, "lib\\vauth", arr[val]);\
437: }\
438: else if($$0 == "CURL_LIB_VAUTH_H_FILES") {\
439: split(lib_vauth_hdrs, arr);\
440: for(val in arr) gen_element(proj_type, "lib\\vauth", arr[val]);\
441: }\
442: else if($$0 == "CURL_LIB_VQUIC_C_FILES") {\
443: split(lib_vquic_srcs, arr);\
444: for(val in arr) gen_element(proj_type, "lib\\vquic", arr[val]);\
445: }\
446: else if($$0 == "CURL_LIB_VQUIC_H_FILES") {\
447: split(lib_vquic_hdrs, arr);\
448: for(val in arr) gen_element(proj_type, "lib\\vquic", arr[val]);\
449: }\
450: else if($$0 == "CURL_LIB_VSSH_C_FILES") {\
451: split(lib_vssh_srcs, arr);\
452: for(val in arr) gen_element(proj_type, "lib\\vssh", arr[val]);\
453: }\
454: else if($$0 == "CURL_LIB_VSSH_H_FILES") {\
455: split(lib_vssh_hdrs, arr);\
456: for(val in arr) gen_element(proj_type, "lib\\vssh", arr[val]);\
457: }\
458: else if($$0 == "CURL_LIB_VTLS_C_FILES") {\
459: split(lib_vtls_srcs, arr);\
460: for(val in arr) gen_element(proj_type, "lib\\vtls", arr[val]);\
461: }\
462: else if($$0 == "CURL_LIB_VTLS_H_FILES") {\
463: split(lib_vtls_hdrs, arr);\
464: for(val in arr) gen_element(proj_type, "lib\\vtls", arr[val]);\
465: }\
466: else if($$0 == "CURL_SRC_C_FILES") {\
467: split(src_srcs, arr);\
468: for(val in arr) gen_element(proj_type, "src", arr[val]);\
469: }\
470: else if($$0 == "CURL_SRC_H_FILES") {\
471: split(src_hdrs, arr);\
472: for(val in arr) gen_element(proj_type, "src", arr[val]);\
473: }\
474: else if($$0 == "CURL_SRC_RC_FILES") {\
475: split(src_rc, arr);\
476: for(val in arr) gen_element(proj_type, "src", arr[val]);\
477: }\
478: else if($$0 == "CURL_SRC_X_C_FILES") {\
479: split(src_x_srcs, arr);\
480: for(val in arr) {\
481: sub(/..\/lib\//, "", arr[val]);\
482: gen_element(proj_type, "lib", arr[val]);\
483: }\
484: }\
485: else if($$0 == "CURL_SRC_X_H_FILES") {\
486: split(src_x_hdrs, arr);\
487: for(val in arr) {\
488: sub(/..\/lib\//, "", arr[val]);\
489: gen_element(proj_type, "lib", arr[val]);\
490: }\
491: }\
492: else\
493: printf("%s\r\n", $$0);\
494: }';\
495: \
496: echo "generating '$(VC6_LIBDSP)'"; \
497: awk -v proj_type=dsp \
498: -v lib_srcs="$$sorted_lib_srcs" \
499: -v lib_hdrs="$$sorted_lib_hdrs" \
500: -v lib_rc="$$win32_lib_rc" \
501: -v lib_vauth_srcs="$$sorted_lib_vauth_srcs" \
502: -v lib_vauth_hdrs="$$sorted_lib_vauth_hdrs" \
503: -v lib_vquic_srcs="$$sorted_lib_vquic_srcs" \
504: -v lib_vquic_hdrs="$$sorted_lib_vquic_hdrs" \
505: -v lib_vssh_srcs="$$sorted_lib_vssh_srcs" \
506: -v lib_vssh_hdrs="$$sorted_lib_vssh_hdrs" \
507: -v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
508: -v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
509: "$$awk_code" $(srcdir)/$(VC6_LIBTMPL) > $(VC6_LIBDSP) || { exit 1; }; \
510: \
511: echo "generating '$(VC6_SRCDSP)'"; \
512: awk -v proj_type=dsp \
513: -v src_srcs="$$sorted_src_srcs" \
514: -v src_hdrs="$$sorted_src_hdrs" \
515: -v src_rc="$$win32_src_rc" \
516: -v src_x_srcs="$$sorted_src_x_srcs" \
517: -v src_x_hdrs="$$sorted_src_x_hdrs" \
518: "$$awk_code" $(srcdir)/$(VC6_SRCTMPL) > $(VC6_SRCDSP) || { exit 1; }; \
519: \
520: echo "generating '$(VC7_LIBVCPROJ)'"; \
521: awk -v proj_type=vcproj1 \
522: -v lib_srcs="$$sorted_lib_srcs" \
523: -v lib_hdrs="$$sorted_lib_hdrs" \
524: -v lib_rc="$$win32_lib_rc" \
525: -v lib_vauth_srcs="$$sorted_lib_vauth_srcs" \
526: -v lib_vauth_hdrs="$$sorted_lib_vauth_hdrs" \
527: -v lib_vquic_srcs="$$sorted_lib_vquic_srcs" \
528: -v lib_vquic_hdrs="$$sorted_lib_vquic_hdrs" \
529: -v lib_vssh_srcs="$$sorted_lib_vssh_srcs" \
530: -v lib_vssh_hdrs="$$sorted_lib_vssh_hdrs" \
531: -v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
532: -v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
533: "$$awk_code" $(srcdir)/$(VC7_LIBTMPL) > $(VC7_LIBVCPROJ) || { exit 1; }; \
534: \
535: echo "generating '$(VC7_SRCVCPROJ)'"; \
536: awk -v proj_type=vcproj1 \
537: -v src_srcs="$$sorted_src_srcs" \
538: -v src_hdrs="$$sorted_src_hdrs" \
539: -v src_rc="$$win32_src_rc" \
540: -v src_x_srcs="$$sorted_src_x_srcs" \
541: -v src_x_hdrs="$$sorted_src_x_hdrs" \
542: "$$awk_code" $(srcdir)/$(VC7_SRCTMPL) > $(VC7_SRCVCPROJ) || { exit 1; }; \
543: \
544: echo "generating '$(VC71_LIBVCPROJ)'"; \
545: awk -v proj_type=vcproj1 \
546: -v lib_srcs="$$sorted_lib_srcs" \
547: -v lib_hdrs="$$sorted_lib_hdrs" \
548: -v lib_rc="$$win32_lib_rc" \
549: -v lib_vauth_srcs="$$sorted_lib_vauth_srcs" \
550: -v lib_vauth_hdrs="$$sorted_lib_vauth_hdrs" \
551: -v lib_vquic_srcs="$$sorted_lib_vquic_srcs" \
552: -v lib_vquic_hdrs="$$sorted_lib_vquic_hdrs" \
553: -v lib_vssh_srcs="$$sorted_lib_vssh_srcs" \
554: -v lib_vssh_hdrs="$$sorted_lib_vssh_hdrs" \
555: -v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
556: -v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
557: "$$awk_code" $(srcdir)/$(VC71_LIBTMPL) > $(VC71_LIBVCPROJ) || { exit 1; }; \
558: \
559: echo "generating '$(VC71_SRCVCPROJ)'"; \
560: awk -v proj_type=vcproj1 \
561: -v src_srcs="$$sorted_src_srcs" \
562: -v src_hdrs="$$sorted_src_hdrs" \
563: -v src_rc="$$win32_src_rc" \
564: -v src_x_srcs="$$sorted_src_x_srcs" \
565: -v src_x_hdrs="$$sorted_src_x_hdrs" \
566: "$$awk_code" $(srcdir)/$(VC71_SRCTMPL) > $(VC71_SRCVCPROJ) || { exit 1; }; \
567: \
568: echo "generating '$(VC8_LIBVCPROJ)'"; \
569: awk -v proj_type=vcproj2 \
570: -v lib_srcs="$$sorted_lib_srcs" \
571: -v lib_hdrs="$$sorted_lib_hdrs" \
572: -v lib_rc="$$win32_lib_rc" \
573: -v lib_vauth_srcs="$$sorted_lib_vauth_srcs" \
574: -v lib_vauth_hdrs="$$sorted_lib_vauth_hdrs" \
575: -v lib_vquic_srcs="$$sorted_lib_vquic_srcs" \
576: -v lib_vquic_hdrs="$$sorted_lib_vquic_hdrs" \
577: -v lib_vssh_srcs="$$sorted_lib_vssh_srcs" \
578: -v lib_vssh_hdrs="$$sorted_lib_vssh_hdrs" \
579: -v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
580: -v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
581: "$$awk_code" $(srcdir)/$(VC8_LIBTMPL) > $(VC8_LIBVCPROJ) || { exit 1; }; \
582: \
583: echo "generating '$(VC8_SRCVCPROJ)'"; \
584: awk -v proj_type=vcproj2 \
585: -v src_srcs="$$sorted_src_srcs" \
586: -v src_hdrs="$$sorted_src_hdrs" \
587: -v src_rc="$$win32_src_rc" \
588: -v src_x_srcs="$$sorted_src_x_srcs" \
589: -v src_x_hdrs="$$sorted_src_x_hdrs" \
590: "$$awk_code" $(srcdir)/$(VC8_SRCTMPL) > $(VC8_SRCVCPROJ) || { exit 1; }; \
591: \
592: echo "generating '$(VC9_LIBVCPROJ)'"; \
593: awk -v proj_type=vcproj2 \
594: -v lib_srcs="$$sorted_lib_srcs" \
595: -v lib_hdrs="$$sorted_lib_hdrs" \
596: -v lib_rc="$$win32_lib_rc" \
597: -v lib_vauth_srcs="$$sorted_lib_vauth_srcs" \
598: -v lib_vauth_hdrs="$$sorted_lib_vauth_hdrs" \
599: -v lib_vquic_srcs="$$sorted_lib_vquic_srcs" \
600: -v lib_vquic_hdrs="$$sorted_lib_vquic_hdrs" \
601: -v lib_vssh_srcs="$$sorted_lib_vssh_srcs" \
602: -v lib_vssh_hdrs="$$sorted_lib_vssh_hdrs" \
603: -v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
604: -v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
605: "$$awk_code" $(srcdir)/$(VC9_LIBTMPL) > $(VC9_LIBVCPROJ) || { exit 1; }; \
606: \
607: echo "generating '$(VC9_SRCVCPROJ)'"; \
608: awk -v proj_type=vcproj2 \
609: -v src_srcs="$$sorted_src_srcs" \
610: -v src_hdrs="$$sorted_src_hdrs" \
611: -v src_rc="$$win32_src_rc" \
612: -v src_x_srcs="$$sorted_src_x_srcs" \
613: -v src_x_hdrs="$$sorted_src_x_hdrs" \
614: "$$awk_code" $(srcdir)/$(VC9_SRCTMPL) > $(VC9_SRCVCPROJ) || { exit 1; }; \
615: \
616: echo "generating '$(VC10_LIBVCXPROJ)'"; \
617: awk -v proj_type=vcxproj \
618: -v lib_srcs="$$sorted_lib_srcs" \
619: -v lib_hdrs="$$sorted_lib_hdrs" \
620: -v lib_rc="$$win32_lib_rc" \
621: -v lib_vauth_srcs="$$sorted_lib_vauth_srcs" \
622: -v lib_vauth_hdrs="$$sorted_lib_vauth_hdrs" \
623: -v lib_vquic_srcs="$$sorted_lib_vquic_srcs" \
624: -v lib_vquic_hdrs="$$sorted_lib_vquic_hdrs" \
625: -v lib_vssh_srcs="$$sorted_lib_vssh_srcs" \
626: -v lib_vssh_hdrs="$$sorted_lib_vssh_hdrs" \
627: -v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
628: -v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
629: "$$awk_code" $(srcdir)/$(VC10_LIBTMPL) > $(VC10_LIBVCXPROJ) || { exit 1; }; \
630: \
631: echo "generating '$(VC10_SRCVCXPROJ)'"; \
632: awk -v proj_type=vcxproj \
633: -v src_srcs="$$sorted_src_srcs" \
634: -v src_hdrs="$$sorted_src_hdrs" \
635: -v src_rc="$$win32_src_rc" \
636: -v src_x_srcs="$$sorted_src_x_srcs" \
637: -v src_x_hdrs="$$sorted_src_x_hdrs" \
638: "$$awk_code" $(srcdir)/$(VC10_SRCTMPL) > $(VC10_SRCVCXPROJ) || { exit 1; }; \
639: \
640: echo "generating '$(VC11_LIBVCXPROJ)'"; \
641: awk -v proj_type=vcxproj \
642: -v lib_srcs="$$sorted_lib_srcs" \
643: -v lib_hdrs="$$sorted_lib_hdrs" \
644: -v lib_rc="$$win32_lib_rc" \
645: -v lib_vauth_srcs="$$sorted_lib_vauth_srcs" \
646: -v lib_vauth_hdrs="$$sorted_lib_vauth_hdrs" \
647: -v lib_vquic_srcs="$$sorted_lib_vquic_srcs" \
648: -v lib_vquic_hdrs="$$sorted_lib_vquic_hdrs" \
649: -v lib_vssh_srcs="$$sorted_lib_vssh_srcs" \
650: -v lib_vssh_hdrs="$$sorted_lib_vssh_hdrs" \
651: -v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
652: -v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
653: "$$awk_code" $(srcdir)/$(VC11_LIBTMPL) > $(VC11_LIBVCXPROJ) || { exit 1; }; \
654: \
655: echo "generating '$(VC11_SRCVCXPROJ)'"; \
656: awk -v proj_type=vcxproj \
657: -v src_srcs="$$sorted_src_srcs" \
658: -v src_hdrs="$$sorted_src_hdrs" \
659: -v src_rc="$$win32_src_rc" \
660: -v src_x_srcs="$$sorted_src_x_srcs" \
661: -v src_x_hdrs="$$sorted_src_x_hdrs" \
662: "$$awk_code" $(srcdir)/$(VC11_SRCTMPL) > $(VC11_SRCVCXPROJ) || { exit 1; }; \
663: \
664: echo "generating '$(VC12_LIBVCXPROJ)'"; \
665: awk -v proj_type=vcxproj \
666: -v lib_srcs="$$sorted_lib_srcs" \
667: -v lib_hdrs="$$sorted_lib_hdrs" \
668: -v lib_rc="$$win32_lib_rc" \
669: -v lib_vauth_srcs="$$sorted_lib_vauth_srcs" \
670: -v lib_vauth_hdrs="$$sorted_lib_vauth_hdrs" \
671: -v lib_vquic_srcs="$$sorted_lib_vquic_srcs" \
672: -v lib_vquic_hdrs="$$sorted_lib_vquic_hdrs" \
673: -v lib_vssh_srcs="$$sorted_lib_vssh_srcs" \
674: -v lib_vssh_hdrs="$$sorted_lib_vssh_hdrs" \
675: -v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
676: -v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
677: "$$awk_code" $(srcdir)/$(VC12_LIBTMPL) > $(VC12_LIBVCXPROJ) || { exit 1; }; \
678: \
679: echo "generating '$(VC12_SRCVCXPROJ)'"; \
680: awk -v proj_type=vcxproj \
681: -v src_srcs="$$sorted_src_srcs" \
682: -v src_hdrs="$$sorted_src_hdrs" \
683: -v src_rc="$$win32_src_rc" \
684: -v src_x_srcs="$$sorted_src_x_srcs" \
685: -v src_x_hdrs="$$sorted_src_x_hdrs" \
686: "$$awk_code" $(srcdir)/$(VC12_SRCTMPL) > $(VC12_SRCVCXPROJ) || { exit 1; }; \
687: \
688: echo "generating '$(VC14_LIBVCXPROJ)'"; \
689: awk -v proj_type=vcxproj \
690: -v lib_srcs="$$sorted_lib_srcs" \
691: -v lib_hdrs="$$sorted_lib_hdrs" \
692: -v lib_rc="$$win32_lib_rc" \
693: -v lib_vauth_srcs="$$sorted_lib_vauth_srcs" \
694: -v lib_vauth_hdrs="$$sorted_lib_vauth_hdrs" \
695: -v lib_vquic_srcs="$$sorted_lib_vquic_srcs" \
696: -v lib_vquic_hdrs="$$sorted_lib_vquic_hdrs" \
697: -v lib_vssh_srcs="$$sorted_lib_vssh_srcs" \
698: -v lib_vssh_hdrs="$$sorted_lib_vssh_hdrs" \
699: -v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
700: -v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
701: "$$awk_code" $(srcdir)/$(VC14_LIBTMPL) > $(VC14_LIBVCXPROJ) || { exit 1; }; \
702: \
703: echo "generating '$(VC14_SRCVCXPROJ)'"; \
704: awk -v proj_type=vcxproj \
705: -v src_srcs="$$sorted_src_srcs" \
706: -v src_hdrs="$$sorted_src_hdrs" \
707: -v src_rc="$$win32_src_rc" \
708: -v src_x_srcs="$$sorted_src_x_srcs" \
709: -v src_x_hdrs="$$sorted_src_x_hdrs" \
710: "$$awk_code" $(srcdir)/$(VC14_SRCTMPL) > $(VC14_SRCVCXPROJ) || { exit 1; }; \
711: \
712: echo "generating '$(VC15_LIBVCXPROJ)'"; \
713: awk -v proj_type=vcxproj \
714: -v lib_srcs="$$sorted_lib_srcs" \
715: -v lib_hdrs="$$sorted_lib_hdrs" \
716: -v lib_rc="$$win32_lib_rc" \
717: -v lib_vauth_srcs="$$sorted_lib_vauth_srcs" \
718: -v lib_vauth_hdrs="$$sorted_lib_vauth_hdrs" \
719: -v lib_vquic_srcs="$$sorted_lib_vquic_srcs" \
720: -v lib_vquic_hdrs="$$sorted_lib_vquic_hdrs" \
721: -v lib_vssh_srcs="$$sorted_lib_vssh_srcs" \
722: -v lib_vssh_hdrs="$$sorted_lib_vssh_hdrs" \
723: -v lib_vtls_srcs="$$sorted_lib_vtls_srcs" \
724: -v lib_vtls_hdrs="$$sorted_lib_vtls_hdrs" \
725: "$$awk_code" $(srcdir)/$(VC15_LIBTMPL) > $(VC15_LIBVCXPROJ) || { exit 1; }; \
726: \
727: echo "generating '$(VC15_SRCVCXPROJ)'"; \
728: awk -v proj_type=vcxproj \
729: -v src_srcs="$$sorted_src_srcs" \
730: -v src_hdrs="$$sorted_src_hdrs" \
731: -v src_rc="$$win32_src_rc" \
732: -v src_x_srcs="$$sorted_src_x_srcs" \
733: -v src_x_hdrs="$$sorted_src_x_hdrs" \
734: "$$awk_code" $(srcdir)/$(VC15_SRCTMPL) > $(VC15_SRCVCXPROJ) || { exit 1; };)
735:
736: tidy:
737: (cd src && $(MAKE) tidy)
738: (cd lib && $(MAKE) tidy)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>