Makefile.am 4.2 KB

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