]> icculus.org git repositories - icculus/iodoom3.git/blob - neo/curl/lib/Makefile.am
hello world
[icculus/iodoom3.git] / neo / curl / lib / Makefile.am
1 #
2 # $Id: Makefile.am,v 1.81 2004/03/17 12:48:41 bagder Exp $
3 #
4
5 AUTOMAKE_OPTIONS = foreign nostdinc
6
7 EXTRA_DIST = getdate.y Makefile.b32 Makefile.b32.resp Makefile.m32          \
8        Makefile.vc6 Makefile.riscos libcurl.def curllib.dsp                 \
9        curllib.dsw config-vms.h config-win32.h config-riscos.h config-mac.h \
10        config.h.in ca-bundle.crt README.encoding README.memoryleak          \
11        README.ares makefile.dj config.dj                                    \
12        libcurl.framework.make libcurl.plist libcurl.rc \
13        config-amigaos.h amigaos.c amigaos.h makefile.amiga config-netware.h \
14        Makefile.netware nwlib.c libcurl.imp
15
16 lib_LTLIBRARIES = libcurl.la
17
18 # we use srcdir/include for the static global include files
19 # we use builddir/lib for the generated lib/config.h file to get found
20 # we use srcdir/lib for the lib-private header files
21 INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/lib -I$(top_srcdir)/lib
22
23 VERSION=-version-info 2:2:0
24
25 # This flag accepts an argument of the form current[:revision[:age]]. So,
26 # passing -version-info 3:12:1 sets current to 3, revision to 12, and age to
27 # 1.
28 #
29 # If either revision or age are omitted, they default to 0. Also note that age
30 # must be less than or equal to the current interface number.
31 #
32 # Here are a set of rules to help you update your library version information: 
33 #
34 # 1.Start with version information of 0:0:0 for each libtool library.
35 #
36 # 2.Update the version information only immediately before a public release of
37 # your software. More frequent updates are unnecessary, and only guarantee
38 # that the current interface number gets larger faster.
39 #
40 # 3.If the library source code has changed at all since the last update, then
41 # increment revision (c:r:a becomes c:r+1:a).
42 #
43 # 4.If any interfaces have been added, removed, or changed since the last
44 # update, increment current, and set revision to 0.
45 #
46 # 5.If any interfaces have been added since the last public release, then
47 # increment age.
48 #
49 # 6.If any interfaces have been removed since the last public release, then
50 # set age to 0.
51 #
52
53 if NO_UNDEFINED
54 # The -no-undefined flag is CRUCIAL for this to build fine on Cygwin.
55 UNDEF = -no-undefined
56 endif
57
58 if MIMPURE
59 # This is for gcc on Solaris (8+ ?) to avoid "relocations remain against
60 # allocatable but non-writable sections" problems.
61 MIMPURE = -mimpure-text
62 endif
63
64 libcurl_la_LDFLAGS = $(UNDEF) $(VERSION) $(MIMPURE)
65
66 libcurl_la_SOURCES = arpa_telnet.h file.c netrc.h timeval.c     \
67 base64.c file.h hostip.c progress.c timeval.h base64.h formdata.c       \
68 hostip.h progress.h cookie.c formdata.h http.c sendf.c cookie.h ftp.c   \
69 http.h sendf.h url.c dict.c ftp.h if2ip.c speedcheck.c url.h dict.h     \
70 getdate.c if2ip.h speedcheck.h urldata.h getdate.h ldap.c ssluse.c      \
71 version.c getenv.c ldap.h ssluse.h escape.c mprintf.c telnet.c escape.h \
72 netrc.c telnet.h getinfo.c getinfo.h transfer.c strequal.c      \
73 strequal.h easy.c security.h security.c krb4.c krb4.h memdebug.c        \
74 memdebug.h inet_ntoa_r.h http_chunks.c http_chunks.h strtok.c strtok.h  \
75 connect.c connect.h llist.c llist.h hash.c hash.h multi.c               \
76 content_encoding.c content_encoding.h share.c share.h http_digest.c \
77 md5.c md5.h http_digest.h http_negotiate.c http_negotiate.h \
78 http_ntlm.c http_ntlm.h ca-bundle.h inet_pton.c inet_pton.h \
79 strtoofft.c strtoofft.h
80
81 noinst_HEADERS = setup.h transfer.h
82
83 BUILT_SOURCES = $(srcdir)/getdate.c $(top_builddir)/lib/ca-bundle.h
84
85 # Say $(srcdir), so GNU make does not report an ambiguity with the .y.c rule.
86 $(srcdir)/getdate.c: getdate.y
87         cd $(srcdir) && \
88           $(YACC) $(YFLAGS) getdate.y; \
89           mv -f y.tab.c getdate.c
90
91 $(top_builddir)/lib/ca-bundle.h: Makefile.in Makefile
92         @if test -f $@; then \
93           chmod 0644 $@; \
94         fi
95         echo "/* This file is generated automatically */" > $@
96 if CABUNDLE
97         echo '#define CURL_CA_BUNDLE @CURL_CA_BUNDLE@' >> $@
98 else
99         echo '#undef CURL_CA_BUNDLE /* unknown */' >> $@
100 endif
101
102 install-data-hook:
103         @if test -n "@CURL_CA_BUNDLE@"; then \
104           $(mkinstalldirs) `dirname $(DESTDIR)@CURL_CA_BUNDLE@`; \
105           @INSTALL_DATA@ $(srcdir)/ca-bundle.crt $(DESTDIR)@CURL_CA_BUNDLE@; \
106         fi
107
108 # this hook is mainly for non-unix systems to build even if configure
109 # isn't run
110 dist-hook:
111         chmod 0644 $(distdir)/ca-bundle.h
112         echo "/* ca bundle path set in here*/" > $(distdir)/ca-bundle.h