Makefile.am 4.7 KB

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