]> begriffs open source - libtap/blob - INSTALL
Rely on prove (or another tap consumer) to provide color results
[libtap] / INSTALL
1 To install libtap on a unix-like system:
2
3     $ make
4     $ make check
5     $ make install
6
7 Note that `make check` makes use of diff(1), so if you run it, make
8 sure you have those tools installed first. To compile with gcc
9 -ansi, run:
10
11     $ make ANSI=1
12
13 To install to a different directory than /usr/local, supply the
14 PREFIX variable to make:
15
16     $ make PREFIX=/usr install
17
18 On Windows, the library can be created by first setting up the
19 correct development environment variables. Usually this is done by
20 running vcvars32.bat included in the visual studio distribution.
21 You should also install gnu make which can be found at
22 http://gnuwin32.sourceforge.net/packages/make.htm. Once this is
23 done, you should be able to run the following:
24
25     > make -f Makefile.win
26
27 If you want to use it directly in another project, you can copy tap.c
28 and tap.h there and it shouldn't have a problem compiling.
29
30     $ ls
31     tap.c tap.h test.c
32     $ cat test.c
33     #include "tap.h"
34     int main () {
35         plan(1);
36         ok(50 + 5, "foo %s", "bar");
37         done_testing();
38     }
39     $ gcc test.c tap.c
40     $ a.out
41     1..1
42     ok 1 - foo bar
43