Makefile.dist 7.9 KB

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