Makefile.am 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. #***************************************************************************
  2. # _ _ ____ _
  3. # Project ___| | | | _ \| |
  4. # / __| | | | |_) | |
  5. # | (__| |_| | _ <| |___
  6. # \___|\___/|_| \_\_____|
  7. #
  8. # Copyright (C) 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.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. # SPDX-License-Identifier: curl
  22. #
  23. ###########################################################################
  24. AUTOMAKE_OPTIONS = foreign
  25. ACLOCAL_AMFLAGS = -I m4
  26. CMAKE_DIST = \
  27. CMake/cmake_uninstall.cmake.in \
  28. CMake/CMakeConfigurableFile.in \
  29. CMake/curl-config.cmake.in \
  30. CMake/CurlSymbolHiding.cmake \
  31. CMake/CurlTests.c \
  32. CMake/FindBearSSL.cmake \
  33. CMake/FindBrotli.cmake \
  34. CMake/FindCares.cmake \
  35. CMake/FindGSS.cmake \
  36. CMake/FindLibgsasl.cmake \
  37. CMake/FindLibidn2.cmake \
  38. CMake/FindLibpsl.cmake \
  39. CMake/FindLibssh.cmake \
  40. CMake/FindLibssh2.cmake \
  41. CMake/FindLibuv.cmake \
  42. CMake/FindMbedTLS.cmake \
  43. CMake/FindMSH3.cmake \
  44. CMake/FindMbedTLS.cmake \
  45. CMake/FindNGHTTP2.cmake \
  46. CMake/FindNGHTTP3.cmake \
  47. CMake/FindNGTCP2.cmake \
  48. CMake/FindNettle.cmake \
  49. CMake/FindQuiche.cmake \
  50. CMake/FindRustls.cmake \
  51. CMake/FindWolfSSH.cmake \
  52. CMake/FindWolfSSL.cmake \
  53. CMake/FindZstd.cmake \
  54. CMake/Macros.cmake \
  55. CMake/OtherTests.cmake \
  56. CMake/PickyWarnings.cmake \
  57. CMake/Platforms/WindowsCache.cmake \
  58. CMake/Utilities.cmake \
  59. CMakeLists.txt
  60. VC_DIST = projects/README.md \
  61. projects/build-openssl.bat \
  62. projects/build-wolfssl.bat \
  63. projects/checksrc.bat \
  64. projects/generate.bat \
  65. projects/wolfssl_options.h \
  66. projects/wolfssl_override.props
  67. WINBUILD_DIST = winbuild/README.md winbuild/gen_resp_file.bat \
  68. winbuild/MakefileBuild.vc winbuild/Makefile.vc winbuild/makedebug.bat
  69. PLAN9_DIST = plan9/include/mkfile \
  70. plan9/include/mkfile \
  71. plan9/mkfile.proto \
  72. plan9/mkfile \
  73. plan9/README \
  74. plan9/lib/mkfile.inc \
  75. plan9/lib/mkfile \
  76. plan9/src/mkfile.inc \
  77. plan9/src/mkfile
  78. EXTRA_DIST = CHANGES.md COPYING Makefile.dist \
  79. RELEASE-NOTES $(CMAKE_DIST) $(VC_DIST) $(WINBUILD_DIST) \
  80. $(PLAN9_DIST) buildconf.bat Dockerfile
  81. CLEANFILES = $(VC14_LIBVCXPROJ) $(VC14_SRCVCXPROJ) \
  82. $(VC14_10_LIBVCXPROJ) $(VC14_10_SRCVCXPROJ) \
  83. $(VC14_20_LIBVCXPROJ) $(VC14_20_SRCVCXPROJ) \
  84. $(VC14_30_LIBVCXPROJ) $(VC14_30_SRCVCXPROJ)
  85. DISTCLEANFILES = buildinfo.txt
  86. bin_SCRIPTS = curl-config
  87. SUBDIRS = lib docs src scripts
  88. DIST_SUBDIRS = $(SUBDIRS) tests packages include docs
  89. pkgconfigdir = $(libdir)/pkgconfig
  90. pkgconfig_DATA = libcurl.pc
  91. # List of files required to generate VC IDE .dsp, .vcproj and .vcxproj files
  92. include lib/Makefile.inc
  93. include src/Makefile.inc
  94. dist-hook:
  95. rm -rf $(top_builddir)/tests/log
  96. find $(distdir) -name "*.dist" -a \! -name Makefile.dist -exec rm {} \;
  97. (distit=`find $(srcdir) -name "*.dist" | grep -v Makefile`; \
  98. for file in $$distit; do \
  99. strip=`echo $$file | sed -e s/^$(srcdir)// -e s/\.dist//`; \
  100. cp -p $$file $(distdir)$$strip; \
  101. done)
  102. check: test examples check-docs
  103. if CROSSCOMPILING
  104. test-full: test
  105. test-torture: test
  106. test:
  107. @echo "NOTICE: we can't run the tests when cross-compiling!"
  108. else
  109. test:
  110. @(cd tests; $(MAKE) all quiet-test)
  111. test-full:
  112. @(cd tests; $(MAKE) all full-test)
  113. test-nonflaky:
  114. @(cd tests; $(MAKE) all nonflaky-test)
  115. test-torture:
  116. @(cd tests; $(MAKE) all torture-test)
  117. test-event:
  118. @(cd tests; $(MAKE) all event-test)
  119. test-am:
  120. @(cd tests; $(MAKE) all am-test)
  121. test-ci:
  122. @(cd tests; $(MAKE) all ci-test)
  123. endif
  124. examples:
  125. @(cd docs/examples; $(MAKE) check)
  126. check-docs:
  127. @(cd docs/libcurl; $(MAKE) check)
  128. # Build source and binary rpms. For rpm-3.0 and above, the ~/.rpmmacros
  129. # must contain the following line:
  130. # %_topdir /home/loic/local/rpm
  131. # and that /home/loic/local/rpm contains the directory SOURCES, BUILD etc.
  132. #
  133. # cd /home/loic/local/rpm ; mkdir -p SOURCES BUILD RPMS/i386 SPECS SRPMS
  134. #
  135. # If additional configure flags are needed to build the package, add the
  136. # following in ~/.rpmmacros
  137. # %configure CFLAGS="%{optflags}" ./configure %{_target_platform} --prefix=%{_prefix} ${AM_CONFIGFLAGS}
  138. # and run make rpm in the following way:
  139. # AM_CONFIGFLAGS='--with-uri=/home/users/loic/local/RedHat-6.2' make rpm
  140. #
  141. rpms:
  142. $(MAKE) RPMDIST=curl rpm
  143. $(MAKE) RPMDIST=curl-ssl rpm
  144. rpm:
  145. RPM_TOPDIR=`rpm --showrc | $(PERL) -n -e 'print if(s/.*_topdir\s+(.*)/$$1/)'` ; \
  146. cp $(srcdir)/packages/Linux/RPM/$(RPMDIST).spec $$RPM_TOPDIR/SPECS ; \
  147. cp $(PACKAGE)-$(VERSION).tar.gz $$RPM_TOPDIR/SOURCES ; \
  148. rpm -ba --clean --rmsource $$RPM_TOPDIR/SPECS/$(RPMDIST).spec ; \
  149. mv $$RPM_TOPDIR/RPMS/i386/$(RPMDIST)-*.rpm . ; \
  150. mv $$RPM_TOPDIR/SRPMS/$(RPMDIST)-*.src.rpm .
  151. #
  152. # Build a Solaris pkgadd format file
  153. # run 'make pkgadd' once you've done './configure' and 'make' to make a Solaris pkgadd format
  154. # file (which ends up back in this directory).
  155. # The pkgadd file is in 'pkgtrans' format, so to install on Solaris, do
  156. # pkgadd -d ./HAXXcurl-*
  157. #
  158. # gak - libtool requires an absolute directory, hence the pwd below...
  159. pkgadd:
  160. umask 022 ; \
  161. $(MAKE) install DESTDIR=`/bin/pwd`/packages/Solaris/root ; \
  162. cat COPYING > $(srcdir)/packages/Solaris/copyright ; \
  163. cd $(srcdir)/packages/Solaris && $(MAKE) package
  164. #
  165. # Build a Cygwin binary tarball installation file
  166. # resulting .tar.bz2 file will end up at packages/Win32/cygwin
  167. cygwinbin:
  168. $(MAKE) -C packages/Win32/cygwin cygwinbin
  169. # We extend the standard install with a custom hook:
  170. if BUILD_DOCS
  171. install-data-hook:
  172. (cd include && $(MAKE) install)
  173. (cd docs && $(MAKE) install)
  174. (cd docs/libcurl && $(MAKE) install)
  175. else
  176. install-data-hook:
  177. (cd include && $(MAKE) install)
  178. (cd docs && $(MAKE) install)
  179. endif
  180. # We extend the standard uninstall with a custom hook:
  181. uninstall-hook:
  182. (cd include && $(MAKE) uninstall)
  183. (cd docs && $(MAKE) uninstall)
  184. (cd docs/libcurl && $(MAKE) uninstall)
  185. ca-bundle: $(srcdir)/scripts/mk-ca-bundle.pl
  186. @echo "generating a fresh ca-bundle.crt"
  187. @perl $(srcdir)/scripts/mk-ca-bundle.pl -b -l -u lib/ca-bundle.crt
  188. ca-firefox: $(srcdir)/scripts/firefox-db2pem.sh
  189. @echo "generating a fresh ca-bundle.crt"
  190. $(srcdir)/scripts/firefox-db2pem.sh lib/ca-bundle.crt
  191. checksrc:
  192. (cd lib && $(MAKE) checksrc)
  193. (cd src && $(MAKE) checksrc)
  194. (cd tests && $(MAKE) checksrc)
  195. (cd include/curl && $(MAKE) checksrc)
  196. (cd docs/examples && $(MAKE) checksrc)
  197. (cd packages && $(MAKE) checksrc)
  198. tidy:
  199. (cd src && $(MAKE) tidy)
  200. (cd lib && $(MAKE) tidy)