Makefile.dist 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  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. mingw32-vclean mingw32-distclean:
  65. $(MAKE) -C lib -f Makefile.m32 vclean
  66. $(MAKE) -C src -f Makefile.m32 vclean
  67. mingw32%:
  68. $(MAKE) -C lib -f Makefile.m32 CFG=$@
  69. $(MAKE) -C src -f Makefile.m32 CFG=$@
  70. vc-clean: $(VC)
  71. cd lib
  72. nmake -f Makefile.$(VC) clean
  73. cd ..\src
  74. nmake -f Makefile.$(VC) clean
  75. vc-all: $(VC)
  76. cd lib
  77. nmake -f Makefile.$(VC) cfg=release
  78. nmake -f Makefile.$(VC) cfg=release-ssl
  79. nmake -f Makefile.$(VC) cfg=release-zlib
  80. nmake -f Makefile.$(VC) cfg=release-ssl-zlib
  81. nmake -f Makefile.$(VC) cfg=release-ssl-dll
  82. nmake -f Makefile.$(VC) cfg=release-zlib-dll
  83. nmake -f Makefile.$(VC) cfg=release-ssl-dll-zlib-dll
  84. nmake -f Makefile.$(VC) cfg=release-dll
  85. nmake -f Makefile.$(VC) cfg=release-dll-ssl-dll
  86. nmake -f Makefile.$(VC) cfg=release-dll-zlib-dll
  87. nmake -f Makefile.$(VC) cfg=release-dll-ssl-dll-zlib-dll
  88. nmake -f Makefile.$(VC) cfg=debug
  89. nmake -f Makefile.$(VC) cfg=debug-ssl
  90. nmake -f Makefile.$(VC) cfg=debug-zlib
  91. nmake -f Makefile.$(VC) cfg=debug-ssl-zlib
  92. nmake -f Makefile.$(VC) cfg=debug-ssl-dll
  93. nmake -f Makefile.$(VC) cfg=debug-zlib-dll
  94. nmake -f Makefile.$(VC) cfg=debug-ssl-dll-zlib-dll
  95. nmake -f Makefile.$(VC) cfg=debug-dll
  96. nmake -f Makefile.$(VC) cfg=debug-dll-ssl-dll
  97. nmake -f Makefile.$(VC) cfg=debug-dll-zlib-dll
  98. nmake -f Makefile.$(VC) cfg=debug-dll-ssl-dll-zlib-dll
  99. vc: $(VC)
  100. cd lib
  101. nmake /f Makefile.$(VC) cfg=release
  102. cd ..\src
  103. nmake /f Makefile.$(VC)
  104. vc-x64: $(VC)
  105. cd lib
  106. nmake /f Makefile.$(VC) MACHINE=x64 cfg=release
  107. cd ..\src
  108. nmake /f Makefile.$(VC) MACHINE=x64 cfg=release
  109. vc-zlib: $(VC)
  110. cd lib
  111. nmake /f Makefile.$(VC) cfg=release-zlib
  112. cd ..\src
  113. nmake /f Makefile.$(VC) cfg=release-zlib
  114. vc-ssl: $(VC)
  115. cd lib
  116. nmake /f Makefile.$(VC) cfg=release-ssl
  117. cd ..\src
  118. nmake /f Makefile.$(VC) cfg=release-ssl
  119. vc-ssl-zlib: $(VC)
  120. cd lib
  121. nmake /f Makefile.$(VC) cfg=release-ssl-zlib
  122. cd ..\src
  123. nmake /f Makefile.$(VC) cfg=release-ssl-zlib
  124. vc-x64-ssl-zlib: $(VC)
  125. cd lib
  126. nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib
  127. cd ..\src
  128. nmake /f Makefile.$(VC) MACHINE=x64 cfg=release-ssl-zlib
  129. vc-ssl-dll: $(VC)
  130. cd lib
  131. nmake /f Makefile.$(VC) cfg=release-ssl-dll
  132. cd ..\src
  133. nmake /f Makefile.$(VC) cfg=release-ssl-dll
  134. vc-dll-ssl-dll: $(VC)
  135. cd lib
  136. nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll
  137. cd ..\src
  138. nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll
  139. vc-dll: $(VC)
  140. cd lib
  141. nmake /f Makefile.$(VC) cfg=release-dll
  142. cd ..\src
  143. nmake /f Makefile.$(VC) cfg=release-dll
  144. vc-dll-zlib-dll: $(VC)
  145. cd lib
  146. nmake /f Makefile.$(VC) cfg=release-dll-zlib-dll
  147. cd ..\src
  148. nmake /f Makefile.$(VC) cfg=release-dll-zlib-dll
  149. vc-dll-ssl-dll-zlib-dll: $(VC)
  150. cd lib
  151. nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll-zlib-dll
  152. cd ..\src
  153. nmake /f Makefile.$(VC) cfg=release-dll-ssl-dll-zlib-dll
  154. vc-ssl-dll-zlib-dll: $(VC)
  155. cd lib
  156. nmake /f Makefile.$(VC) cfg=release-ssl-dll-zlib-dll
  157. cd ..\src
  158. nmake /f Makefile.$(VC) cfg=release-ssl-dll-zlib-dll
  159. vc-zlib-dll: $(VC)
  160. cd lib
  161. nmake /f Makefile.$(VC) cfg=release-zlib-dll
  162. cd ..\src
  163. nmake /f Makefile.$(VC) cfg=release-zlib-dll
  164. vc-sspi: $(VC)
  165. cd lib
  166. nmake /f Makefile.$(VC) cfg=release WINDOWS_SSPI=1
  167. cd ..\src
  168. nmake /f Makefile.$(VC) cfg=release WINDOWS_SSPI=1
  169. djgpp:
  170. $(MAKE) -C lib -f Makefile.dj
  171. $(MAKE) -C src -f Makefile.dj
  172. cygwin:
  173. ./configure
  174. make
  175. cygwin-ssl:
  176. ./configure --with-ssl
  177. make
  178. amiga:
  179. cd ./lib && make -f makefile.amiga
  180. cd ./src && make -f makefile.amiga
  181. netware:
  182. $(MAKE) -C lib -f Makefile.netware
  183. $(MAKE) -C src -f Makefile.netware
  184. netware-ares:
  185. $(MAKE) -C lib -f Makefile.netware WITH_ARES=1
  186. $(MAKE) -C src -f Makefile.netware WITH_ARES=1
  187. netware-ssl:
  188. $(MAKE) -C lib -f Makefile.netware WITH_SSL=1
  189. $(MAKE) -C src -f Makefile.netware WITH_SSL=1
  190. netware-ssl-zlib:
  191. $(MAKE) -C lib -f Makefile.netware WITH_SSL=1 WITH_ZLIB=1
  192. $(MAKE) -C src -f Makefile.netware WITH_SSL=1 WITH_ZLIB=1
  193. netware-ssh2-ssl-zlib:
  194. $(MAKE) -C lib -f Makefile.netware WITH_SSH2=1 WITH_SSL=1 WITH_ZLIB=1
  195. $(MAKE) -C src -f Makefile.netware WITH_SSH2=1 WITH_SSL=1 WITH_ZLIB=1
  196. netware-zlib:
  197. $(MAKE) -C lib -f Makefile.netware WITH_ZLIB=1
  198. $(MAKE) -C src -f Makefile.netware WITH_ZLIB=1
  199. netware-clean:
  200. $(MAKE) -C lib -f Makefile.netware clean
  201. $(MAKE) -C src -f Makefile.netware clean
  202. netware-install:
  203. $(MAKE) -C lib -f Makefile.netware install
  204. $(MAKE) -C src -f Makefile.netware install
  205. unix: all
  206. unix-ssl: ssl
  207. linux: all
  208. linux-ssl: ssl
  209. # We don't need to do anything for vc6.
  210. vc6:
  211. vc8: lib/Makefile.vc8 src/Makefile.vc8
  212. lib/Makefile.vc8: lib/Makefile.vc6
  213. @echo "generate $@"
  214. @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
  215. src/Makefile.vc8: src/Makefile.vc6
  216. @echo "generate $@"
  217. @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
  218. # VC9 makefiles are for use with VS2008
  219. vc9: lib/Makefile.vc9 src/Makefile.vc9
  220. lib/Makefile.vc9: lib/Makefile.vc6
  221. @echo "generate $@"
  222. @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
  223. src/Makefile.vc9: src/Makefile.vc6
  224. @echo "generate $@"
  225. @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
  226. # VC10 makefiles are for use with VS2010
  227. vc10: lib/Makefile.vc10 src/Makefile.vc10
  228. lib/Makefile.vc10: lib/Makefile.vc6
  229. @echo "generate $@"
  230. @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
  231. src/Makefile.vc10: src/Makefile.vc6
  232. @echo "generate $@"
  233. @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
  234. ca-bundle: lib/mk-ca-bundle.pl
  235. @echo "generate a fresh ca-bundle.crt"
  236. @perl $< -b -l -u lib/ca-bundle.crt
  237. ca-firefox: lib/firefox-db2pem.sh
  238. @echo "generate a fresh ca-bundle.crt"
  239. ./lib/firefox-db2pem.sh lib/ca-bundle.crt