18
18
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
19
# KIND, either express or implied.
21
# $Id: Makefile.am,v 1.128 2008-05-23 17:56:03 bagder Exp $
21
# $Id: Makefile.am,v 1.141 2009-02-23 14:34:41 yangtse Exp $
22
22
###########################################################################
23
23
AUTOMAKE_OPTIONS = foreign nostdinc
26
VCPROJ = curllib.vcproj
26
VCPROJ = libcurl.vcproj
28
28
DOCS = README.encoding README.memoryleak README.ares README.curlx \
29
README.hostip README.multi_socket README.httpauth README.pipelining
29
README.hostip README.multi_socket README.httpauth README.pipelining \
30
README.NSS README.curl_off_t
31
EXTRA_DIST = Makefile.b32 Makefile.m32 Makefile.vc6 Makefile.riscos \
32
$(DSP) curllib.dsw config-win32.h config-win32ce.h config-riscos.h \
33
config-mac.h config.h.in makefile.dj config.dos \
34
libcurl.framework.make libcurl.plist libcurl.rc config-amigaos.h \
35
amigaos.c amigaos.h makefile.amiga Makefile.netware nwlib.c nwos.c \
36
libcurl.imp msvcproj.head msvcproj.foot config-win32ce.h \
37
config-os400.h setup-os400.h config-symbian.h \
38
Makefile.Watcom config-tpf.h $(DOCS) $(VCPROJ) mk-ca-bundle.pl
32
EXTRA_DIST = Makefile.b32 Makefile.m32 Makefile.vc6 Makefile.riscos $(DSP) \
33
libcurl.dsw config-win32.h config-win32ce.h config-riscos.h config-mac.h \
34
config.h.in makefile.dj config.dos libcurl.plist \
35
libcurl.rc config-amigaos.h amigaos.c amigaos.h makefile.amiga \
36
Makefile.netware nwlib.c nwos.c libcurl.imp msvcproj.head msvcproj.foot \
37
config-win32ce.h config-os400.h setup-os400.h config-symbian.h \
38
Makefile.Watcom config-tpf.h $(DOCS) $(VCPROJ) mk-ca-bundle.pl \
40
41
CLEANFILES = $(DSP) $(VCPROJ)
42
43
lib_LTLIBRARIES = libcurl.la
43
44
LIBCURL_LIBS = @LIBCURL_LIBS@
45
# we use srcdir/include for the static global include files
46
# we use builddir/lib for the generated lib/config.h file to get found
47
# we use srcdir/lib for the lib-private header files
46
# Specify our include paths here, and do it relative to $(top_srcdir) and
47
# $(top_builddir), to ensure that these paths which belong to the library
48
# being currently built and tested are searched before the library which
49
# might possibly already be installed in the system.
51
# $(top_builddir)/include is for libcurl's generated curl/curlbuild.h file
52
# $(top_srcdir)/include is for libcurl's external include files
53
# $(top_builddir)/lib is for libcurl's generated lib/config.h file
54
# $(top_srcdir)/lib is for libcurl's lib/setup.h and other "private" files
49
INCLUDES = -I$(top_srcdir)/include \
50
-I$(top_builddir)/lib \
56
INCLUDES = -I$(top_builddir)/include \
57
-I$(top_srcdir)/include \
58
-I$(top_builddir)/lib \
51
59
-I$(top_srcdir)/lib
53
VERSION=-version-info 5:0:1
63
# Bumping of SONAME conditionally may seem like a weird thing to do, and yeah
64
# it is. The problem is that we try to avoid the bump as hard as possible, but
65
# yet it is still necessary for a few rare situations. The configure script will
66
# attempt to figure out these situations, and it can be forced to consider this
67
# to be such a case! See README.curl_off_t for further details.
69
# This conditional soname bump SHOULD be removed at next "proper" bump.
71
VERSIONINFO=-version-info 6:1:1
73
VERSIONINFO=-version-info 5:1:1
55
76
# This flag accepts an argument of the form current[:revision[:age]]. So,
56
77
# passing -version-info 3:12:1 sets current to 3, revision to 12, and age to
59
# If either revision or age are omitted, they default to 0. Also note that age
60
# must be less than or equal to the current interface number.
62
# Here are a set of rules to help you update your library version information:
64
# 1.Start with version information of 0:0:0 for each libtool library.
66
# 2.Update the version information only immediately before a public release of
67
# your software. More frequent updates are unnecessary, and only guarantee
68
# that the current interface number gets larger faster.
70
# 3.If the library source code has changed at all since the last update, then
71
# increment revision (c:r+1:a)
73
# 4.If any interfaces have been added, removed, or changed since the last
74
# update, increment current, and set revision to 0. (c+1:r=0:a)
76
# 5.If any interfaces have been added since the last public release, then
77
# increment age. (c:r:a+1)
79
# 6.If any interfaces have been removed since the last public release, then
80
# set age to 0. (c:r:a=0)
80
# Here's the simplified rule guide on how to change -version-info:
81
# (current version is C:R:A)
83
# 1. if there are only source changes, use C:R+1:A
84
# 2. if interfaces were added use C+1:0:A+1
85
# 3. if interfaces were removed, then use C+1:0:0
87
# For the full guide on libcurl ABI rules, see docs/libcurl/ABI
84
90
# The -no-undefined flag is CRUCIAL for this to build fine on Cygwin.
128
142
$(VCPROJ): vc8proj.head vc8proj.foot Makefile.am
129
143
echo "creating $(VCPROJ)"
130
144
@(cp $(srcdir)/vc8proj.head $(VCPROJ); \
131
for file in $(WIN32SOURCES); do \
145
win32_srcs='$(WIN32SOURCES)'; \
146
sorted_srcs=`for file in $$win32_srcs; do echo $$file; done | sort`; \
147
for file in $$sorted_srcs; do \
132
148
echo "<File RelativePath=\""$$file"\"></File>" $(VCPROJOUT); \
134
150
echo "</Filter><Filter Name=\"Header Files\">" $(VCPROJOUT); \
135
for file in $(WIN32HEADERS); do \
151
win32_hdrs='$(WIN32HEADERS)'; \
152
sorted_hdrs=`for file in $$win32_hdrs; do echo $$file; done | sort`; \
153
for file in $$sorted_hdrs; do \
136
154
echo "<File RelativePath=\""$$file"\"></File>" $(VCPROJOUT); \
138
156
cat $(srcdir)/vc8proj.foot $(VCPROJOUT) )