Fix compilation on Windows/msvc
[ocurl.git] / README.md
blobd72bbf1cb4e8d698154a6b86988eb38ca2d11b29
2 ocurl - OCaml libcurl bindings
3 ==============================
5 [![Build Status](https://travis-ci.org/ygrek/ocurl.svg?branch=master)](https://travis-ci.org/ygrek/ocurl) [![Build status](https://ci.appveyor.com/api/projects/status/b20uqxaeyarwy2s4/branch/master?svg=true)](https://ci.appveyor.com/project/ygrek/ocurl/branch/master)
7 Homepage: http://ygrek.org.ua/p/ocurl/
9 OCaml bindings to libcurl - client-side URL transfer library,
10 supporting HTTP and a multitude of other network protocols.
11 This is a continuation of ocurl project by Lars Nilsson,
12 previously hosted at http://ocurl.sourceforge.net/
14 Building on Windows with ocaml/msvc
15 ===================================
17 Requirements
18 ------------
20   * libcurl devel for msvc <http://curl.haxx.se/latest.cgi?curl=win32-ssl-devel-msvc>
21   * working ocaml/msvc setup (ocaml and msvc tools in PATH)
22   * ocamlfind
23   * GNU make
25 Build
26 -----
28 Edit `Makefile.msvc` and make CURLDIR variable point
29 to the root directory of libcurl installation.
30 Copy `config.h.windows` to `config.h`.
32 Compile with `make -f Makefile.msvc`.
33 Install with `make -f Makefile.msvc install`.
34 Compile examples with `make -f Makefile.msvc examples`.
36 Making release
37 ==============
39 * Update CHANGES.txt
40 * Update version in configure.ac
41 * autoreconf
42 * commit
43 * ./configure && make release
45 ----
46  ygrek at autistici dot org