Makefile.dist 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  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. nmake /f Makefile.$(VC) MACHINE=x64 cfg=release
  115. cd ..\src
  116. nmake /f Makefile.$(VC) MACHINE=x64 cfg=release
  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-x64-ssl-zlib:
  133. cd lib
  134. nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib
  135. cd ..\src
  136. nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib
  137. vc-ssl-dll:
  138. cd lib
  139. nmake /f Makefile.$(VC) cfg=release-ssl-dll
  140. cd ..\src
  141. nmake /f Makefile.$(VC) cfg=release-ssl-dll
  142. vc-dll-ssl-dll:
  143. cd lib
  144. nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll
  145. cd ..\src
  146. nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll
  147. vc-dll:
  148. cd lib
  149. nmake /f Makefile.$(VC) cfg=release-dll
  150. cd ..\src
  151. nmake /f Makefile.$(VC) cfg=release-dll
  152. vc-dll-zlib-dll:
  153. cd lib
  154. nmake /f Makefile.$(VC) cfg=release-dll-zlib-dll
  155. cd ..\src
  156. nmake /f Makefile.$(VC) cfg=release-dll-zlib-dll
  157. vc-dll-ssl-dll-zlib-dll:
  158. cd lib
  159. nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll-zlib-dll
  160. cd ..\src
  161. nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll-zlib-dll
  162. vc-ssl-dll-zlib-dll:
  163. cd lib
  164. nmake /f Makefile.$(VC) cfg=release-ssl-dll-zlib-dll
  165. cd ..\src
  166. nmake /f Makefile.$(VC) cfg=release-ssl-dll-zlib-dll
  167. vc-zlib-dll:
  168. cd lib
  169. nmake /f Makefile.$(VC) cfg=release-zlib-dll
  170. cd ..\src
  171. nmake /f Makefile.$(VC) cfg=release-zlib-dll
  172. vc-sspi:
  173. cd lib
  174. nmake /f Makefile.$(VC) cfg=release WINDOWS_SSPI=1
  175. cd ..\src
  176. nmake /f Makefile.$(VC) cfg=release WINDOWS_SSPI=1
  177. djgpp:
  178. $(MAKE) -C lib -f Makefile.dj
  179. $(MAKE) -C src -f Makefile.dj
  180. cygwin:
  181. ./configure
  182. make
  183. cygwin-ssl:
  184. ./configure --with-ssl
  185. make
  186. amiga:
  187. cd ./lib && make -f makefile.amiga
  188. cd ./src && make -f makefile.amiga
  189. netware:
  190. $(MAKE) -C lib -f Makefile.netware
  191. $(MAKE) -C src -f Makefile.netware
  192. netware-ares:
  193. $(MAKE) -C lib -f Makefile.netware WITH_ARES=1
  194. $(MAKE) -C src -f Makefile.netware WITH_ARES=1
  195. netware-ssl:
  196. $(MAKE) -C lib -f Makefile.netware WITH_SSL=1
  197. $(MAKE) -C src -f Makefile.netware WITH_SSL=1
  198. netware-ssl-zlib:
  199. $(MAKE) -C lib -f Makefile.netware WITH_SSL=1 WITH_ZLIB=1
  200. $(MAKE) -C src -f Makefile.netware WITH_SSL=1 WITH_ZLIB=1
  201. netware-ssh2-ssl-zlib:
  202. $(MAKE) -C lib -f Makefile.netware WITH_SSH2=1 WITH_SSL=1 WITH_ZLIB=1
  203. $(MAKE) -C src -f Makefile.netware WITH_SSH2=1 WITH_SSL=1 WITH_ZLIB=1
  204. netware-zlib:
  205. $(MAKE) -C lib -f Makefile.netware WITH_ZLIB=1
  206. $(MAKE) -C src -f Makefile.netware WITH_ZLIB=1
  207. netware-clean:
  208. $(MAKE) -C lib -f Makefile.netware clean
  209. $(MAKE) -C src -f Makefile.netware clean
  210. netware-install:
  211. $(MAKE) -C lib -f Makefile.netware install
  212. $(MAKE) -C src -f Makefile.netware install
  213. unix: all
  214. unix-ssl: ssl
  215. linux: all
  216. linux-ssl: ssl
  217. vc8: lib/Makefile.vc8 src/Makefile.vc8
  218. lib/Makefile.vc8: lib/Makefile.vc6
  219. @echo "generate $@"
  220. @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
  221. src/Makefile.vc8: src/Makefile.vc6
  222. @echo "generate $@"
  223. @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
  224. # VC9 makefiles are for use with VS2008
  225. vc9: lib/Makefile.vc9 src/Makefile.vc9
  226. lib/Makefile.vc9: lib/Makefile.vc6
  227. @echo "generate $@"
  228. @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
  229. src/Makefile.vc9: src/Makefile.vc6
  230. @echo "generate $@"
  231. @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
  232. ca-bundle: lib/mk-ca-bundle.pl
  233. @echo "generate a fresh ca-bundle.crt"
  234. @perl $< -b -l -u lib/ca-bundle.crt
  235. ca-firefox: lib/firefox-db2pem.sh
  236. @echo "generate a fresh ca-bundle.crt"
  237. ./lib/firefox-db2pem.sh lib/ca-bundle.crt