Makefile.am 4.1 KB

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