Makefile.dist 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  1. #***************************************************************************
  2. # _ _ ____ _
  3. # Project ___| | | | _ \| |
  4. # / __| | | | |_) | |
  5. # | (__| |_| | _ <| |___
  6. # \___|\___/|_| \_\_____|
  7. #
  8. # Copyright (C) 1998 - 2014, 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. ###########################################################################
  22. VC=vc6
  23. all:
  24. ./configure
  25. make
  26. ssl:
  27. ./configure --with-ssl
  28. make
  29. borland:
  30. cd lib
  31. $(MAKE) -f Makefile.b32
  32. cd ..\src
  33. $(MAKE) -f Makefile.b32
  34. borland-ssl:
  35. cd lib
  36. $(MAKE) -f Makefile.b32 WITH_SSL=1
  37. cd ..\src
  38. $(MAKE) -f Makefile.b32 WITH_SSL=1
  39. borland-ssl-zlib:
  40. cd lib
  41. $(MAKE) -f Makefile.b32 WITH_SSL=1 WITH_ZLIB=1
  42. cd ..\src
  43. $(MAKE) -f Makefile.b32 WITH_SSL=1 WITH_ZLIB=1
  44. borland-clean:
  45. cd lib
  46. $(MAKE) -f Makefile.b32 clean
  47. cd ..\src
  48. $(MAKE) -f Makefile.b32 clean
  49. watcom: .SYMBOLIC
  50. cd lib && $(MAKE) -u -f Makefile.Watcom
  51. cd src && $(MAKE) -u -f Makefile.Watcom
  52. watcom-clean: .SYMBOLIC
  53. cd lib && $(MAKE) -u -f Makefile.Watcom clean
  54. cd src && $(MAKE) -u -f Makefile.Watcom clean
  55. watcom-vclean: .SYMBOLIC
  56. cd lib && $(MAKE) -u -f Makefile.Watcom vclean
  57. cd src && $(MAKE) -u -f Makefile.Watcom vclean
  58. mingw32:
  59. $(MAKE) -C lib -f Makefile.m32
  60. $(MAKE) -C src -f Makefile.m32
  61. mingw32-clean:
  62. $(MAKE) -C lib -f Makefile.m32 clean
  63. $(MAKE) -C src -f Makefile.m32 clean
  64. $(MAKE) -C docs/examples -f Makefile.m32 clean
  65. mingw32-vclean mingw32-distclean:
  66. $(MAKE) -C lib -f Makefile.m32 vclean
  67. $(MAKE) -C src -f Makefile.m32 vclean
  68. $(MAKE) -C docs/examples -f Makefile.m32 vclean
  69. mingw32-examples%:
  70. $(MAKE) -C docs/examples -f Makefile.m32 CFG=$@
  71. mingw32%:
  72. $(MAKE) -C lib -f Makefile.m32 CFG=$@
  73. $(MAKE) -C src -f Makefile.m32 CFG=$@
  74. vc-clean: $(VC)
  75. cd lib
  76. nmake -f Makefile.$(VC) clean
  77. cd ..\src
  78. nmake -f Makefile.$(VC) clean
  79. vc-all: $(VC)
  80. cd lib
  81. nmake -f Makefile.$(VC) cfg=release
  82. nmake -f Makefile.$(VC) cfg=release-ssl
  83. nmake -f Makefile.$(VC) cfg=release-zlib
  84. nmake -f Makefile.$(VC) cfg=release-ssl-zlib
  85. nmake -f Makefile.$(VC) cfg=release-ssl-dll
  86. nmake -f Makefile.$(VC) cfg=release-zlib-dll
  87. nmake -f Makefile.$(VC) cfg=release-ssl-dll-zlib-dll
  88. nmake -f Makefile.$(VC) cfg=release-dll
  89. nmake -f Makefile.$(VC) cfg=release-dll-ssl-dll
  90. nmake -f Makefile.$(VC) cfg=release-dll-zlib-dll
  91. nmake -f Makefile.$(VC) cfg=release-dll-ssl-dll-zlib-dll
  92. nmake -f Makefile.$(VC) cfg=debug
  93. nmake -f Makefile.$(VC) cfg=debug-ssl
  94. nmake -f Makefile.$(VC) cfg=debug-zlib
  95. nmake -f Makefile.$(VC) cfg=debug-ssl-zlib
  96. nmake -f Makefile.$(VC) cfg=debug-ssl-dll
  97. nmake -f Makefile.$(VC) cfg=debug-zlib-dll
  98. nmake -f Makefile.$(VC) cfg=debug-ssl-dll-zlib-dll
  99. nmake -f Makefile.$(VC) cfg=debug-dll
  100. nmake -f Makefile.$(VC) cfg=debug-dll-ssl-dll
  101. nmake -f Makefile.$(VC) cfg=debug-dll-zlib-dll
  102. nmake -f Makefile.$(VC) cfg=debug-dll-ssl-dll-zlib-dll
  103. vc: $(VC)
  104. cd lib
  105. nmake /f Makefile.$(VC) cfg=release
  106. cd ..\src
  107. nmake /f Makefile.$(VC)
  108. vc-x64: $(VC)
  109. cd lib
  110. nmake /f Makefile.$(VC) MACHINE=x64 cfg=release
  111. cd ..\src
  112. nmake /f Makefile.$(VC) MACHINE=x64 cfg=release
  113. vc-zlib: $(VC)
  114. cd lib
  115. nmake /f Makefile.$(VC) cfg=release-zlib
  116. cd ..\src
  117. nmake /f Makefile.$(VC) cfg=release-zlib
  118. vc-x64-zlib: $(VC)
  119. cd lib
  120. nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-zlib
  121. cd ..\src
  122. nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-zlib
  123. vc-ssl: $(VC)
  124. cd lib
  125. nmake /f Makefile.$(VC) cfg=release-ssl
  126. cd ..\src
  127. nmake /f Makefile.$(VC) cfg=release-ssl
  128. vc-winssl: $(VC)
  129. cd lib
  130. nmake /f Makefile.$(VC) cfg=release-winssl WINDOWS_SSPI=1
  131. cd ..\src
  132. nmake /f Makefile.$(VC) cfg=release-winssl WINDOWS_SSPI=1
  133. vc-x64-ssl: $(VC)
  134. cd lib
  135. nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl
  136. cd ..\src
  137. nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl
  138. vc-x64-winssl: $(VC)
  139. cd lib
  140. nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-winssl WINDOWS_SSPI=1
  141. cd ..\src
  142. nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-winssl WINDOWS_SSPI=1
  143. vc-ssl-zlib: $(VC)
  144. cd lib
  145. nmake /f Makefile.$(VC) cfg=release-ssl-zlib
  146. cd ..\src
  147. nmake /f Makefile.$(VC) cfg=release-ssl-zlib
  148. vc-ssl-ssh2-zlib: $(VC)
  149. cd lib
  150. nmake /f Makefile.$(VC) cfg=release-ssl-ssh2-zlib
  151. cd ..\src
  152. nmake /f Makefile.$(VC) cfg=release-ssl-ssh2-zlib
  153. vc-winssl-zlib: $(VC)
  154. cd lib
  155. nmake /f Makefile.$(VC) cfg=release-winssl-zlib
  156. cd ..\src
  157. nmake /f Makefile.$(VC) cfg=release-winssl-zlib
  158. vc-x64-ssl-zlib: $(VC)
  159. cd lib
  160. nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib
  161. cd ..\src
  162. nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib
  163. vc-x64-ssl-ssh2-zlib: $(VC)
  164. cd lib
  165. nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-ssh2-zlib
  166. cd ..\src
  167. nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-ssh2-zlib
  168. vc-x64-winssl-zlib: $(VC)
  169. cd lib
  170. nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-winssl-zlib
  171. cd ..\src
  172. nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-winssl-zlib
  173. vc-ssl-dll: $(VC)
  174. cd lib
  175. nmake /f Makefile.$(VC) cfg=release-ssl-dll
  176. cd ..\src
  177. nmake /f Makefile.$(VC) cfg=release-ssl-dll
  178. vc-dll-ssl-dll: $(VC)
  179. cd lib
  180. nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll
  181. cd ..\src
  182. nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll
  183. vc-dll: $(VC)
  184. cd lib
  185. nmake /f Makefile.$(VC) cfg=release-dll
  186. cd ..\src
  187. nmake /f Makefile.$(VC) cfg=release-dll
  188. vc-dll-zlib-dll: $(VC)
  189. cd lib
  190. nmake /f Makefile.$(VC) cfg=release-dll-zlib-dll
  191. cd ..\src
  192. nmake /f Makefile.$(VC) cfg=release-dll-zlib-dll
  193. vc-dll-ssl-dll-zlib-dll: $(VC)
  194. cd lib
  195. nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll-zlib-dll
  196. cd ..\src
  197. nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll-zlib-dll
  198. vc-ssl-dll-zlib-dll: $(VC)
  199. cd lib
  200. nmake /f Makefile.$(VC) cfg=release-ssl-dll-zlib-dll
  201. cd ..\src
  202. nmake /f Makefile.$(VC) cfg=release-ssl-dll-zlib-dll
  203. vc-zlib-dll: $(VC)
  204. cd lib
  205. nmake /f Makefile.$(VC) cfg=release-zlib-dll
  206. cd ..\src
  207. nmake /f Makefile.$(VC) cfg=release-zlib-dll
  208. vc-sspi: $(VC)
  209. cd lib
  210. nmake /f Makefile.$(VC) cfg=release WINDOWS_SSPI=1
  211. cd ..\src
  212. nmake /f Makefile.$(VC) cfg=release WINDOWS_SSPI=1
  213. djgpp:
  214. $(MAKE) -C lib -f Makefile.dj
  215. $(MAKE) -C src -f Makefile.dj
  216. cygwin:
  217. ./configure
  218. make
  219. cygwin-ssl:
  220. ./configure --with-ssl
  221. make
  222. amiga:
  223. cd ./lib && make -f makefile.amiga
  224. cd ./src && make -f makefile.amiga
  225. netware:
  226. $(MAKE) -C lib -f Makefile.netware
  227. $(MAKE) -C src -f Makefile.netware
  228. netware-clean:
  229. $(MAKE) -C lib -f Makefile.netware clean
  230. $(MAKE) -C src -f Makefile.netware clean
  231. $(MAKE) -C docs/examples -f Makefile.netware clean
  232. netware-vclean netware-distclean:
  233. $(MAKE) -C lib -f Makefile.netware vclean
  234. $(MAKE) -C src -f Makefile.netware vclean
  235. $(MAKE) -C docs/examples -f Makefile.netware vclean
  236. netware-install:
  237. $(MAKE) -C lib -f Makefile.netware install
  238. $(MAKE) -C src -f Makefile.netware install
  239. netware-examples-%:
  240. $(MAKE) -C docs/examples -f Makefile.netware CFG=$@
  241. netware-%:
  242. $(MAKE) -C lib -f Makefile.netware CFG=$@
  243. $(MAKE) -C src -f Makefile.netware CFG=$@
  244. unix: all
  245. unix-ssl: ssl
  246. linux: all
  247. linux-ssl: ssl
  248. # We don't need to do anything for vc6.
  249. vc6:
  250. # VC7 makefiles are for use with VS.NET and VS.NET 2003
  251. vc7: lib/Makefile.vc7 src/Makefile.vc7
  252. lib/Makefile.vc7: lib/Makefile.vc6
  253. @echo "generate $@"
  254. @sed -e "s/VC6/VC7/g" lib/Makefile.vc6 > lib/Makefile.vc7
  255. src/Makefile.vc7: src/Makefile.vc6
  256. @echo "generate $@"
  257. @sed -e "s/VC6/VC7/g" src/Makefile.vc6 > src/Makefile.vc7
  258. # VC8 makefiles are for use with VS2005
  259. vc8: lib/Makefile.vc8 src/Makefile.vc8
  260. lib/Makefile.vc8: lib/Makefile.vc6
  261. @echo "generate $@"
  262. @sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/ws2_32.lib/ws2_32.lib bufferoverflowu.lib/g" -e "s/VC6/VC8/g" lib/Makefile.vc6 > lib/Makefile.vc8
  263. src/Makefile.vc8: src/Makefile.vc6
  264. @echo "generate $@"
  265. @sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/ws2_32.lib/ws2_32.lib bufferoverflowu.lib/g" -e "s/VC6/VC8/g" src/Makefile.vc6 > src/Makefile.vc8
  266. # VC9 makefiles are for use with VS2008
  267. vc9: lib/Makefile.vc9 src/Makefile.vc9
  268. lib/Makefile.vc9: lib/Makefile.vc6
  269. @echo "generate $@"
  270. @sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/ws2_32.lib/ws2_32.lib/g" -e "s/vc6/vc9/g" -e "s/VC6/VC9/g" lib/Makefile.vc6 > lib/Makefile.vc9
  271. src/Makefile.vc9: src/Makefile.vc6
  272. @echo "generate $@"
  273. @sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/ws2_32.lib/ws2_32.lib/g" -e "s/vc6/vc9/g" -e "s/VC6/VC9/g" src/Makefile.vc6 > src/Makefile.vc9
  274. # VC10 makefiles are for use with VS2010
  275. vc10: lib/Makefile.vc10 src/Makefile.vc10
  276. lib/Makefile.vc10: lib/Makefile.vc6
  277. @echo "generate $@"
  278. @sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/ws2_32.lib/ws2_32.lib/g" -e "s/vc6/vc10/g" -e "s/VC6/VC10/g" lib/Makefile.vc6 > lib/Makefile.vc10
  279. src/Makefile.vc10: src/Makefile.vc6
  280. @echo "generate $@"
  281. @sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/ws2_32.lib/ws2_32.lib/g" -e "s/vc6/vc10/g" -e "s/VC6/VC10/g" src/Makefile.vc6 > src/Makefile.vc10
  282. # VC11 makefiles are for use with VS2012
  283. vc11: lib/Makefile.vc11 src/Makefile.vc11
  284. lib/Makefile.vc11: lib/Makefile.vc6
  285. @echo "generate $@"
  286. @sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/ws2_32.lib/ws2_32.lib/g" -e "s/vc6/vc11/g" -e "s/VC6/VC11/g" lib/Makefile.vc6 > lib/Makefile.vc11
  287. src/Makefile.vc11: src/Makefile.vc6
  288. @echo "generate $@"
  289. @sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/ws2_32.lib/ws2_32.lib/g" -e "s/vc6/vc11/g" -e "s/VC6/VC11/g" src/Makefile.vc6 > src/Makefile.vc11
  290. # VC12 makefiles are for use with VS2013
  291. vc12: lib/Makefile.vc12 src/Makefile.vc12
  292. lib/Makefile.vc12: lib/Makefile.vc6
  293. @echo "generate $@"
  294. @sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/ws2_32.lib/ws2_32.lib/g" -e "s/vc6/vc12/g" -e "s/VC6/VC12/g" lib/Makefile.vc6 > lib/Makefile.vc12
  295. src/Makefile.vc12: src/Makefile.vc6
  296. @echo "generate $@"
  297. @sed -e "s#/GX /DWIN32 /YX#/EHsc /DWIN32#" -e "s#/GZ#/RTC1#" -e "s/ws2_32.lib/ws2_32.lib/g" -e "s/vc6/vc12/g" -e "s/VC6/VC12/g" src/Makefile.vc6 > src/Makefile.vc12
  298. ca-bundle: lib/mk-ca-bundle.pl
  299. @echo "generate a fresh ca-bundle.crt"
  300. @perl $< -b -l -u lib/ca-bundle.crt
  301. ca-firefox: lib/firefox-db2pem.sh
  302. @echo "generate a fresh ca-bundle.crt"
  303. ./lib/firefox-db2pem.sh lib/ca-bundle.crt