Makefile.am 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. #***************************************************************************
  2. # _ _ ____ _
  3. # Project ___| | | | _ \| |
  4. # / __| | | | |_) | |
  5. # | (__| |_| | _ <| |___
  6. # \___|\___/|_| \_\_____|
  7. #
  8. # Copyright (C) 1998 - 2012, 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 http://curl.haxx.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. ###########################################################################
  22. AUTOMAKE_OPTIONS = foreign
  23. ACLOCAL_AMFLAGS = -I m4
  24. CMAKE_DIST = CMakeLists.txt CMake/CMakeConfigurableFile.in \
  25. CMake/CurlCheckCSourceCompiles.cmake CMake/CurlCheckCSourceRuns.cmake \
  26. CMake/CurlTests.c CMake/FindOpenSSL.cmake CMake/FindZLIB.cmake \
  27. CMake/OtherTests.cmake CMake/Platforms/WindowsCache.cmake \
  28. CMake/Utilities.cmake include/curl/curlbuild.h.cmake
  29. WINBUILD_DIST = winbuild/BUILD.WINDOWS.txt winbuild/gen_resp_file.bat \
  30. winbuild/MakefileBuild.vc winbuild/Makefile.vc
  31. EXTRA_DIST = CHANGES COPYING maketgz Makefile.dist curl-config.in \
  32. curl-style.el sample.emacs RELEASE-NOTES buildconf \
  33. libcurl.pc.in vc6curl.dsw MacOSX-Framework Android.mk $(CMAKE_DIST) \
  34. Makefile.msvc.names $(WINBUILD_DIST) lib/libcurl.vers.in
  35. bin_SCRIPTS = curl-config
  36. SUBDIRS = lib src include
  37. DIST_SUBDIRS = $(SUBDIRS) tests packages docs
  38. pkgconfigdir = $(libdir)/pkgconfig
  39. pkgconfig_DATA = libcurl.pc
  40. dist-hook:
  41. rm -rf $(top_builddir)/tests/log
  42. find $(distdir) -name "*.dist" -exec rm {} \;
  43. (distit=`find $(srcdir) -name "*.dist" | grep -v ./ares/`; \
  44. for file in $$distit; do \
  45. strip=`echo $$file | sed -e s/^$(srcdir)// -e s/\.dist//`; \
  46. cp $$file $(distdir)$$strip; \
  47. done)
  48. html:
  49. cd docs; make html
  50. pdf:
  51. cd docs; make pdf
  52. check: test examples
  53. if CROSSCOMPILING
  54. test-full: test
  55. test-torture: test
  56. test:
  57. @echo "NOTICE: we can't run the tests when cross-compiling!"
  58. else
  59. test:
  60. @(cd tests; $(MAKE) all quiet-test)
  61. test-full:
  62. @(cd tests; $(MAKE) all full-test)
  63. test-torture:
  64. @(cd tests; $(MAKE) all torture-test)
  65. endif
  66. examples:
  67. @(cd docs/examples; $(MAKE) check)
  68. # This is a hook to have 'make clean' also clean up the dosc and the tests
  69. # dir. The extra check for the Makefiles being present is necessary because
  70. # 'make distcheck' will make clean first in these directories _before_ it runs
  71. # this hook.
  72. clean-local:
  73. @(if test -f tests/Makefile; then cd tests; $(MAKE) clean; fi)
  74. @(if test -f docs/Makefile; then cd docs; $(MAKE) clean; fi)
  75. #
  76. # Build source and binary rpms. For rpm-3.0 and above, the ~/.rpmmacros
  77. # must contain the following line:
  78. # %_topdir /home/loic/local/rpm
  79. # and that /home/loic/local/rpm contains the directory SOURCES, BUILD etc.
  80. #
  81. # cd /home/loic/local/rpm ; mkdir -p SOURCES BUILD RPMS/i386 SPECS SRPMS
  82. #
  83. # If additional configure flags are needed to build the package, add the
  84. # following in ~/.rpmmacros
  85. # %configure CFLAGS="%{optflags}" ./configure %{_target_platform} --prefix=%{_prefix} ${AM_CONFIGFLAGS}
  86. # and run make rpm in the following way:
  87. # AM_CONFIGFLAGS='--with-uri=/home/users/loic/local/RedHat-6.2' make rpm
  88. #
  89. rpms:
  90. $(MAKE) RPMDIST=curl rpm
  91. $(MAKE) RPMDIST=curl-ssl rpm
  92. rpm:
  93. RPM_TOPDIR=`rpm --showrc | $(PERL) -n -e 'print if(s/.*_topdir\s+(.*)/$$1/)'` ; \
  94. cp $(srcdir)/packages/Linux/RPM/$(RPMDIST).spec $$RPM_TOPDIR/SPECS ; \
  95. cp $(PACKAGE)-$(VERSION).tar.gz $$RPM_TOPDIR/SOURCES ; \
  96. rpm -ba --clean --rmsource $$RPM_TOPDIR/SPECS/$(RPMDIST).spec ; \
  97. mv $$RPM_TOPDIR/RPMS/i386/$(RPMDIST)-*.rpm . ; \
  98. mv $$RPM_TOPDIR/SRPMS/$(RPMDIST)-*.src.rpm .
  99. #
  100. # Build a Solaris pkgadd format file
  101. # run 'make pkgadd' once you've done './configure' and 'make' to make a Solaris pkgadd format
  102. # file (which ends up back in this directory).
  103. # The pkgadd file is in 'pkgtrans' format, so to install on Solaris, do
  104. # pkgadd -d ./HAXXcurl-*
  105. #
  106. # gak - libtool requires an absoulte directory, hence the pwd below...
  107. pkgadd:
  108. umask 022 ; \
  109. make install DESTDIR=`/bin/pwd`/packages/Solaris/root ; \
  110. cat COPYING > $(srcdir)/packages/Solaris/copyright ; \
  111. cd $(srcdir)/packages/Solaris && $(MAKE) package
  112. #
  113. # Build a cygwin binary tarball installation file
  114. # resulting .tar.bz2 file will end up at packages/Win32/cygwin
  115. cygwinbin:
  116. $(MAKE) -C packages/Win32/cygwin cygwinbin
  117. # We extend the standard install with a custom hook:
  118. install-data-hook:
  119. cd include && $(MAKE) install
  120. cd docs && $(MAKE) install
  121. # We extend the standard uninstall with a custom hook:
  122. uninstall-hook:
  123. cd include && $(MAKE) uninstall
  124. cd docs && $(MAKE) uninstall
  125. ca-bundle: lib/mk-ca-bundle.pl
  126. @echo "generate a fresh ca-bundle.crt"
  127. @perl $< -b -l -u lib/ca-bundle.crt
  128. ca-firefox: lib/firefox-db2pem.sh
  129. @echo "generate a fresh ca-bundle.crt"
  130. ./lib/firefox-db2pem.sh lib/ca-bundle.crt
  131. checksrc:
  132. cd lib && $(MAKE) checksrc
  133. cd src && $(MAKE) checksrc