2
0

Makefile.am 7.6 KB

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