Makefile.am 7.5 KB

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