1 #***************************************************************************
3 # Project ___| | | | _ \| |
5 # | (__| |_| | _ <| |___
6 # \___|\___/|_| \_\_____|
8 # Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
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.
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.
18 # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 # KIND, either express or implied.
22 ###########################################################################
23 AUTOMAKE_OPTIONS = foreign nostdinc
26 VCPROJ = libcurl.vcproj
28 DOCS = README.encoding README.memoryleak README.ares README.curlx \
29 README.hostip README.multi_socket README.httpauth README.pipelining \
30 README.curl_off_t README.cmake
32 CMAKE_DIST = CMakeLists.txt curl_config.h.cmake
34 EXTRA_DIST = Makefile.b32 Makefile.m32 Makefile.vc6 Makefile.riscos $(DSP) \
35 vc6libcurl.dsw config-win32.h config-win32ce.h config-riscos.h \
36 config-mac.h curl_config.h.in makefile.dj config.dos libcurl.plist \
37 libcurl.rc config-amigaos.h amigaos.c amigaos.h makefile.amiga \
38 Makefile.netware nwlib.c nwos.c libcurl.imp msvcproj.head msvcproj.foot \
39 config-win32ce.h config-os400.h setup-os400.h config-symbian.h \
40 Makefile.Watcom config-tpf.h $(DOCS) $(VCPROJ) mk-ca-bundle.pl \
41 firefox-db2pem.sh $(CMAKE_DIST) config-vxworks.h Makefile.vxworks
43 CLEANFILES = $(DSP) $(VCPROJ)
45 lib_LTLIBRARIES = libcurl.la
46 LIBCURL_LIBS = @LIBCURL_LIBS@
48 # Specify our include paths here, and do it relative to $(top_srcdir) and
49 # $(top_builddir), to ensure that these paths which belong to the library
50 # being currently built and tested are searched before the library which
51 # might possibly already be installed in the system.
53 # $(top_builddir)/include/curl for generated curlbuild.h included from curl.h
54 # $(top_builddir)/include for generated curlbuild.h included from lib/setup.h
55 # $(top_srcdir)/include is for libcurl's external include files
56 # $(top_builddir)/lib is for libcurl's generated lib/curl_config.h file
57 # $(top_srcdir)/lib is for libcurl's lib/setup.h and other "private" files
58 # $(top_builddir)/ares is for in-tree c-ares's generated ares_build.h file
59 # $(top_srcdir)/ares is for in-tree c-ares's external include files
62 INCLUDES = -I$(top_builddir)/include/curl \
63 -I$(top_builddir)/include \
64 -I$(top_srcdir)/include \
65 -I$(top_builddir)/lib \
67 -I$(top_builddir)/ares \
70 INCLUDES = -I$(top_builddir)/include/curl \
71 -I$(top_builddir)/include \
72 -I$(top_srcdir)/include \
73 -I$(top_builddir)/lib \
79 # Bumping of SONAME conditionally may seem like a weird thing to do, and yeah
80 # it is. The problem is that we try to avoid the bump as hard as possible, but
81 # yet it is still necessary for a few rare situations. The configure script will
82 # attempt to figure out these situations, and it can be forced to consider this
83 # to be such a case! See README.curl_off_t for further details.
85 # This conditional soname bump SHOULD be removed at next "proper" bump.
87 VERSIONINFO=-version-info 6:1:1
89 VERSIONINFO=-version-info 5:1:1
92 # This flag accepts an argument of the form current[:revision[:age]]. So,
93 # passing -version-info 3:12:1 sets current to 3, revision to 12, and age to
96 # Here's the simplified rule guide on how to change -version-info:
97 # (current version is C:R:A)
99 # 1. if there are only source changes, use C:R+1:A
100 # 2. if interfaces were added use C+1:0:A+1
101 # 3. if interfaces were removed, then use C+1:0:0
103 # For the full guide on libcurl ABI rules, see docs/libcurl/ABI
106 # The -no-undefined flag is CRUCIAL for this to build fine on Cygwin.
107 UNDEF = -no-undefined
111 # This is for gcc on Solaris (8+ ?) to avoid "relocations remain against
112 # allocatable but non-writable sections" problems.
113 MIMPURE = -mimpure-text
116 libcurl_la_LDFLAGS = $(UNDEF) $(VERSIONINFO) $(MIMPURE) $(LIBCURL_LIBS)
118 # Makefile.inc provides the CSOURCES and HHEADERS defines
121 libcurl_la_SOURCES = $(CSOURCES) $(HHEADERS)
123 WIN32SOURCES = $(CSOURCES)
124 WIN32HEADERS = $(HHEADERS) config-win32.h
126 DSPOUT = | awk '{printf("%s\r\n", $$0)}' >> $(DSP)
127 VCPROJOUT = | awk '{printf("%s\r\n", $$0)}' >> $(VCPROJ)
129 $(DSP): msvcproj.head msvcproj.foot Makefile.am
130 echo "creating $(DSP)"
131 @(cp $(srcdir)/msvcproj.head $(DSP); \
132 echo "# Begin Group \"Source Files\"" $(DSPOUT); \
134 echo "# PROP Default_Filter \"\"" $(DSPOUT); \
135 win32_srcs='$(WIN32SOURCES)'; \
136 sorted_srcs=`for file in $$win32_srcs; do echo $$file; done | sort`; \
137 for file in $$sorted_srcs; do \
138 echo "# Begin Source File" $(DSPOUT); \
140 echo "SOURCE=.\\"$$file $(DSPOUT); \
141 echo "# End Source File" $(DSPOUT); \
143 echo "# End Group" $(DSPOUT); \
144 echo "# Begin Group \"Header Files\"" $(DSPOUT); \
146 echo "# PROP Default_Filter \"\"" $(DSPOUT); \
147 win32_hdrs='$(WIN32HEADERS)'; \
148 sorted_hdrs=`for file in $$win32_hdrs; do echo $$file; done | sort`; \
149 for file in $$sorted_hdrs; do \
150 echo "# Begin Source File" $(DSPOUT); \
152 echo "SOURCE=.\\"$$file $(DSPOUT); \
153 echo "# End Source File" $(DSPOUT); \
155 echo "# End Group" $(DSPOUT); \
156 cat $(srcdir)/msvcproj.foot $(DSPOUT) )
158 $(VCPROJ): vc8proj.head vc8proj.foot Makefile.am
159 echo "creating $(VCPROJ)"
160 @(cp $(srcdir)/vc8proj.head $(VCPROJ); \
161 win32_srcs='$(WIN32SOURCES)'; \
162 sorted_srcs=`for file in $$win32_srcs; do echo $$file; done | sort`; \
163 for file in $$sorted_srcs; do \
164 echo "<File RelativePath=\""$$file"\"></File>" $(VCPROJOUT); \
166 echo "</Filter><Filter Name=\"Header Files\">" $(VCPROJOUT); \
167 win32_hdrs='$(WIN32HEADERS)'; \
168 sorted_hdrs=`for file in $$win32_hdrs; do echo $$file; done | sort`; \
169 for file in $$sorted_hdrs; do \
170 echo "<File RelativePath=\""$$file"\"></File>" $(VCPROJOUT); \
172 cat $(srcdir)/vc8proj.foot $(VCPROJOUT) )