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

« back to all changes in this revision

Viewing changes to lib/Makefile.am

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2013-05-07 12:16:37 UTC
  • mfrom: (3.4.37 sid)
  • Revision ID: package-import@ubuntu.com-20130507121637-9t3i98qgsyr9dw5d
Tags: 7.30.0-1ubuntu1
* Resynchronize on Debian. Remaining changes:
  - Drop dependencies not in main:
    + Build-Depends: Drop stunnel4 and libssh2-1-dev.
    + Drop libssh2-1-dev from binary package Depends.
  - Add new libcurl3-udeb package.
  - Add new curl-udeb package.
* Add warning to debian/patches/series.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
###########################################################################
22
22
AUTOMAKE_OPTIONS = foreign nostdinc
23
23
 
24
 
DSP = vc6libcurl.dsp
25
 
VCPROJ = libcurl.vcproj
26
 
 
27
24
DOCS = README.encoding README.memoryleak README.ares README.curlx       \
28
25
 README.hostip README.multi_socket README.httpauth README.pipelining    \
29
26
 README.curl_off_t README.pingpong
30
27
 
31
28
CMAKE_DIST = CMakeLists.txt curl_config.h.cmake
32
29
 
33
 
EXTRA_DIST = Makefile.b32 Makefile.m32 Makefile.vc6 $(DSP)              \
34
 
 vc6libcurl.dsw config-win32.h config-win32ce.h config-riscos.h         \
35
 
 config-mac.h curl_config.h.in makefile.dj config-dos.h libcurl.plist   \
36
 
 libcurl.rc config-amigaos.h makefile.amiga Makefile.netware nwlib.c    \
37
 
 nwos.c msvcproj.head msvcproj.foot config-win32ce.h config-os400.h     \
38
 
 setup-os400.h config-symbian.h Makefile.Watcom config-tpf.h $(DOCS)    \
39
 
 $(VCPROJ) mk-ca-bundle.pl mk-ca-bundle.vbs firefox-db2pem.sh           \
40
 
 $(CMAKE_DIST) config-vxworks.h Makefile.vxworks checksrc.pl            \
 
30
EXTRA_DIST = Makefile.b32 Makefile.m32 Makefile.vc6 config-win32.h      \
 
31
 config-win32ce.h config-riscos.h config-mac.h curl_config.h.in         \
 
32
 makefile.dj config-dos.h libcurl.plist libcurl.rc config-amigaos.h     \
 
33
 makefile.amiga Makefile.netware nwlib.c nwos.c config-win32ce.h        \
 
34
 config-os400.h setup-os400.h config-symbian.h Makefile.Watcom          \
 
35
 config-tpf.h $(DOCS) mk-ca-bundle.pl mk-ca-bundle.vbs $(CMAKE_DIST)    \
 
36
 firefox-db2pem.sh config-vxworks.h Makefile.vxworks checksrc.pl        \
41
37
 objnames-test08.sh objnames-test10.sh objnames.inc
42
38
 
43
 
CLEANFILES = $(DSP) $(VCPROJ)
44
 
 
45
39
lib_LTLIBRARIES = libcurl-nss.la
46
 
LIBCURL_LIBS = @LIBCURL_LIBS@
 
40
 
 
41
if BUILD_UNITTESTS
 
42
noinst_LTLIBRARIES = libcurlu.la
 
43
else
 
44
noinst_LTLIBRARIES =
 
45
endif
47
46
 
48
47
# This might hold -Werror
49
48
CFLAGS += @CURL_CFLAG_EXTRAS@
50
49
 
51
 
CFLAG_CURL_SYMBOL_HIDING = @CFLAG_CURL_SYMBOL_HIDING@
52
 
 
53
50
# Specify our include paths here, and do it relative to $(top_srcdir) and
54
51
# $(top_builddir), to ensure that these paths which belong to the library
55
52
# being currently built and tested are searched before the library which
79
76
              -I$(top_srcdir)/lib
80
77
endif
81
78
 
82
 
# Mostly for Windows build targets, when building libcurl library
83
 
if USE_CPPFLAG_BUILDING_LIBCURL
84
 
AM_CPPFLAGS += -DBUILDING_LIBCURL
85
 
endif
86
 
 
87
 
# Mostly for Windows build targets, when building static libcurl
88
 
if USE_CPPFLAG_CURL_STATICLIB
89
 
AM_CPPFLAGS += -DCURL_STATICLIB
90
 
endif
 
79
# Prevent LIBS from being used for all link targets
 
80
LIBS = $(BLANK_AT_MAKETIME)
91
81
 
92
82
if SONAME_BUMP
93
83
#
117
107
#
118
108
# For the full guide on libcurl ABI rules, see docs/libcurl/ABI
119
109
 
120
 
if NO_UNDEFINED
121
 
# The -no-undefined flag is crucial to build fine on some platforms
122
 
UNDEF = -no-undefined
123
 
endif
124
 
 
125
 
if MIMPURE
126
 
# This is for gcc on Solaris (8+ ?) to avoid "relocations remain against
127
 
# allocatable but non-writable sections" problems.
128
 
MIMPURE = -mimpure-text
129
 
endif
130
 
 
131
 
if VERSIONED_SYMBOLS
132
 
VERSIONED_SYMBOLS = -Wl,--version-script=libcurl.vers
133
 
endif
134
 
 
135
 
# Prevent LIBS from being used for all link targets
136
 
LIBS = $(BLANK_AT_MAKETIME)
137
 
 
138
 
libcurl_nss_la_LDFLAGS = $(UNDEF) $(VERSIONINFO) $(MIMPURE) $(VERSIONED_SYMBOLS) $(LIBCURL_LIBS)
 
110
AM_CPPFLAGS += -DBUILDING_LIBCURL
 
111
AM_LDFLAGS =
 
112
AM_CFLAGS =
 
113
 
 
114
libcurl_nss_la_CPPFLAGS_EXTRA =
 
115
libcurl_nss_la_LDFLAGS_EXTRA =
 
116
libcurl_nss_la_CFLAGS_EXTRA =
 
117
 
 
118
if CURL_LT_SHLIB_USE_VERSION_INFO
 
119
libcurl_nss_la_LDFLAGS_EXTRA += $(VERSIONINFO)
 
120
endif
 
121
 
 
122
if CURL_LT_SHLIB_USE_NO_UNDEFINED
 
123
libcurl_nss_la_LDFLAGS_EXTRA += -no-undefined
 
124
endif
 
125
 
 
126
if CURL_LT_SHLIB_USE_MIMPURE_TEXT
 
127
libcurl_nss_la_LDFLAGS_EXTRA += -mimpure-text
 
128
endif
 
129
 
 
130
if CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS
 
131
libcurl_nss_la_LDFLAGS_EXTRA += -Wl,--version-script=libcurl.vers
 
132
endif
 
133
 
 
134
if USE_CPPFLAG_CURL_STATICLIB
 
135
libcurl_nss_la_CPPFLAGS_EXTRA += -DCURL_STATICLIB
 
136
endif
139
137
 
140
138
if DOING_CURL_SYMBOL_HIDING
141
 
libcurl_nss_la_CPPFLAGS = $(AM_CPPFLAGS) -DCURL_HIDDEN_SYMBOLS
142
 
libcurl_nss_la_CFLAGS = $(AM_CFLAGS) $(CFLAG_CURL_SYMBOL_HIDING)
143
 
else
144
 
libcurl_nss_la_CPPFLAGS = $(AM_CPPFLAGS)
145
 
libcurl_nss_la_CFLAGS = $(AM_CFLAGS)
146
 
endif
147
 
 
148
 
# unit testing static library built only along with unit tests
149
 
if BUILD_UNITTESTS
150
 
noinst_LTLIBRARIES = libcurlu.la
151
 
else
152
 
noinst_LTLIBRARIES =
153
 
endif
154
 
 
155
 
libcurlu_la_CPPFLAGS = $(AM_CPPFLAGS) -DUNITTESTS
156
 
libcurlu_la_LDFLAGS = -static $(LIBCURL_LIBS)
 
139
libcurl_nss_la_CPPFLAGS_EXTRA += -DCURL_HIDDEN_SYMBOLS
 
140
libcurl_nss_la_CFLAGS_EXTRA += $(CFLAG_CURL_SYMBOL_HIDING)
 
141
endif
 
142
 
 
143
libcurl_nss_la_CPPFLAGS = $(AM_CPPFLAGS) $(libcurl_nss_la_CPPFLAGS_EXTRA)
 
144
libcurl_nss_la_LDFLAGS = $(AM_LDFLAGS) $(libcurl_nss_la_LDFLAGS_EXTRA) $(LIBCURL_LIBS)
 
145
libcurl_nss_la_CFLAGS = $(AM_CFLAGS) $(libcurl_nss_la_CFLAGS_EXTRA)
 
146
 
 
147
libcurlu_la_CPPFLAGS = $(AM_CPPFLAGS) -DCURL_STATICLIB -DUNITTESTS
 
148
libcurlu_la_LDFLAGS = $(AM_LDFLAGS) -static $(LIBCURL_LIBS)
157
149
libcurlu_la_CFLAGS = $(AM_CFLAGS)
158
150
 
159
151
# Makefile.inc provides the CSOURCES and HHEADERS defines
162
154
libcurl_nss_la_SOURCES = $(CSOURCES) $(HHEADERS)
163
155
libcurlu_la_SOURCES = $(CSOURCES) $(HHEADERS)
164
156
 
165
 
WIN32SOURCES = $(CSOURCES)
166
 
WIN32HEADERS = $(HHEADERS) config-win32.h
167
 
 
168
 
DSPOUT = | awk '{printf("%s\r\n", $$0)}' >> $(DSP)
169
 
VCPROJOUT = | awk '{printf("%s\r\n", $$0)}' >> $(VCPROJ)
170
 
 
171
 
$(DSP): msvcproj.head msvcproj.foot Makefile.am
172
 
        echo "creating $(DSP)"
173
 
        @(cp $(srcdir)/msvcproj.head $(DSP); \
174
 
        echo "# Begin Group \"Source Files\"" $(DSPOUT); \
175
 
        echo "" $(DSPOUT); \
176
 
        echo "# PROP Default_Filter \"\"" $(DSPOUT); \
177
 
        win32_srcs='$(WIN32SOURCES)'; \
178
 
        sorted_srcs=`for file in $$win32_srcs; do echo $$file; done | sort`; \
179
 
        for file in $$sorted_srcs; do \
180
 
        echo "# Begin Source File" $(DSPOUT); \
181
 
        echo "" $(DSPOUT); \
182
 
        echo "SOURCE=.\\"$$file $(DSPOUT); \
183
 
        echo "# End Source File" $(DSPOUT); \
184
 
        done; \
185
 
        echo "# End Group" $(DSPOUT); \
186
 
        echo "# Begin Group \"Header Files\"" $(DSPOUT); \
187
 
        echo "" $(DSPOUT); \
188
 
        echo "# PROP Default_Filter \"\"" $(DSPOUT); \
189
 
        win32_hdrs='$(WIN32HEADERS)'; \
190
 
        sorted_hdrs=`for file in $$win32_hdrs; do echo $$file; done | sort`; \
191
 
        for file in $$sorted_hdrs; do \
192
 
        echo "# Begin Source File" $(DSPOUT); \
193
 
        echo "" $(DSPOUT); \
194
 
        echo "SOURCE=.\\"$$file $(DSPOUT); \
195
 
        echo "# End Source File" $(DSPOUT); \
196
 
        done; \
197
 
        echo "# End Group" $(DSPOUT); \
198
 
        cat $(srcdir)/msvcproj.foot $(DSPOUT) )
199
 
 
200
 
$(VCPROJ): vc8proj.head vc8proj.foot Makefile.am
201
 
        echo "creating $(VCPROJ)"
202
 
        @(cp $(srcdir)/vc8proj.head $(VCPROJ); \
203
 
        win32_srcs='$(WIN32SOURCES)'; \
204
 
        sorted_srcs=`for file in $$win32_srcs; do echo $$file; done | sort`; \
205
 
        for file in $$sorted_srcs; do \
206
 
        echo "<File RelativePath=\""$$file"\"></File>" $(VCPROJOUT); \
207
 
        done; \
208
 
        echo "</Filter><Filter  Name=\"Header Files\">" $(VCPROJOUT); \
209
 
        win32_hdrs='$(WIN32HEADERS)'; \
210
 
        sorted_hdrs=`for file in $$win32_hdrs; do echo $$file; done | sort`; \
211
 
        for file in $$sorted_hdrs; do \
212
 
        echo "<File RelativePath=\""$$file"\"></File>" $(VCPROJOUT); \
213
 
        done; \
214
 
        cat $(srcdir)/vc8proj.foot $(VCPROJOUT) )
215
 
 
216
 
 
217
157
checksrc:
218
158
        @@PERL@ $(top_srcdir)/lib/checksrc.pl -D$(top_srcdir)/lib $(CSOURCES) $(HHEADERS)
219
159