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