]> begriffs open source - libtap/blob - INSTALL
Merge pull request #3 from bricef/master
[libtap] / INSTALL
1 To install libtap on a unix-like system:
2
3     $ make
4     $ make check
5     $ make install
6
7 To compile with gcc -ansi, run
8
9         $ make ANSI=1
10
11 On Windows, the library can be created by first setting up
12 the correct development environment variables. Usually this
13 is done by running vcvars32.bat included in the visual studio
14 distribution. You should also install gnu make which can be
15 found at http://gnuwin32.sourceforge.net/packages/make.htm.
16 And you should have perl to run the tests although this isnt
17 absolutely necessary. Once this is done, you should be able to
18 run the following:
19
20     > make -f Makefile.win
21     > make check
22
23 Alternatively, you might want to use the visual studio project file
24 included by Alexander Kahl (e-user).
25
26 If you want to use it directly in another project, you can copy tap.c
27 and tap.h there and it shouldn't have a problem compiling.
28
29     $ ls
30     tap.c tap.h test.c
31     $ cat test.c
32     #include "tap.h"
33     int main () {
34         plan(1);
35         ok(50 + 5, "foo %s", "bar");
36         done_testing();
37     }
38     $ gcc test.c tap.c
39     $ a.out
40     1..1
41     ok 1 - foo bar
42