Makefile.am 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  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-nonflaky: test
  106. test-torture: test
  107. test-event: test
  108. test-am: test
  109. test-ci: test
  110. pytest: test
  111. pytest-ci: test
  112. test:
  113. @echo "NOTICE: we can't run the tests when cross-compiling!"
  114. else
  115. test:
  116. @(cd tests; $(MAKE) all quiet-test)
  117. test-full:
  118. @(cd tests; $(MAKE) all full-test)
  119. test-nonflaky:
  120. @(cd tests; $(MAKE) all nonflaky-test)
  121. test-torture:
  122. @(cd tests; $(MAKE) all torture-test)
  123. test-event:
  124. @(cd tests; $(MAKE) all event-test)
  125. test-am:
  126. @(cd tests; $(MAKE) all am-test)
  127. test-ci:
  128. @(cd tests; $(MAKE) all ci-test)
  129. pytest:
  130. @(cd tests; $(MAKE) all default-pytest)
  131. pytest-ci:
  132. @(cd tests; $(MAKE) all ci-pytest)
  133. endif
  134. examples:
  135. @(cd docs/examples; $(MAKE) check)
  136. check-docs:
  137. @(cd docs/libcurl; $(MAKE) check)
  138. # Build source and binary rpms. For rpm-3.0 and above, the ~/.rpmmacros
  139. # must contain the following line:
  140. # %_topdir /home/loic/local/rpm
  141. # and that /home/loic/local/rpm contains the directory SOURCES, BUILD etc.
  142. #
  143. # cd /home/loic/local/rpm ; mkdir -p SOURCES BUILD RPMS/i386 SPECS SRPMS
  144. #
  145. # If additional configure flags are needed to build the package, add the
  146. # following in ~/.rpmmacros
  147. # %configure CFLAGS="%{optflags}" ./configure %{_target_platform} --prefix=%{_prefix} ${AM_CONFIGFLAGS}
  148. # and run make rpm in the following way:
  149. # AM_CONFIGFLAGS='--with-uri=/home/users/loic/local/RedHat-6.2' make rpm
  150. #
  151. rpms:
  152. $(MAKE) RPMDIST=curl rpm
  153. $(MAKE) RPMDIST=curl-ssl rpm
  154. rpm:
  155. RPM_TOPDIR=`rpm --showrc | $(PERL) -n -e 'print if(s/.*_topdir\s+(.*)/$$1/)'` ; \
  156. cp $(srcdir)/packages/Linux/RPM/$(RPMDIST).spec $$RPM_TOPDIR/SPECS ; \
  157. cp $(PACKAGE)-$(VERSION).tar.gz $$RPM_TOPDIR/SOURCES ; \
  158. rpm -ba --clean --rmsource $$RPM_TOPDIR/SPECS/$(RPMDIST).spec ; \
  159. mv $$RPM_TOPDIR/RPMS/i386/$(RPMDIST)-*.rpm . ; \
  160. mv $$RPM_TOPDIR/SRPMS/$(RPMDIST)-*.src.rpm .
  161. #
  162. # Build a Solaris pkgadd format file
  163. # run 'make pkgadd' once you've done './configure' and 'make' to make a Solaris pkgadd format
  164. # file (which ends up back in this directory).
  165. # The pkgadd file is in 'pkgtrans' format, so to install on Solaris, do
  166. # pkgadd -d ./HAXXcurl-*
  167. #
  168. # gak - libtool requires an absolute directory, hence the pwd below...
  169. pkgadd:
  170. umask 022 ; \
  171. $(MAKE) install DESTDIR=`/bin/pwd`/packages/Solaris/root ; \
  172. cat COPYING > $(srcdir)/packages/Solaris/copyright ; \
  173. cd $(srcdir)/packages/Solaris && $(MAKE) package
  174. #
  175. # Build a Cygwin binary tarball installation file
  176. # resulting .tar.bz2 file will end up at packages/Win32/cygwin
  177. cygwinbin:
  178. $(MAKE) -C packages/Win32/cygwin cygwinbin
  179. # We extend the standard install with a custom hook:
  180. if BUILD_DOCS
  181. install-data-hook:
  182. (cd include && $(MAKE) install)
  183. (cd docs && $(MAKE) install)
  184. (cd docs/libcurl && $(MAKE) install)
  185. else
  186. install-data-hook:
  187. (cd include && $(MAKE) install)
  188. (cd docs && $(MAKE) install)
  189. endif
  190. # We extend the standard uninstall with a custom hook:
  191. uninstall-hook:
  192. (cd include && $(MAKE) uninstall)
  193. (cd docs && $(MAKE) uninstall)
  194. (cd docs/libcurl && $(MAKE) uninstall)
  195. ca-bundle: $(srcdir)/scripts/mk-ca-bundle.pl
  196. @echo "generating a fresh ca-bundle.crt"
  197. @perl $(srcdir)/scripts/mk-ca-bundle.pl -b -l -u lib/ca-bundle.crt
  198. ca-firefox: $(srcdir)/scripts/firefox-db2pem.sh
  199. @echo "generating a fresh ca-bundle.crt"
  200. $(srcdir)/scripts/firefox-db2pem.sh lib/ca-bundle.crt
  201. checksrc:
  202. (cd lib && $(MAKE) checksrc)
  203. (cd src && $(MAKE) checksrc)
  204. (cd tests && $(MAKE) checksrc)
  205. (cd include/curl && $(MAKE) checksrc)
  206. (cd docs/examples && $(MAKE) checksrc)
  207. (cd packages && $(MAKE) checksrc)
  208. tidy:
  209. (cd src && $(MAKE) tidy)
  210. (cd lib && $(MAKE) tidy)