Makefile.am 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. #***************************************************************************
  2. # _ _ ____ _
  3. # Project ___| | | | _ \| |
  4. # / __| | | | |_) | |
  5. # | (__| |_| | _ <| |___
  6. # \___|\___/|_| \_\_____|
  7. #
  8. # Copyright (C) 1998 - 2010, 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 = vc6libcurl.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.curl_off_t README.cmake README.pingpong
  29. CMAKE_DIST = CMakeLists.txt curl_config.h.cmake
  30. EXTRA_DIST = Makefile.b32 Makefile.m32 Makefile.vc6 Makefile.riscos $(DSP) \
  31. vc6libcurl.dsw config-win32.h config-win32ce.h config-riscos.h \
  32. config-mac.h curl_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) config-vxworks.h Makefile.vxworks
  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/curl for generated curlbuild.h included from curl.h
  47. # $(top_builddir)/include for generated curlbuild.h included from lib/setup.h
  48. # $(top_srcdir)/include is for libcurl's external include files
  49. # $(top_builddir)/lib is for libcurl's generated lib/curl_config.h file
  50. # $(top_srcdir)/lib is for libcurl's lib/setup.h and other "private" files
  51. # $(top_builddir)/ares is for in-tree c-ares's generated ares_build.h file
  52. # $(top_srcdir)/ares is for in-tree c-ares's external include files
  53. if USE_EMBEDDED_ARES
  54. INCLUDES = -I$(top_builddir)/include/curl \
  55. -I$(top_builddir)/include \
  56. -I$(top_srcdir)/include \
  57. -I$(top_builddir)/lib \
  58. -I$(top_srcdir)/lib \
  59. -I$(top_builddir)/ares \
  60. -I$(top_srcdir)/ares
  61. else
  62. INCLUDES = -I$(top_builddir)/include/curl \
  63. -I$(top_builddir)/include \
  64. -I$(top_srcdir)/include \
  65. -I$(top_builddir)/lib \
  66. -I$(top_srcdir)/lib
  67. endif
  68. if SONAME_BUMP
  69. #
  70. # Bumping of SONAME conditionally may seem like a weird thing to do, and yeah
  71. # it is. The problem is that we try to avoid the bump as hard as possible, but
  72. # yet it is still necessary for a few rare situations. The configure script will
  73. # attempt to figure out these situations, and it can be forced to consider this
  74. # to be such a case! See README.curl_off_t for further details.
  75. #
  76. # This conditional soname bump SHOULD be removed at next "proper" bump.
  77. #
  78. VERSIONINFO=-version-info 7:0:2
  79. else
  80. VERSIONINFO=-version-info 6:0:2
  81. endif
  82. # This flag accepts an argument of the form current[:revision[:age]]. So,
  83. # passing -version-info 3:12:1 sets current to 3, revision to 12, and age to
  84. # 1.
  85. #
  86. # Here's the simplified rule guide on how to change -version-info:
  87. # (current version is C:R:A)
  88. #
  89. # 1. if there are only source changes, use C:R+1:A
  90. # 2. if interfaces were added use C+1:0:A+1
  91. # 3. if interfaces were removed, then use C+1:0:0
  92. #
  93. # For the full guide on libcurl ABI rules, see docs/libcurl/ABI
  94. if NO_UNDEFINED
  95. # The -no-undefined flag is CRUCIAL for this to build fine on Cygwin.
  96. UNDEF = -no-undefined
  97. endif
  98. if MIMPURE
  99. # This is for gcc on Solaris (8+ ?) to avoid "relocations remain against
  100. # allocatable but non-writable sections" problems.
  101. MIMPURE = -mimpure-text
  102. endif
  103. libcurl_la_LDFLAGS = $(UNDEF) $(VERSIONINFO) $(MIMPURE) $(LIBCURL_LIBS)
  104. # Makefile.inc provides the CSOURCES and HHEADERS defines
  105. include Makefile.inc
  106. libcurl_la_SOURCES = $(CSOURCES) $(HHEADERS)
  107. WIN32SOURCES = $(CSOURCES)
  108. WIN32HEADERS = $(HHEADERS) config-win32.h
  109. DSPOUT = | awk '{printf("%s\r\n", $$0)}' >> $(DSP)
  110. VCPROJOUT = | awk '{printf("%s\r\n", $$0)}' >> $(VCPROJ)
  111. $(DSP): msvcproj.head msvcproj.foot Makefile.am
  112. echo "creating $(DSP)"
  113. @(cp $(srcdir)/msvcproj.head $(DSP); \
  114. echo "# Begin Group \"Source Files\"" $(DSPOUT); \
  115. echo "" $(DSPOUT); \
  116. echo "# PROP Default_Filter \"\"" $(DSPOUT); \
  117. win32_srcs='$(WIN32SOURCES)'; \
  118. sorted_srcs=`for file in $$win32_srcs; do echo $$file; done | sort`; \
  119. for file in $$sorted_srcs; do \
  120. echo "# Begin Source File" $(DSPOUT); \
  121. echo "" $(DSPOUT); \
  122. echo "SOURCE=.\\"$$file $(DSPOUT); \
  123. echo "# End Source File" $(DSPOUT); \
  124. done; \
  125. echo "# End Group" $(DSPOUT); \
  126. echo "# Begin Group \"Header Files\"" $(DSPOUT); \
  127. echo "" $(DSPOUT); \
  128. echo "# PROP Default_Filter \"\"" $(DSPOUT); \
  129. win32_hdrs='$(WIN32HEADERS)'; \
  130. sorted_hdrs=`for file in $$win32_hdrs; do echo $$file; done | sort`; \
  131. for file in $$sorted_hdrs; do \
  132. echo "# Begin Source File" $(DSPOUT); \
  133. echo "" $(DSPOUT); \
  134. echo "SOURCE=.\\"$$file $(DSPOUT); \
  135. echo "# End Source File" $(DSPOUT); \
  136. done; \
  137. echo "# End Group" $(DSPOUT); \
  138. cat $(srcdir)/msvcproj.foot $(DSPOUT) )
  139. $(VCPROJ): vc8proj.head vc8proj.foot Makefile.am
  140. echo "creating $(VCPROJ)"
  141. @(cp $(srcdir)/vc8proj.head $(VCPROJ); \
  142. win32_srcs='$(WIN32SOURCES)'; \
  143. sorted_srcs=`for file in $$win32_srcs; do echo $$file; done | sort`; \
  144. for file in $$sorted_srcs; do \
  145. echo "<File RelativePath=\""$$file"\"></File>" $(VCPROJOUT); \
  146. done; \
  147. echo "</Filter><Filter Name=\"Header Files\">" $(VCPROJOUT); \
  148. win32_hdrs='$(WIN32HEADERS)'; \
  149. sorted_hdrs=`for file in $$win32_hdrs; do echo $$file; done | sort`; \
  150. for file in $$sorted_hdrs; do \
  151. echo "<File RelativePath=\""$$file"\"></File>" $(VCPROJOUT); \
  152. done; \
  153. cat $(srcdir)/vc8proj.foot $(VCPROJOUT) )