2
0

Makefile.am 7.8 KB

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