Makefile.am 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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. DSP = libcurl.dsp
  25. VCPROJ = libcurl.vcproj
  26. DOCS = README.encoding README.memoryleak README.ares README.curlx \
  27. README.hostip README.multi_socket README.httpauth README.pipelining \
  28. README.NSS README.curl_off_t
  29. CMAKE_DIST = CMakeLists.txt config.h.cmake
  30. EXTRA_DIST = Makefile.b32 Makefile.m32 Makefile.vc6 Makefile.riscos $(DSP) \
  31. libcurl.dsw config-win32.h config-win32ce.h config-riscos.h config-mac.h \
  32. config.h.in makefile.dj config.dos libcurl.plist \
  33. libcurl.rc config-amigaos.h amigaos.c amigaos.h makefile.amiga \
  34. Makefile.netware nwlib.c nwos.c libcurl.imp msvcproj.head msvcproj.foot \
  35. config-win32ce.h config-os400.h setup-os400.h config-symbian.h \
  36. Makefile.Watcom config-tpf.h $(DOCS) $(VCPROJ) mk-ca-bundle.pl \
  37. firefox-db2pem.sh $(CMAKE_DIST)
  38. CLEANFILES = $(DSP) $(VCPROJ)
  39. lib_LTLIBRARIES = libcurl.la
  40. LIBCURL_LIBS = @LIBCURL_LIBS@
  41. # Specify our include paths here, and do it relative to $(top_srcdir) and
  42. # $(top_builddir), to ensure that these paths which belong to the library
  43. # being currently built and tested are searched before the library which
  44. # might possibly already be installed in the system.
  45. #
  46. # $(top_builddir)/include is for libcurl's generated curl/curlbuild.h file
  47. # $(top_srcdir)/include is for libcurl's external include files
  48. # $(top_builddir)/lib is for libcurl's generated lib/config.h file
  49. # $(top_srcdir)/lib is for libcurl's lib/setup.h and other "private" files
  50. # $(top_builddir)/ares is for in-tree c-ares's generated ares_build.h file
  51. # $(top_srcdir)/ares is for in-tree c-ares's external include files
  52. INCLUDES = -I$(top_builddir)/include \
  53. -I$(top_srcdir)/include \
  54. -I$(top_builddir)/lib \
  55. -I$(top_srcdir)/lib \
  56. -I$(top_builddir)/ares \
  57. -I$(top_srcdir)/ares
  58. if SONAME_BUMP
  59. #
  60. # Bumping of SONAME conditionally may seem like a weird thing to do, and yeah
  61. # it is. The problem is that we try to avoid the bump as hard as possible, but
  62. # yet it is still necessary for a few rare situations. The configure script will
  63. # attempt to figure out these situations, and it can be forced to consider this
  64. # to be such a case! See README.curl_off_t for further details.
  65. #
  66. # This conditional soname bump SHOULD be removed at next "proper" bump.
  67. #
  68. VERSIONINFO=-version-info 6:1:1
  69. else
  70. VERSIONINFO=-version-info 5:1:1
  71. endif
  72. # This flag accepts an argument of the form current[:revision[:age]]. So,
  73. # passing -version-info 3:12:1 sets current to 3, revision to 12, and age to
  74. # 1.
  75. #
  76. # Here's the simplified rule guide on how to change -version-info:
  77. # (current version is C:R:A)
  78. #
  79. # 1. if there are only source changes, use C:R+1:A
  80. # 2. if interfaces were added use C+1:0:A+1
  81. # 3. if interfaces were removed, then use C+1:0:0
  82. #
  83. # For the full guide on libcurl ABI rules, see docs/libcurl/ABI
  84. if NO_UNDEFINED
  85. # The -no-undefined flag is CRUCIAL for this to build fine on Cygwin.
  86. UNDEF = -no-undefined
  87. endif
  88. if MIMPURE
  89. # This is for gcc on Solaris (8+ ?) to avoid "relocations remain against
  90. # allocatable but non-writable sections" problems.
  91. MIMPURE = -mimpure-text
  92. endif
  93. libcurl_la_LDFLAGS = $(UNDEF) $(VERSIONINFO) $(MIMPURE) $(LIBCURL_LIBS)
  94. # Makefile.inc provides the CSOURCES and HHEADERS defines
  95. include Makefile.inc
  96. libcurl_la_SOURCES = $(CSOURCES) $(HHEADERS)
  97. WIN32SOURCES = $(CSOURCES)
  98. WIN32HEADERS = $(HHEADERS) config-win32.h
  99. DSPOUT = | awk '{printf("%s\r\n", $$0)}' >> $(DSP)
  100. VCPROJOUT = | awk '{printf("%s\r\n", $$0)}' >> $(VCPROJ)
  101. $(DSP): msvcproj.head msvcproj.foot Makefile.am
  102. echo "creating $(DSP)"
  103. @(cp $(srcdir)/msvcproj.head $(DSP); \
  104. echo "# Begin Group \"Source Files\"" $(DSPOUT); \
  105. echo "" $(DSPOUT); \
  106. echo "# PROP Default_Filter \"\"" $(DSPOUT); \
  107. win32_srcs='$(WIN32SOURCES)'; \
  108. sorted_srcs=`for file in $$win32_srcs; do echo $$file; done | sort`; \
  109. for file in $$sorted_srcs; do \
  110. echo "# Begin Source File" $(DSPOUT); \
  111. echo "" $(DSPOUT); \
  112. echo "SOURCE=.\\"$$file $(DSPOUT); \
  113. echo "# End Source File" $(DSPOUT); \
  114. done; \
  115. echo "# End Group" $(DSPOUT); \
  116. echo "# Begin Group \"Header Files\"" $(DSPOUT); \
  117. echo "" $(DSPOUT); \
  118. echo "# PROP Default_Filter \"\"" $(DSPOUT); \
  119. win32_hdrs='$(WIN32HEADERS)'; \
  120. sorted_hdrs=`for file in $$win32_hdrs; do echo $$file; done | sort`; \
  121. for file in $$sorted_hdrs; do \
  122. echo "# Begin Source File" $(DSPOUT); \
  123. echo "" $(DSPOUT); \
  124. echo "SOURCE=.\\"$$file $(DSPOUT); \
  125. echo "# End Source File" $(DSPOUT); \
  126. done; \
  127. echo "# End Group" $(DSPOUT); \
  128. cat $(srcdir)/msvcproj.foot $(DSPOUT) )
  129. $(VCPROJ): vc8proj.head vc8proj.foot Makefile.am
  130. echo "creating $(VCPROJ)"
  131. @(cp $(srcdir)/vc8proj.head $(VCPROJ); \
  132. win32_srcs='$(WIN32SOURCES)'; \
  133. sorted_srcs=`for file in $$win32_srcs; do echo $$file; done | sort`; \
  134. for file in $$sorted_srcs; do \
  135. echo "<File RelativePath=\""$$file"\"></File>" $(VCPROJOUT); \
  136. done; \
  137. echo "</Filter><Filter Name=\"Header Files\">" $(VCPROJOUT); \
  138. win32_hdrs='$(WIN32HEADERS)'; \
  139. sorted_hdrs=`for file in $$win32_hdrs; do echo $$file; done | sort`; \
  140. for file in $$sorted_hdrs; do \
  141. echo "<File RelativePath=\""$$file"\"></File>" $(VCPROJOUT); \
  142. done; \
  143. cat $(srcdir)/vc8proj.foot $(VCPROJOUT) )