~ubuntu-branches/ubuntu/vivid/curl/vivid

« back to all changes in this revision

Viewing changes to lib/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Schuldei
  • Date: 2009-04-02 23:35:45 UTC
  • mto: (1.2.1 upstream) (3.2.3 sid)
  • mto: This revision was merged to the branch mainline in revision 38.
  • Revision ID: james.westby@ubuntu.com-20090402233545-geixkwhe3izccjt7
Tags: upstream-7.19.4
ImportĀ upstreamĀ versionĀ 7.19.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
#                            | (__| |_| |  _ <| |___
6
6
#                             \___|\___/|_| \_\_____|
7
7
#
8
 
# Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
 
8
# Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
9
9
#
10
10
# This software is licensed as described in the file COPYING, which
11
11
# you should have received as part of this distribution. The terms
18
18
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
19
# KIND, either express or implied.
20
20
#
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
24
24
 
25
 
DSP = curllib.dsp
26
 
VCPROJ = curllib.vcproj
 
25
DSP = libcurl.dsp
 
26
VCPROJ = libcurl.vcproj
27
27
 
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
30
31
 
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            \
 
39
 firefox-db2pem.sh
39
40
 
40
41
CLEANFILES = $(DSP) $(VCPROJ)
41
42
 
42
43
lib_LTLIBRARIES = libcurl.la
43
44
LIBCURL_LIBS = @LIBCURL_LIBS@
44
45
 
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.
 
50
#
 
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
48
55
 
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
52
60
 
53
 
VERSION=-version-info 5:0:1
 
61
if SONAME_BUMP
 
62
#
 
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.
 
68
#
 
69
# This conditional soname bump SHOULD be removed at next "proper" bump.
 
70
#
 
71
VERSIONINFO=-version-info 6:1:1
 
72
else
 
73
VERSIONINFO=-version-info 5:1:1
 
74
endif
54
75
 
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
57
78
# 1.
58
79
#
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.
61
 
#
62
 
# Here are a set of rules to help you update your library version information:
63
 
#
64
 
# 1.Start with version information of 0:0:0 for each libtool library.
65
 
#
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.
69
 
#
70
 
# 3.If the library source code has changed at all since the last update, then
71
 
# increment revision (c:r+1:a)
72
 
#
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)
75
 
#
76
 
# 5.If any interfaces have been added since the last public release, then
77
 
# increment age. (c:r:a+1)
78
 
#
79
 
# 6.If any interfaces have been removed since the last public release, then
80
 
# set age to 0. (c:r:a=0)
81
 
#
 
80
# Here's the simplified rule guide on how to change -version-info:
 
81
# (current version is C:R:A)
 
82
 
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
 
86
#
 
87
# For the full guide on libcurl ABI rules, see docs/libcurl/ABI
82
88
 
83
89
if NO_UNDEFINED
84
90
# The -no-undefined flag is CRUCIAL for this to build fine on Cygwin.
91
97
MIMPURE = -mimpure-text
92
98
endif
93
99
 
94
 
libcurl_la_LDFLAGS = $(UNDEF) $(VERSION) $(MIMPURE) $(LIBCURL_LIBS)
 
100
libcurl_la_LDFLAGS = $(UNDEF) $(VERSIONINFO) $(MIMPURE) $(LIBCURL_LIBS)
95
101
 
96
102
# Makefile.inc provides the CSOURCES and HHEADERS defines
97
103
include Makefile.inc
108
114
        echo "creating $(DSP)"
109
115
        @(cp $(srcdir)/msvcproj.head $(DSP); \
110
116
        echo "# Begin Group \"Source Files\"" $(DSPOUT); \
111
 
        for file in $(WIN32SOURCES); do \
 
117
        echo "" $(DSPOUT); \
 
118
        echo "# PROP Default_Filter \"\"" $(DSPOUT); \
 
119
        win32_srcs='$(WIN32SOURCES)'; \
 
120
        sorted_srcs=`for file in $$win32_srcs; do echo $$file; done | sort`; \
 
121
        for file in $$sorted_srcs; do \
112
122
        echo "# Begin Source File" $(DSPOUT); \
113
123
        echo "" $(DSPOUT); \
114
124
        echo "SOURCE=.\\"$$file $(DSPOUT); \
116
126
        done; \
117
127
        echo "# End Group" $(DSPOUT); \
118
128
        echo "# Begin Group \"Header Files\"" $(DSPOUT); \
119
 
        for file in $(WIN32HEADERS); do \
 
129
        echo "" $(DSPOUT); \
 
130
        echo "# PROP Default_Filter \"\"" $(DSPOUT); \
 
131
        win32_hdrs='$(WIN32HEADERS)'; \
 
132
        sorted_hdrs=`for file in $$win32_hdrs; do echo $$file; done | sort`; \
 
133
        for file in $$sorted_hdrs; do \
120
134
        echo "# Begin Source File" $(DSPOUT); \
121
135
        echo "" $(DSPOUT); \
122
136
        echo "SOURCE=.\\"$$file $(DSPOUT); \
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); \
133
149
        done; \
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); \
137
155
        done; \
138
156
        cat $(srcdir)/vc8proj.foot $(VCPROJOUT) )