I removed leading 'curl' path on the 'curlbuild.h' include statement in
[platform/upstream/curl.git] / lib / Makefile.am
1 #***************************************************************************
2 #                                  _   _ ____  _
3 #  Project                     ___| | | |  _ \| |
4 #                             / __| | | | |_) | |
5 #                            | (__| |_| |  _ <| |___
6 #                             \___|\___/|_| \_\_____|
7 #
8 # Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
9 #
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.
13 #
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.
17 #
18 # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 # KIND, either express or implied.
20 #
21 # $Id$
22 ###########################################################################
23 AUTOMAKE_OPTIONS = foreign nostdinc
24
25 DSP = vc6libcurl.dsp
26 VCPROJ = libcurl.vcproj
27
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
31
32 CMAKE_DIST = CMakeLists.txt curl_config.h.cmake
33
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
42
43 CLEANFILES = $(DSP) $(VCPROJ)
44
45 lib_LTLIBRARIES = libcurl.la
46 LIBCURL_LIBS = @LIBCURL_LIBS@
47
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.
52 #
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
60
61 if USE_EMBEDDED_ARES
62 INCLUDES = -I$(top_builddir)/include/curl \
63            -I$(top_builddir)/include      \
64            -I$(top_srcdir)/include        \
65            -I$(top_builddir)/lib          \
66            -I$(top_srcdir)/lib            \
67            -I$(top_builddir)/ares         \
68            -I$(top_srcdir)/ares
69 else
70 INCLUDES = -I$(top_builddir)/include/curl \
71            -I$(top_builddir)/include      \
72            -I$(top_srcdir)/include        \
73            -I$(top_builddir)/lib          \
74            -I$(top_srcdir)/lib
75 endif
76
77 if SONAME_BUMP
78 #
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.
84 #
85 # This conditional soname bump SHOULD be removed at next "proper" bump.
86 #
87 VERSIONINFO=-version-info 6:1:1
88 else
89 VERSIONINFO=-version-info 5:1:1
90 endif
91
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
94 # 1.
95 #
96 # Here's the simplified rule guide on how to change -version-info:
97 # (current version is C:R:A)
98
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
102 #
103 # For the full guide on libcurl ABI rules, see docs/libcurl/ABI
104
105 if NO_UNDEFINED
106 # The -no-undefined flag is CRUCIAL for this to build fine on Cygwin.
107 UNDEF = -no-undefined
108 endif
109
110 if MIMPURE
111 # This is for gcc on Solaris (8+ ?) to avoid "relocations remain against
112 # allocatable but non-writable sections" problems.
113 MIMPURE = -mimpure-text
114 endif
115
116 libcurl_la_LDFLAGS = $(UNDEF) $(VERSIONINFO) $(MIMPURE) $(LIBCURL_LIBS)
117
118 # Makefile.inc provides the CSOURCES and HHEADERS defines
119 include Makefile.inc
120
121 libcurl_la_SOURCES = $(CSOURCES) $(HHEADERS)
122
123 WIN32SOURCES = $(CSOURCES)
124 WIN32HEADERS = $(HHEADERS) config-win32.h
125
126 DSPOUT = | awk '{printf("%s\r\n", $$0)}' >> $(DSP)
127 VCPROJOUT = | awk '{printf("%s\r\n", $$0)}' >> $(VCPROJ)
128
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); \
133         echo "" $(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); \
139         echo "" $(DSPOUT); \
140         echo "SOURCE=.\\"$$file $(DSPOUT); \
141         echo "# End Source File" $(DSPOUT); \
142         done; \
143         echo "# End Group" $(DSPOUT); \
144         echo "# Begin Group \"Header Files\"" $(DSPOUT); \
145         echo "" $(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); \
151         echo "" $(DSPOUT); \
152         echo "SOURCE=.\\"$$file $(DSPOUT); \
153         echo "# End Source File" $(DSPOUT); \
154         done; \
155         echo "# End Group" $(DSPOUT); \
156         cat $(srcdir)/msvcproj.foot $(DSPOUT) )
157
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); \
165         done; \
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); \
171         done; \
172         cat $(srcdir)/vc8proj.foot $(VCPROJOUT) )