Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 162 lines (129 sloc) 5.001 kb
d50c921 @bagder source header added
authored
1 #***************************************************************************
2 # _ _ ____ _
3 # Project ___| | | | _ \| |
4 # / __| | | | |_) | |
5 # | (__| |_| | _ <| |___
6 # \___|\___/|_| \_\_____|
ae1912c @bagder Initial revision
authored
7 #
9ba42a0 @bagder cmake: removed two files
authored
8 # Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
d50c921 @bagder source header added
authored
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.
ae1912c @bagder Initial revision
authored
17 #
d50c921 @bagder source header added
authored
18 # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 # KIND, either express or implied.
20 #
21 ###########################################################################
ae1912c @bagder Initial revision
authored
22
e6ed347 @bagder automake usage and options cleanup
authored
23 AUTOMAKE_OPTIONS = foreign
ae1912c @bagder Initial revision
authored
24
a3498f9 @yangtse Reinstate the 'aclocal -I m4' in buildconf and 'ACLOCAL_AMFLAGS = -I m4'...
yangtse authored
25 ACLOCAL_AMFLAGS = -I m4
26
9ba42a0 @bagder cmake: removed two files
authored
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 \
d27519c @bagder Add missing cmake files to the tarball (thanks to Richard Atterer's repo...
authored
31 CMake/Utilities.cmake include/curl/curlbuild.h.cmake
dd0b38b @bagder first take at bundling cmake-related files in the tarball
authored
32
76ac6b9 @pierrejoye Windows build: alternative makefile
pierrejoye authored
33 WINBUILD_DIST = winbuild/BUILD.WINDOWS.txt winbuild/gen_resp_file.bat \
34 winbuild/MakefileBuild.vc winbuild/Makefile.vc
35
dd0b38b @bagder first take at bundling cmake-related files in the tarball
authored
36 EXTRA_DIST = CHANGES COPYING maketgz Makefile.dist curl-config.in \
89f6567 @yangtse Remove buildconf.bat from release and daily snapshot archives.
yangtse authored
37 curl-style.el sample.emacs RELEASE-NOTES buildconf \
1e739e7 @yangtse distrib: add new file to EXTRA_DIST
yangtse authored
38 libcurl.pc.in vc6curl.dsw MacOSX-Framework Android.mk $(CMAKE_DIST) \
7cc2e8b @ghedo configure: add symbols versioning option
ghedo authored
39 Makefile.msvc.names $(WINBUILD_DIST) lib/libcurl.vers.in
ae1912c @bagder Initial revision
authored
40
d1b0b08 @bagder Added curl-config as a script that now gets installed
authored
41 bin_SCRIPTS = curl-config
42
2ef7a28 @bagder include: cleanup
authored
43 SUBDIRS = lib src include
44 DIST_SUBDIRS = $(SUBDIRS) tests packages docs
ae1912c @bagder Initial revision
authored
45
0966758 @bagder Applied Albert Chin's patch that makes the libcurl.pc pkgconfig file get
authored
46 pkgconfigdir = $(libdir)/pkgconfig
47 pkgconfig_DATA = libcurl.pc
48
b915ca6 @bagder 'make distcheck' works now
authored
49 dist-hook:
a55649d @bagder added dist-hook that clears the tests/log dir properly as otherwise
authored
50 rm -rf $(top_builddir)/tests/log
36d6b16 @bagder Made the dist-hook more generic for adding more files named .dist into t...
authored
51 find $(distdir) -name "*.dist" -exec rm {} \;
6bf9d56 @bagder fix the find command line
authored
52 (distit=`find $(srcdir) -name "*.dist" | grep -v ./ares/`; \
36d6b16 @bagder Made the dist-hook more generic for adding more files named .dist into t...
authored
53 for file in $$distit; do \
54 strip=`echo $$file | sed -e s/^$(srcdir)// -e s/\.dist//`; \
55 cp $$file $(distdir)$$strip; \
56 done)
a997d60 @bagder Loic Dachary's updates to get 'make distcheck' work, including running t...
authored
57
46a897f @bagder make html runs make html in the docs dir
authored
58 html:
59 cd docs; make html
60
e6367ab @bagder generate and include PDF versions of the docs in the release archive
authored
61 pdf:
62 cd docs; make pdf
63
ffff8dd @dfandrich Compile most of the example apps in docs/examples when doing a 'make che...
dfandrich authored
64 check: test examples
b915ca6 @bagder 'make distcheck' works now
authored
65
c4ce9ac @bagder Add an alert already here if 'make test' is attempted for a cross-compil...
authored
66 if CROSSCOMPILING
67 test-full: test
68 test-torture: test
69
70 test:
71 @echo "NOTICE: we can't run the tests when cross-compiling!"
72
73 else
74
172f0ba @bagder the tests dir is added
authored
75 test:
4915002 @bagder Only build in lib and src by default, make the others dist-subdirs.
authored
76 @(cd tests; $(MAKE) all quiet-test)
044ca34 @bagder Loic Dachary's makefile/dist/rpm fixes
authored
77
39c1279 @bagder Added a 'test-full' target to run the tests in verbose mode.
authored
78 test-full:
4915002 @bagder Only build in lib and src by default, make the others dist-subdirs.
authored
79 @(cd tests; $(MAKE) all full-test)
39c1279 @bagder Added a 'test-full' target to run the tests in verbose mode.
authored
80
f39f7c2 @bagder 'make test-torture' in the root now runs a full torture test
authored
81 test-torture:
82 @(cd tests; $(MAKE) all torture-test)
83
c4ce9ac @bagder Add an alert already here if 'make test' is attempted for a cross-compil...
authored
84 endif
85
ffff8dd @dfandrich Compile most of the example apps in docs/examples when doing a 'make che...
dfandrich authored
86 examples:
1e482fe @dfandrich Changed the makefile so the doc/examples/ programs are never built in a
dfandrich authored
87 @(cd docs/examples; $(MAKE) check)
ffff8dd @dfandrich Compile most of the example apps in docs/examples when doing a 'make che...
dfandrich authored
88
1bfaf76 @dfandrich "make clean" now cleans out the docs and tests directories, too.
dfandrich authored
89 clean-local:
90 @(cd tests; $(MAKE) clean)
91 @(cd docs; $(MAKE) clean)
92
a9be9bc @bagder Additional "docs" about 'make rpms' added by Loic
authored
93 #
044ca34 @bagder Loic Dachary's makefile/dist/rpm fixes
authored
94 # Build source and binary rpms. For rpm-3.0 and above, the ~/.rpmmacros
95 # must contain the following line:
96 # %_topdir /home/loic/local/rpm
97 # and that /home/loic/local/rpm contains the directory SOURCES, BUILD etc.
98 #
a9be9bc @bagder Additional "docs" about 'make rpms' added by Loic
authored
99 # cd /home/loic/local/rpm ; mkdir -p SOURCES BUILD RPMS/i386 SPECS SRPMS
100 #
044ca34 @bagder Loic Dachary's makefile/dist/rpm fixes
authored
101 # If additional configure flags are needed to build the package, add the
102 # following in ~/.rpmmacros
103 # %configure CFLAGS="%{optflags}" ./configure %{_target_platform} --prefix=%{_prefix} ${AM_CONFIGFLAGS}
104 # and run make rpm in the following way:
105 # AM_CONFIGFLAGS='--with-uri=/home/users/loic/local/RedHat-6.2' make rpm
106 #
107
108 rpms:
109 $(MAKE) RPMDIST=curl rpm
110 $(MAKE) RPMDIST=curl-ssl rpm
111
112 rpm:
113 RPM_TOPDIR=`rpm --showrc | $(PERL) -n -e 'print if(s/.*_topdir\s+(.*)/$$1/)'` ; \
d54cdf2 @bagder adjusted to work with automake 'make dist'
authored
114 cp $(srcdir)/packages/Linux/RPM/$(RPMDIST).spec $$RPM_TOPDIR/SPECS ; \
044ca34 @bagder Loic Dachary's makefile/dist/rpm fixes
authored
115 cp $(PACKAGE)-$(VERSION).tar.gz $$RPM_TOPDIR/SOURCES ; \
116 rpm -ba --clean --rmsource $$RPM_TOPDIR/SPECS/$(RPMDIST).spec ; \
117 mv $$RPM_TOPDIR/RPMS/i386/$(RPMDIST)-*.rpm . ; \
118 mv $$RPM_TOPDIR/SRPMS/$(RPMDIST)-*.src.rpm .
c503930 Added Solaris 'pkgadd' building support to packages collection and autoc...
Cris Bailiff authored
119
120 #
1bfaf76 @dfandrich "make clean" now cleans out the docs and tests directories, too.
dfandrich authored
121 # Build a Solaris pkgadd format file
c503930 Added Solaris 'pkgadd' building support to packages collection and autoc...
Cris Bailiff authored
122 # run 'make pkgadd' once you've done './configure' and 'make' to make a Solaris pkgadd format
123 # file (which ends up back in this directory).
124 # The pkgadd file is in 'pkgtrans' format, so to install on Solaris, do
125 # pkgadd -d ./HAXXcurl-*
126 #
127
128 # gak - libtool requires an absoulte directory, hence the pwd below...
129 pkgadd:
130 umask 022 ; \
131 make install DESTDIR=`/bin/pwd`/packages/Solaris/root ; \
fccf692 @bagder fixed the pkgadd target
authored
132 cat COPYING > $(srcdir)/packages/Solaris/copyright ; \
c503930 Added Solaris 'pkgadd' building support to packages collection and autoc...
Cris Bailiff authored
133 cd $(srcdir)/packages/Solaris && $(MAKE) package
56562ba @bagder Kevin Roth's cygwin fixes
authored
134
135 #
fbb9d23 @bagder Kevin Roth's cygwin package fixes
authored
136 # Build a cygwin binary tarball installation file
137 # resulting .tar.bz2 file will end up at packages/Win32/cygwin
56562ba @bagder Kevin Roth's cygwin fixes
authored
138 cygwinbin:
fbb9d23 @bagder Kevin Roth's cygwin package fixes
authored
139 $(MAKE) -C packages/Win32/cygwin cygwinbin
3ed3ae5 @bagder When I introduced the DIST_SUBDIRS usage, I broken the 'make install' fo...
authored
140
141 # We extend the standard install with a custom hook:
142 install-data-hook:
143 cd include && $(MAKE) install
144 cd docs && $(MAKE) install
bbdc039 @bagder make an uninstall hook in the same manner we already did an install hook
authored
145
146 # We extend the standard uninstall with a custom hook:
147 uninstall-hook:
148 cd include && $(MAKE) uninstall
149 cd docs && $(MAKE) uninstall
7edd138 @bagder provide the ca-bundle target the same way as the Makefile.dist does it s...
authored
150
151 ca-bundle: lib/mk-ca-bundle.pl
152 @echo "generate a fresh ca-bundle.crt"
940c075 @gknauf removed 'mv' call and changed to use new backup feature of mk-ca-bundle....
gknauf authored
153 @perl $< -b -l -u lib/ca-bundle.crt
1c04aa5 @bagder - Running 'make ca-firefox' in the root build dir will now run the new
authored
154
33638d5 @bagder Andres Garcia pointed out these Makefile mistakes...
authored
155 ca-firefox: lib/firefox-db2pem.sh
1c04aa5 @bagder - Running 'make ca-firefox' in the root build dir will now run the new
authored
156 @echo "generate a fresh ca-bundle.crt"
157 ./lib/firefox-db2pem.sh lib/ca-bundle.crt
45de057 @bagder make: add 'checksrc' as target to check code style
authored
158
159 checksrc:
160 cd lib && $(MAKE) checksrc
161 cd src && $(MAKE) checksrc
Something went wrong with that request. Please try again.