Updated the copyright year since changes have been this year.
[platform/upstream/curl.git] / lib / Makefile.am
1 #***************************************************************************
2 #                                  _   _ ____  _
3 #  Project                     ___| | | |  _ \| |
4 #                             / __| | | | |_) | |
5 #                            | (__| |_| |  _ <| |___
6 #                             \___|\___/|_| \_\_____|
7 #
8 # Copyright (C) 1998 - 2005, 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 = curllib.dsp
26
27 EXTRA_DIST = Makefile.b32 Makefile.m32 Makefile.vc6 Makefile.riscos $(DSP)    \
28  curllib.dsw config-win32.h config-win32ce.h config-riscos.h     \
29  config-mac.h config.h.in ca-bundle.crt README.encoding README.memoryleak     \
30  README.ares README.curlx makefile.dj config.dj libcurl.framework.make        \
31  libcurl.plist libcurl.rc config-amigaos.h amigaos.c amigaos.h makefile.amiga \
32  Makefile.netware nwlib.c libcurl.imp msvcproj.head msvcproj.foot             \
33  config-win32ce.h README.httpauth Makefile.Watcom README.hostip
34
35 CLEANFILES = $(DSP)
36
37 lib_LTLIBRARIES = libcurl.la
38
39 # we use srcdir/include for the static global include files
40 # we use builddir/lib for the generated lib/config.h file to get found
41 # we use srcdir/lib for the lib-private header files
42 INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/lib -I$(top_srcdir)/lib
43
44 VERSION=-version-info 3:0:0
45
46 # This flag accepts an argument of the form current[:revision[:age]]. So,
47 # passing -version-info 3:12:1 sets current to 3, revision to 12, and age to
48 # 1.
49 #
50 # If either revision or age are omitted, they default to 0. Also note that age
51 # must be less than or equal to the current interface number.
52 #
53 # Here are a set of rules to help you update your library version information:
54 #
55 # 1.Start with version information of 0:0:0 for each libtool library.
56 #
57 # 2.Update the version information only immediately before a public release of
58 # your software. More frequent updates are unnecessary, and only guarantee
59 # that the current interface number gets larger faster.
60 #
61 # 3.If the library source code has changed at all since the last update, then
62 # increment revision (c:r+1:a)
63 #
64 # 4.If any interfaces have been added, removed, or changed since the last
65 # update, increment current, and set revision to 0. (c+1:r=0:a)
66 #
67 # 5.If any interfaces have been added since the last public release, then
68 # increment age. (c:r:a+1)
69 #
70 # 6.If any interfaces have been removed since the last public release, then
71 # set age to 0. (c:r:a=0)
72 #
73
74 if NO_UNDEFINED
75 # The -no-undefined flag is CRUCIAL for this to build fine on Cygwin.
76 UNDEF = -no-undefined
77 endif
78
79 if MIMPURE
80 # This is for gcc on Solaris (8+ ?) to avoid "relocations remain against
81 # allocatable but non-writable sections" problems.
82 MIMPURE = -mimpure-text
83 endif
84
85 libcurl_la_LDFLAGS = $(UNDEF) $(VERSION) $(MIMPURE)
86
87 # Makefile.inc provides the CSOURCES and HHEADERS defines
88 include Makefile.inc
89
90 libcurl_la_SOURCES = $(CSOURCES) $(HHEADERS)
91
92 WIN32SOURCES = $(CSOURCES)
93 WIN32HEADERS = $(HHEADERS) config-win32.h
94
95 BUILT_SOURCES = $(top_builddir)/lib/ca-bundle.h
96
97 $(top_builddir)/lib/ca-bundle.h: Makefile.in Makefile
98         @if test -f $@; then \
99           chmod 0644 $@; \
100         fi
101         echo "/* This file is generated automatically */" > $@
102 if CABUNDLE
103         echo '#define CURL_CA_BUNDLE @CURL_CA_BUNDLE@' >> $@
104 else
105         echo '#undef CURL_CA_BUNDLE /* unknown */' >> $@
106 endif
107
108 install-data-hook:
109         @if test -n "@CURL_CA_BUNDLE@"; then \
110           $(mkinstalldirs) `dirname $(DESTDIR)@CURL_CA_BUNDLE@`; \
111           @INSTALL_DATA@ $(srcdir)/ca-bundle.crt $(DESTDIR)@CURL_CA_BUNDLE@; \
112         fi
113
114 # this hook is mainly for non-unix systems to build even if configure
115 # isn't run
116 dist-hook:
117         chmod 0644 $(distdir)/ca-bundle.h
118         echo "/* ca bundle path set in here*/" > $(distdir)/ca-bundle.h
119
120 DSPOUT = | awk '{printf("%s\r\n", $$0)}' >> $(DSP)
121
122 $(DSP): msvcproj.head msvcproj.foot Makefile.am
123         echo "creating $(DSP)"
124         @(cp msvcproj.head $(DSP); \
125         echo "# Begin Group \"Source Files\"" $(DSPOUT); \
126         for file in $(WIN32SOURCES); do \
127         echo "# Begin Source File" $(DSPOUT); \
128         echo "" $(DSPOUT); \
129         echo "SOURCE=.\\"$$file $(DSPOUT); \
130         echo "# End Source File" $(DSPOUT); \
131         done; \
132         echo "# End Group" $(DSPOUT); \
133         echo "# Begin Group \"Header Files\"" $(DSPOUT); \
134         for file in $(WIN32HEADERS); do \
135         echo "# Begin Source File" $(DSPOUT); \
136         echo "" $(DSPOUT); \
137         echo "SOURCE=.\\"$$file $(DSPOUT); \
138         echo "# End Source File" $(DSPOUT); \
139         done; \
140         echo "# End Group" $(DSPOUT); \
141         cat msvcproj.foot $(DSPOUT) )