21
21
###########################################################################
22
22
AUTOMAKE_OPTIONS = foreign nostdinc
25
VCPROJ = libcurl.vcproj
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
31
28
CMAKE_DIST = CMakeLists.txt curl_config.h.cmake
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
43
CLEANFILES = $(DSP) $(VCPROJ)
45
39
lib_LTLIBRARIES = libcurl-nss.la
46
LIBCURL_LIBS = @LIBCURL_LIBS@
42
noinst_LTLIBRARIES = libcurlu.la
48
47
# This might hold -Werror
49
48
CFLAGS += @CURL_CFLAG_EXTRAS@
51
CFLAG_CURL_SYMBOL_HIDING = @CFLAG_CURL_SYMBOL_HIDING@
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
82
# Mostly for Windows build targets, when building libcurl library
83
if USE_CPPFLAG_BUILDING_LIBCURL
84
AM_CPPFLAGS += -DBUILDING_LIBCURL
87
# Mostly for Windows build targets, when building static libcurl
88
if USE_CPPFLAG_CURL_STATICLIB
89
AM_CPPFLAGS += -DCURL_STATICLIB
79
# Prevent LIBS from being used for all link targets
80
LIBS = $(BLANK_AT_MAKETIME)
118
108
# For the full guide on libcurl ABI rules, see docs/libcurl/ABI
121
# The -no-undefined flag is crucial to build fine on some platforms
122
UNDEF = -no-undefined
126
# This is for gcc on Solaris (8+ ?) to avoid "relocations remain against
127
# allocatable but non-writable sections" problems.
128
MIMPURE = -mimpure-text
132
VERSIONED_SYMBOLS = -Wl,--version-script=libcurl.vers
135
# Prevent LIBS from being used for all link targets
136
LIBS = $(BLANK_AT_MAKETIME)
138
libcurl_nss_la_LDFLAGS = $(UNDEF) $(VERSIONINFO) $(MIMPURE) $(VERSIONED_SYMBOLS) $(LIBCURL_LIBS)
110
AM_CPPFLAGS += -DBUILDING_LIBCURL
114
libcurl_nss_la_CPPFLAGS_EXTRA =
115
libcurl_nss_la_LDFLAGS_EXTRA =
116
libcurl_nss_la_CFLAGS_EXTRA =
118
if CURL_LT_SHLIB_USE_VERSION_INFO
119
libcurl_nss_la_LDFLAGS_EXTRA += $(VERSIONINFO)
122
if CURL_LT_SHLIB_USE_NO_UNDEFINED
123
libcurl_nss_la_LDFLAGS_EXTRA += -no-undefined
126
if CURL_LT_SHLIB_USE_MIMPURE_TEXT
127
libcurl_nss_la_LDFLAGS_EXTRA += -mimpure-text
130
if CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS
131
libcurl_nss_la_LDFLAGS_EXTRA += -Wl,--version-script=libcurl.vers
134
if USE_CPPFLAG_CURL_STATICLIB
135
libcurl_nss_la_CPPFLAGS_EXTRA += -DCURL_STATICLIB
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)
144
libcurl_nss_la_CPPFLAGS = $(AM_CPPFLAGS)
145
libcurl_nss_la_CFLAGS = $(AM_CFLAGS)
148
# unit testing static library built only along with unit tests
150
noinst_LTLIBRARIES = libcurlu.la
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)
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)
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)
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)
165
WIN32SOURCES = $(CSOURCES)
166
WIN32HEADERS = $(HHEADERS) config-win32.h
168
DSPOUT = | awk '{printf("%s\r\n", $$0)}' >> $(DSP)
169
VCPROJOUT = | awk '{printf("%s\r\n", $$0)}' >> $(VCPROJ)
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); \
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); \
182
echo "SOURCE=.\\"$$file $(DSPOUT); \
183
echo "# End Source File" $(DSPOUT); \
185
echo "# End Group" $(DSPOUT); \
186
echo "# Begin Group \"Header Files\"" $(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); \
194
echo "SOURCE=.\\"$$file $(DSPOUT); \
195
echo "# End Source File" $(DSPOUT); \
197
echo "# End Group" $(DSPOUT); \
198
cat $(srcdir)/msvcproj.foot $(DSPOUT) )
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); \
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); \
214
cat $(srcdir)/vc8proj.foot $(VCPROJOUT) )
218
158
@@PERL@ $(top_srcdir)/lib/checksrc.pl -D$(top_srcdir)/lib $(CSOURCES) $(HHEADERS)