Makefile.dist 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  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. VC=vc6
  24. all:
  25. ./configure
  26. make
  27. ssl:
  28. ./configure --with-ssl
  29. make
  30. borland:
  31. cd lib
  32. make -f Makefile.b32
  33. cd ..\src
  34. make -f Makefile.b32
  35. borland-ssl:
  36. cd lib
  37. make -f Makefile.b32 WITH_SSL=1
  38. cd ..\src
  39. make -f Makefile.b32 WITH_SSL=1
  40. borland-ssl-zlib:
  41. cd lib
  42. make -f Makefile.b32 WITH_SSL=1 WITH_ZLIB=1
  43. cd ..\src
  44. make -f Makefile.b32 WITH_SSL=1 WITH_ZLIB=1
  45. borland-clean:
  46. cd lib
  47. make -f Makefile.b32 clean
  48. cd ..\src
  49. make -f Makefile.b32 clean
  50. watcom:
  51. cd lib
  52. wmake -f Makefile.Watcom
  53. cd ..\src
  54. wmake -f Makefile.Watcom
  55. watcom-clean:
  56. cd lib
  57. wmake -f Makefile.Watcom clean
  58. cd ..\src
  59. wmake -f Makefile.Watcom clean
  60. mingw32:
  61. $(MAKE) -C lib -f Makefile.m32
  62. $(MAKE) -C src -f Makefile.m32
  63. mingw32-zlib:
  64. $(MAKE) -C lib -f Makefile.m32 ZLIB=1
  65. $(MAKE) -C src -f Makefile.m32 ZLIB=1
  66. mingw32-ssl-zlib:
  67. $(MAKE) -C lib -f Makefile.m32 SSL=1 ZLIB=1
  68. $(MAKE) -C src -f Makefile.m32 SSL=1 ZLIB=1
  69. mingw32-ssh2-ssl-zlib:
  70. $(MAKE) -C lib -f Makefile.m32 SSH2=1 SSL=1 ZLIB=1
  71. $(MAKE) -C src -f Makefile.m32 SSH2=1 SSL=1 ZLIB=1
  72. mingw32-ssh2-ssl-sspi-zlib:
  73. $(MAKE) -C lib -f Makefile.m32 SSH2=1 SSL=1 SSPI=1 ZLIB=1
  74. $(MAKE) -C src -f Makefile.m32 SSH2=1 SSL=1 SSPI=1 ZLIB=1
  75. mingw32-clean:
  76. $(MAKE) -C lib -f Makefile.m32 clean
  77. $(MAKE) -C src -f Makefile.m32 clean
  78. vc-clean:
  79. cd lib
  80. nmake -f Makefile.$(VC) clean
  81. cd ..\src
  82. nmake -f Makefile.$(VC) clean
  83. vc-all:
  84. cd lib
  85. nmake -f Makefile.$(VC) cfg=release
  86. nmake -f Makefile.$(VC) cfg=release-ssl
  87. nmake -f Makefile.$(VC) cfg=release-zlib
  88. nmake -f Makefile.$(VC) cfg=release-ssl-zlib
  89. nmake -f Makefile.$(VC) cfg=release-ssl-dll
  90. nmake -f Makefile.$(VC) cfg=release-zlib-dll
  91. nmake -f Makefile.$(VC) cfg=release-ssl-dll-zlib-dll
  92. nmake -f Makefile.$(VC) cfg=release-dll
  93. nmake -f Makefile.$(VC) cfg=release-dll-ssl-dll
  94. nmake -f Makefile.$(VC) cfg=release-dll-zlib-dll
  95. nmake -f Makefile.$(VC) cfg=release-dll-ssl-dll-zlib-dll
  96. nmake -f Makefile.$(VC) cfg=debug
  97. nmake -f Makefile.$(VC) cfg=debug-ssl
  98. nmake -f Makefile.$(VC) cfg=debug-zlib
  99. nmake -f Makefile.$(VC) cfg=debug-ssl-zlib
  100. nmake -f Makefile.$(VC) cfg=debug-ssl-dll
  101. nmake -f Makefile.$(VC) cfg=debug-zlib-dll
  102. nmake -f Makefile.$(VC) cfg=debug-ssl-dll-zlib-dll
  103. nmake -f Makefile.$(VC) cfg=debug-dll
  104. nmake -f Makefile.$(VC) cfg=debug-dll-ssl-dll
  105. nmake -f Makefile.$(VC) cfg=debug-dll-zlib-dll
  106. nmake -f Makefile.$(VC) cfg=debug-dll-ssl-dll-zlib-dll
  107. vc:
  108. cd lib
  109. nmake /f Makefile.$(VC) cfg=release
  110. cd ..\src
  111. nmake /f Makefile.$(VC)
  112. vc-x64:
  113. cd lib
  114. MACHINE=x64 nmake /f Makefile.$(VC) cfg=release
  115. cd ..\src
  116. MACHINE=x64 nmake /f Makefile.$(VC)
  117. vc-zlib:
  118. cd lib
  119. nmake /f Makefile.$(VC) cfg=release-zlib
  120. cd ..\src
  121. nmake /f Makefile.$(VC) cfg=release-zlib
  122. vc-ssl:
  123. cd lib
  124. nmake /f Makefile.$(VC) cfg=release-ssl
  125. cd ..\src
  126. nmake /f Makefile.$(VC) cfg=release-ssl
  127. vc-ssl-zlib:
  128. cd lib
  129. nmake /f Makefile.$(VC) cfg=release-ssl-zlib
  130. cd ..\src
  131. nmake /f Makefile.$(VC) cfg=release-ssl-zlib
  132. vc-ssl-dll:
  133. cd lib
  134. nmake /f Makefile.$(VC) cfg=release-ssl-dll
  135. cd ..\src
  136. nmake /f Makefile.$(VC) cfg=release-ssl-dll
  137. vc-dll-ssl-dll:
  138. cd lib
  139. nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll
  140. cd ..\src
  141. nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll
  142. vc-dll:
  143. cd lib
  144. nmake /f Makefile.$(VC) cfg=release-dll
  145. cd ..\src
  146. nmake /f Makefile.$(VC) cfg=release-dll
  147. vc-dll-zlib-dll:
  148. cd lib
  149. nmake /f Makefile.$(VC) cfg=release-dll-zlib-dll
  150. cd ..\src
  151. nmake /f Makefile.$(VC) cfg=release-dll-zlib-dll
  152. vc-dll-ssl-dll-zlib-dll:
  153. cd lib
  154. nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll-zlib-dll
  155. cd ..\src
  156. nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll-zlib-dll
  157. vc-ssl-dll-zlib-dll:
  158. cd lib
  159. nmake /f Makefile.$(VC) cfg=release-ssl-dll-zlib-dll
  160. cd ..\src
  161. nmake /f Makefile.$(VC) cfg=release-ssl-dll-zlib-dll
  162. vc-zlib-dll:
  163. cd lib
  164. nmake /f Makefile.$(VC) cfg=release-zlib-dll
  165. cd ..\src
  166. nmake /f Makefile.$(VC) cfg=release-zlib-dll
  167. vc-sspi:
  168. cd lib
  169. nmake /f Makefile.$(VC) cfg=release WINDOWS_SSPI=1
  170. cd ..\src
  171. nmake /f Makefile.$(VC) cfg=release WINDOWS_SSPI=1
  172. djgpp:
  173. $(MAKE) -C lib -f Makefile.dj
  174. $(MAKE) -C src -f Makefile.dj
  175. cygwin:
  176. ./configure
  177. make
  178. cygwin-ssl:
  179. ./configure --with-ssl
  180. make
  181. amiga:
  182. cd ./lib && make -f makefile.amiga
  183. cd ./src && make -f makefile.amiga
  184. netware:
  185. $(MAKE) -C lib -f Makefile.netware
  186. $(MAKE) -C src -f Makefile.netware
  187. netware-ares:
  188. $(MAKE) -C lib -f Makefile.netware WITH_ARES=1
  189. $(MAKE) -C src -f Makefile.netware WITH_ARES=1
  190. netware-ssl:
  191. $(MAKE) -C lib -f Makefile.netware WITH_SSL=1
  192. $(MAKE) -C src -f Makefile.netware WITH_SSL=1
  193. netware-ssl-zlib:
  194. $(MAKE) -C lib -f Makefile.netware WITH_SSL=1 WITH_ZLIB=1
  195. $(MAKE) -C src -f Makefile.netware WITH_SSL=1 WITH_ZLIB=1
  196. netware-ssh2-ssl-zlib:
  197. $(MAKE) -C lib -f Makefile.netware WITH_SSH2=1 WITH_SSL=1 WITH_ZLIB=1
  198. $(MAKE) -C src -f Makefile.netware WITH_SSH2=1 WITH_SSL=1 WITH_ZLIB=1
  199. netware-zlib:
  200. $(MAKE) -C lib -f Makefile.netware WITH_ZLIB=1
  201. $(MAKE) -C src -f Makefile.netware WITH_ZLIB=1
  202. netware-clean:
  203. $(MAKE) -C lib -f Makefile.netware clean
  204. $(MAKE) -C src -f Makefile.netware clean
  205. netware-install:
  206. $(MAKE) -C lib -f Makefile.netware install
  207. $(MAKE) -C src -f Makefile.netware install
  208. unix: all
  209. unix-ssl: ssl
  210. linux: all
  211. linux-ssl: ssl
  212. vc8:
  213. @echo "generate VC8 makefiles"
  214. @sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/wsock32.lib/wsock32.lib bufferoverflowu.lib/g" -e "s/VC6/VC8/g" lib/Makefile.vc6 > lib/Makefile.vc8
  215. @sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/wsock32.lib/wsock32.lib bufferoverflowu.lib/g" -e "s/VC6/VC8/g" src/Makefile.vc6 > src/Makefile.vc8
  216. # VC9 makefiles are for use with VS2008
  217. vc9:
  218. @echo "generate VC9 makefiles"
  219. @sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/wsock32.lib/ws2_32.lib/g" -e "s/vc6/vc9/g" -e "s/VC6/VC9/g" lib/Makefile.vc6 > lib/Makefile.vc9
  220. @sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/wsock32.lib/ws2_32.lib/g" -e "s/vc6/vc9/g" -e "s/VC6/VC9/g" src/Makefile.vc6 > src/Makefile.vc9
  221. ca-bundle: lib/mk-ca-bundle.pl
  222. @echo "generate a fresh ca-bundle.crt"
  223. @perl $< -b -l -u lib/ca-bundle.crt
  224. ca-firefox: lib/firefox-db2pem.sh
  225. @echo "generate a fresh ca-bundle.crt"
  226. ./lib/firefox-db2pem.sh lib/ca-bundle.crt