1 #***************************************************************************
3 # Project ___| | | | _ \| |
5 # | (__| |_| | _ <| |___
6 # \___|\___/|_| \_\_____|
8 # Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
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.
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.
18 # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 # KIND, either express or implied.
21 ###########################################################################
23 AUTOMAKE_OPTIONS = foreign
25 ACLOCAL_AMFLAGS = -I m4
27 CMAKE_DIST = CMakeLists.txt CMake/CMakeConfigurableFile.in \
28 CMake/CurlCheckCSourceCompiles.cmake CMake/CurlCheckCSourceRuns.cmake \
29 CMake/CurlTests.c CMake/FindOpenSSL.cmake CMake/FindZLIB.cmake \
30 CMake/OtherTests.cmake CMake/Platforms/WindowsCache.cmake \
31 CMake/Utilities.cmake include/curl/curlbuild.h.cmake
33 VC_DIST = projects/README \
34 projects/build-openssl.bat \
35 projects/Windows/VC6/curl.dsw \
36 projects/Windows/VC6/lib/libcurl.dsw projects/Windows/VC6/lib/libcurl.tmpl \
37 projects/Windows/VC6/src/curlsrc.dsw projects/Windows/VC6/src/curlsrc.tmpl \
38 projects/Windows/VC7/curl.sln \
39 projects/Windows/VC7/lib/libcurl.sln projects/Windows/VC7/lib/libcurl.tmpl \
40 projects/Windows/VC7/src/curlsrc.sln projects/Windows/VC7/src/curlsrc.tmpl \
41 projects/Windows/VC7.1/curl.sln \
42 projects/Windows/VC7.1/lib/libcurl.sln projects/Windows/VC7.1/lib/libcurl.tmpl \
43 projects/Windows/VC7.1/src/curlsrc.sln projects/Windows/VC7.1/src/curlsrc.tmpl \
44 projects/Windows/VC8/curl.sln \
45 projects/Windows/VC8/lib/libcurl.sln projects/Windows/VC8/lib/libcurl.tmpl \
46 projects/Windows/VC8/src/curlsrc.sln projects/Windows/VC8/src/curlsrc.tmpl \
47 projects/Windows/VC9/curl.sln \
48 projects/Windows/VC9/lib/libcurl.sln projects/Windows/VC9/lib/libcurl.tmpl \
49 projects/Windows/VC9/src/curlsrc.sln projects/Windows/VC9/src/curlsrc.tmpl \
50 projects/Windows/VC10/curl.sln \
51 projects/Windows/VC10/lib/libcurl.sln projects/Windows/VC10/lib/libcurl.tmpl \
52 projects/Windows/VC10/src/curlsrc.sln projects/Windows/VC10/src/curlsrc.tmpl \
53 projects/Windows/VC11/curl.sln \
54 projects/Windows/VC11/lib/libcurl.sln projects/Windows/VC11/lib/libcurl.tmpl \
55 projects/Windows/VC11/src/curlsrc.sln projects/Windows/VC11/src/curlsrc.tmpl \
56 projects/Windows/VC12/curl.sln \
57 projects/Windows/VC12/lib/libcurl.sln projects/Windows/VC12/lib/libcurl.tmpl \
58 projects/Windows/VC12/src/curlsrc.sln projects/Windows/VC12/src/curlsrc.tmpl
60 WINBUILD_DIST = winbuild/BUILD.WINDOWS.txt winbuild/gen_resp_file.bat \
61 winbuild/MakefileBuild.vc winbuild/Makefile.vc \
62 winbuild/Makefile.msvc.names
64 EXTRA_DIST = CHANGES COPYING maketgz Makefile.dist curl-config.in \
65 RELEASE-NOTES buildconf libcurl.pc.in MacOSX-Framework \
66 $(CMAKE_DIST) $(VC_DIST) $(WINBUILD_DIST) lib/libcurl.vers.in
68 bin_SCRIPTS = curl-config
70 SUBDIRS = lib src include
71 DIST_SUBDIRS = $(SUBDIRS) tests packages docs
73 pkgconfigdir = $(libdir)/pkgconfig
74 pkgconfig_DATA = libcurl.pc
76 # List of libcurl source files required to generate VC IDE dsp and prj files
77 include lib/Makefile.inc
79 WIN32SOURCES = $(CSOURCES)
80 WIN32HEADERS = $(HHEADERS) config-win32.h
83 rm -rf $(top_builddir)/tests/log
84 find $(distdir) -name "*.dist" -exec rm {} \;
85 (distit=`find $(srcdir) -name "*.dist" | grep -v ./ares/`; \
86 for file in $$distit; do \
87 strip=`echo $$file | sed -e s/^$(srcdir)// -e s/\.dist//`; \
88 cp $$file $(distdir)$$strip; \
104 @echo "NOTICE: we can't run the tests when cross-compiling!"
109 @(cd tests; $(MAKE) all quiet-test)
112 @(cd tests; $(MAKE) all full-test)
115 @(cd tests; $(MAKE) all torture-test)
118 @(cd tests; $(MAKE) all am-test)
123 @(cd docs/examples; $(MAKE) check)
125 # This is a hook to have 'make clean' also clean up the docs and the tests
126 # dir. The extra check for the Makefiles being present is necessary because
127 # 'make distcheck' will make clean first in these directories _before_ it runs
130 @(if test -f tests/Makefile; then cd tests; $(MAKE) clean; fi)
131 @(if test -f docs/Makefile; then cd docs; $(MAKE) clean; fi)
134 # Build source and binary rpms. For rpm-3.0 and above, the ~/.rpmmacros
135 # must contain the following line:
136 # %_topdir /home/loic/local/rpm
137 # and that /home/loic/local/rpm contains the directory SOURCES, BUILD etc.
139 # cd /home/loic/local/rpm ; mkdir -p SOURCES BUILD RPMS/i386 SPECS SRPMS
141 # If additional configure flags are needed to build the package, add the
142 # following in ~/.rpmmacros
143 # %configure CFLAGS="%{optflags}" ./configure %{_target_platform} --prefix=%{_prefix} ${AM_CONFIGFLAGS}
144 # and run make rpm in the following way:
145 # AM_CONFIGFLAGS='--with-uri=/home/users/loic/local/RedHat-6.2' make rpm
149 $(MAKE) RPMDIST=curl rpm
150 $(MAKE) RPMDIST=curl-ssl 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 .
161 # Build a Solaris pkgadd format file
162 # run 'make pkgadd' once you've done './configure' and 'make' to make a Solaris pkgadd format
163 # file (which ends up back in this directory).
164 # The pkgadd file is in 'pkgtrans' format, so to install on Solaris, do
165 # pkgadd -d ./HAXXcurl-*
168 # gak - libtool requires an absoulte directory, hence the pwd below...
171 make install DESTDIR=`/bin/pwd`/packages/Solaris/root ; \
172 cat COPYING > $(srcdir)/packages/Solaris/copyright ; \
173 cd $(srcdir)/packages/Solaris && $(MAKE) package
176 # Build a cygwin binary tarball installation file
177 # resulting .tar.bz2 file will end up at packages/Win32/cygwin
179 $(MAKE) -C packages/Win32/cygwin cygwinbin
181 # We extend the standard install with a custom hook:
183 cd include && $(MAKE) install
184 cd docs && $(MAKE) install
186 # We extend the standard uninstall with a custom hook:
188 cd include && $(MAKE) uninstall
189 cd docs && $(MAKE) uninstall
191 ca-bundle: lib/mk-ca-bundle.pl
192 @echo "generate a fresh ca-bundle.crt"
193 @perl $< -b -l -u lib/ca-bundle.crt
195 ca-firefox: lib/firefox-db2pem.sh
196 @echo "generate a fresh ca-bundle.crt"
197 ./lib/firefox-db2pem.sh lib/ca-bundle.crt
200 cd lib && $(MAKE) checksrc
201 cd src && $(MAKE) checksrc