1.1.1
by Domenico Andreoli
Import upstream version 7.12.0.is.7.11.2 |
1 |
#***************************************************************************
|
2 |
# _ _ ____ _
|
|
3 |
# Project ___| | | | _ \| |
|
|
4 |
# / __| | | | |_) | |
|
|
5 |
# | (__| |_| | _ <| |___
|
|
6 |
# \___|\___/|_| \_\_____|
|
|
7 |
#
|
|
1.1.11
by Michael Vogt
Import upstream version 7.18.2 |
8 |
# Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
|
1.1.1
by Domenico Andreoli
Import upstream version 7.12.0.is.7.11.2 |
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 |
#
|
|
1.1.11
by Michael Vogt
Import upstream version 7.18.2 |
21 |
# $Id: Makefile.am,v 1.62 2008-03-31 03:01:13 danf Exp $
|
1.1.1
by Domenico Andreoli
Import upstream version 7.12.0.is.7.11.2 |
22 |
###########################################################################
|
1
by Domenico Andreoli
Import upstream version 7.9.5 |
23 |
|
24 |
AUTOMAKE_OPTIONS = foreign |
|
25 |
||
1.1.2
by LaMont Jones
Import upstream version 7.12.3 |
26 |
EXTRA_DIST = CHANGES COPYING maketgz reconf Makefile.dist curl-config.in \ |
27 |
curl-style.el sample.emacs RELEASE-NOTES buildconf buildconf.bat libcurl.pc.in |
|
1
by Domenico Andreoli
Import upstream version 7.9.5 |
28 |
|
29 |
bin_SCRIPTS = curl-config |
|
30 |
||
1.1.1
by Domenico Andreoli
Import upstream version 7.12.0.is.7.11.2 |
31 |
SUBDIRS = lib src |
32 |
DIST_SUBDIRS = $(SUBDIRS) tests include packages docs |
|
1
by Domenico Andreoli
Import upstream version 7.9.5 |
33 |
|
1.1.4
by Martin Pitt
Import upstream version 7.15.1 |
34 |
pkgconfigdir = $(libdir)/pkgconfig |
35 |
pkgconfig_DATA = libcurl.pc |
|
36 |
||
1
by Domenico Andreoli
Import upstream version 7.9.5 |
37 |
dist-hook: |
1.1.1
by Domenico Andreoli
Import upstream version 7.12.0.is.7.11.2 |
38 |
rm -rf $(top_builddir)/tests/log |
39 |
find $(distdir) -name "*.dist" -exec rm {} \; |
|
40 |
(distit=`find $(srcdir) -name "*.dist"`; \ |
|
41 |
for file in $$distit; do \ |
|
42 |
strip=`echo $$file | sed -e s/^$(srcdir)// -e s/\.dist//`; \ |
|
43 |
cp $$file $(distdir)$$strip; \ |
|
44 |
done) |
|
1
by Domenico Andreoli
Import upstream version 7.9.5 |
45 |
|
46 |
html: |
|
47 |
cd docs; make html |
|
48 |
||
1.1.1
by Domenico Andreoli
Import upstream version 7.12.0.is.7.11.2 |
49 |
pdf: |
50 |
cd docs; make pdf |
|
51 |
||
1.1.9
by Matthias Klose
Import upstream version 7.17.1 |
52 |
check: test examples |
1
by Domenico Andreoli
Import upstream version 7.9.5 |
53 |
|
1.1.3
by Matthias Klose
Import upstream version 7.14.0 |
54 |
if CROSSCOMPILING
|
55 |
test-full: test |
|
56 |
test-torture: test |
|
57 |
||
58 |
test: |
|
59 |
@echo "NOTICE: we can't run the tests when cross-compiling!"
|
|
60 |
||
61 |
else
|
|
62 |
||
1
by Domenico Andreoli
Import upstream version 7.9.5 |
63 |
test: |
1.1.1
by Domenico Andreoli
Import upstream version 7.12.0.is.7.11.2 |
64 |
@(cd tests; $(MAKE) all quiet-test) |
65 |
||
66 |
test-full: |
|
67 |
@(cd tests; $(MAKE) all full-test) |
|
1
by Domenico Andreoli
Import upstream version 7.9.5 |
68 |
|
1.1.2
by LaMont Jones
Import upstream version 7.12.3 |
69 |
test-torture: |
70 |
@(cd tests; $(MAKE) all torture-test) |
|
71 |
||
1.1.3
by Matthias Klose
Import upstream version 7.14.0 |
72 |
endif
|
73 |
||
1.1.9
by Matthias Klose
Import upstream version 7.17.1 |
74 |
examples: |
1.1.11
by Michael Vogt
Import upstream version 7.18.2 |
75 |
@(cd docs/examples; $(MAKE) check) |
1.1.9
by Matthias Klose
Import upstream version 7.17.1 |
76 |
|
1
by Domenico Andreoli
Import upstream version 7.9.5 |
77 |
#
|
78 |
# Build source and binary rpms. For rpm-3.0 and above, the ~/.rpmmacros
|
|
79 |
# must contain the following line:
|
|
80 |
# %_topdir /home/loic/local/rpm
|
|
81 |
# and that /home/loic/local/rpm contains the directory SOURCES, BUILD etc.
|
|
82 |
#
|
|
83 |
# cd /home/loic/local/rpm ; mkdir -p SOURCES BUILD RPMS/i386 SPECS SRPMS
|
|
84 |
#
|
|
85 |
# If additional configure flags are needed to build the package, add the
|
|
86 |
# following in ~/.rpmmacros
|
|
87 |
# %configure CFLAGS="%{optflags}" ./configure %{_target_platform} --prefix=%{_prefix} ${AM_CONFIGFLAGS}
|
|
88 |
# and run make rpm in the following way:
|
|
89 |
# AM_CONFIGFLAGS='--with-uri=/home/users/loic/local/RedHat-6.2' make rpm
|
|
90 |
#
|
|
91 |
||
92 |
rpms: |
|
93 |
$(MAKE) RPMDIST=curl rpm |
|
94 |
$(MAKE) RPMDIST=curl-ssl rpm |
|
95 |
||
96 |
rpm: |
|
97 |
RPM_TOPDIR=`rpm --showrc | $(PERL) -n -e 'print if(s/.*_topdir\s+(.*)/$$1/)'` ; \ |
|
98 |
cp $(srcdir)/packages/Linux/RPM/$(RPMDIST).spec $$RPM_TOPDIR/SPECS ; \ |
|
99 |
cp $(PACKAGE)-$(VERSION).tar.gz $$RPM_TOPDIR/SOURCES ; \ |
|
100 |
rpm -ba --clean --rmsource $$RPM_TOPDIR/SPECS/$(RPMDIST).spec ; \ |
|
101 |
mv $$RPM_TOPDIR/RPMS/i386/$(RPMDIST)-*.rpm . ; \ |
|
102 |
mv $$RPM_TOPDIR/SRPMS/$(RPMDIST)-*.src.rpm . |
|
103 |
||
104 |
#
|
|
105 |
# Build a Solaris pkkgadd format file
|
|
106 |
# run 'make pkgadd' once you've done './configure' and 'make' to make a Solaris pkgadd format
|
|
107 |
# file (which ends up back in this directory).
|
|
108 |
# The pkgadd file is in 'pkgtrans' format, so to install on Solaris, do
|
|
109 |
# pkgadd -d ./HAXXcurl-*
|
|
110 |
#
|
|
111 |
||
112 |
# gak - libtool requires an absoulte directory, hence the pwd below...
|
|
113 |
pkgadd: |
|
114 |
umask 022 ; \ |
|
115 |
make install DESTDIR=`/bin/pwd`/packages/Solaris/root ; \ |
|
1.1.1
by Domenico Andreoli
Import upstream version 7.12.0.is.7.11.2 |
116 |
cat COPYING > $(srcdir)/packages/Solaris/copyright ; \ |
1
by Domenico Andreoli
Import upstream version 7.9.5 |
117 |
cd $(srcdir)/packages/Solaris && $(MAKE) package |
118 |
||
119 |
#
|
|
120 |
# Build a cygwin binary tarball installation file
|
|
121 |
# resulting .tar.bz2 file will end up at packages/Win32/cygwin
|
|
122 |
cygwinbin: |
|
123 |
$(MAKE) -C packages/Win32/cygwin cygwinbin |
|
1.1.1
by Domenico Andreoli
Import upstream version 7.12.0.is.7.11.2 |
124 |
|
125 |
# We extend the standard install with a custom hook:
|
|
126 |
install-data-hook: |
|
127 |
cd include && $(MAKE) install |
|
128 |
cd docs && $(MAKE) install |
|
129 |
||
130 |
# We extend the standard uninstall with a custom hook:
|
|
131 |
uninstall-hook: |
|
132 |
cd include && $(MAKE) uninstall |
|
133 |
cd docs && $(MAKE) uninstall |
|
1.1.11
by Michael Vogt
Import upstream version 7.18.2 |
134 |
|
135 |
ca-bundle: lib/mk-ca-bundle.pl |
|
136 |
@echo "generate a fresh ca-bundle.crt"
|
|
137 |
@perl $< -b -l -u lib/ca-bundle.crt |