Makefile.dist 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  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-winssl-zlib: $(VC)
  149. cd lib
  150. nmake /f Makefile.$(VC) cfg=release-winssl-zlib
  151. cd ..\src
  152. nmake /f Makefile.$(VC) cfg=release-winssl-zlib
  153. vc-x64-ssl-zlib: $(VC)
  154. cd lib
  155. nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib
  156. cd ..\src
  157. nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib
  158. vc-x64-winssl-zlib: $(VC)
  159. cd lib
  160. nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-winssl-zlib
  161. cd ..\src
  162. nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-winssl-zlib
  163. vc-ssl-dll: $(VC)
  164. cd lib
  165. nmake /f Makefile.$(VC) cfg=release-ssl-dll
  166. cd ..\src
  167. nmake /f Makefile.$(VC) cfg=release-ssl-dll
  168. vc-dll-ssl-dll: $(VC)
  169. cd lib
  170. nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll
  171. cd ..\src
  172. nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll
  173. vc-dll: $(VC)
  174. cd lib
  175. nmake /f Makefile.$(VC) cfg=release-dll
  176. cd ..\src
  177. nmake /f Makefile.$(VC) cfg=release-dll
  178. vc-dll-zlib-dll: $(VC)
  179. cd lib
  180. nmake /f Makefile.$(VC) cfg=release-dll-zlib-dll
  181. cd ..\src
  182. nmake /f Makefile.$(VC) cfg=release-dll-zlib-dll
  183. vc-dll-ssl-dll-zlib-dll: $(VC)
  184. cd lib
  185. nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll-zlib-dll
  186. cd ..\src
  187. nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll-zlib-dll
  188. vc-ssl-dll-zlib-dll: $(VC)
  189. cd lib
  190. nmake /f Makefile.$(VC) cfg=release-ssl-dll-zlib-dll
  191. cd ..\src
  192. nmake /f Makefile.$(VC) cfg=release-ssl-dll-zlib-dll
  193. vc-zlib-dll: $(VC)
  194. cd lib
  195. nmake /f Makefile.$(VC) cfg=release-zlib-dll
  196. cd ..\src
  197. nmake /f Makefile.$(VC) cfg=release-zlib-dll
  198. vc-sspi: $(VC)
  199. cd lib
  200. nmake /f Makefile.$(VC) cfg=release WINDOWS_SSPI=1
  201. cd ..\src
  202. nmake /f Makefile.$(VC) cfg=release WINDOWS_SSPI=1
  203. djgpp:
  204. $(MAKE) -C lib -f Makefile.dj
  205. $(MAKE) -C src -f Makefile.dj
  206. cygwin:
  207. ./configure
  208. make
  209. cygwin-ssl:
  210. ./configure --with-ssl
  211. make
  212. amiga:
  213. cd ./lib && make -f makefile.amiga
  214. cd ./src && make -f makefile.amiga
  215. netware:
  216. $(MAKE) -C lib -f Makefile.netware
  217. $(MAKE) -C src -f Makefile.netware
  218. netware-clean:
  219. $(MAKE) -C lib -f Makefile.netware clean
  220. $(MAKE) -C src -f Makefile.netware clean
  221. $(MAKE) -C docs/examples -f Makefile.netware clean
  222. netware-vclean netware-distclean:
  223. $(MAKE) -C lib -f Makefile.netware vclean
  224. $(MAKE) -C src -f Makefile.netware vclean
  225. $(MAKE) -C docs/examples -f Makefile.netware vclean
  226. netware-install:
  227. $(MAKE) -C lib -f Makefile.netware install
  228. $(MAKE) -C src -f Makefile.netware install
  229. netware-examples-%:
  230. $(MAKE) -C docs/examples -f Makefile.netware CFG=$@
  231. netware-%:
  232. $(MAKE) -C lib -f Makefile.netware CFG=$@
  233. $(MAKE) -C src -f Makefile.netware CFG=$@
  234. unix: all
  235. unix-ssl: ssl
  236. linux: all
  237. linux-ssl: ssl
  238. # We don't need to do anything for vc6.
  239. vc6:
  240. # VC7 makefiles are for use with VS.NET and VS.NET 2003
  241. vc7: lib/Makefile.vc7 src/Makefile.vc7
  242. lib/Makefile.vc7: lib/Makefile.vc6
  243. @echo "generate $@"
  244. @sed -e "s/VC6/VC7/g" lib/Makefile.vc6 > lib/Makefile.vc7
  245. src/Makefile.vc7: src/Makefile.vc6
  246. @echo "generate $@"
  247. @sed -e "s/VC6/VC7/g" src/Makefile.vc6 > src/Makefile.vc7
  248. # VC8 makefiles are for use with VS2005
  249. vc8: lib/Makefile.vc8 src/Makefile.vc8
  250. lib/Makefile.vc8: lib/Makefile.vc6
  251. @echo "generate $@"
  252. @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
  253. src/Makefile.vc8: src/Makefile.vc6
  254. @echo "generate $@"
  255. @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
  256. # VC9 makefiles are for use with VS2008
  257. vc9: lib/Makefile.vc9 src/Makefile.vc9
  258. lib/Makefile.vc9: lib/Makefile.vc6
  259. @echo "generate $@"
  260. @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
  261. src/Makefile.vc9: src/Makefile.vc6
  262. @echo "generate $@"
  263. @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
  264. # VC10 makefiles are for use with VS2010
  265. vc10: lib/Makefile.vc10 src/Makefile.vc10
  266. lib/Makefile.vc10: lib/Makefile.vc6
  267. @echo "generate $@"
  268. @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
  269. src/Makefile.vc10: src/Makefile.vc6
  270. @echo "generate $@"
  271. @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
  272. # VC11 makefiles are for use with VS2012
  273. vc11: lib/Makefile.vc11 src/Makefile.vc11
  274. lib/Makefile.vc11: lib/Makefile.vc6
  275. @echo "generate $@"
  276. @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
  277. src/Makefile.vc11: src/Makefile.vc6
  278. @echo "generate $@"
  279. @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
  280. # VC12 makefiles are for use with VS2013
  281. vc12: lib/Makefile.vc12 src/Makefile.vc12
  282. lib/Makefile.vc12: lib/Makefile.vc6
  283. @echo "generate $@"
  284. @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
  285. src/Makefile.vc12: src/Makefile.vc6
  286. @echo "generate $@"
  287. @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
  288. ca-bundle: lib/mk-ca-bundle.pl
  289. @echo "generate a fresh ca-bundle.crt"
  290. @perl $< -b -l -u lib/ca-bundle.crt
  291. ca-firefox: lib/firefox-db2pem.sh
  292. @echo "generate a fresh ca-bundle.crt"
  293. ./lib/firefox-db2pem.sh lib/ca-bundle.crt