]> begriffs open source - libtap/blob - INSTALL
Merge pull request #37 from horgh/horgh/macos
[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     $ ANSI=1 make
10
11 To install to a different directory than /usr/local, supply the
12 PREFIX variable to make:
13
14     $ PREFIX=/usr make install
15
16 On Windows, the library can be created by first setting up the
17 correct development environment variables. Usually this is done by
18 running vcvars32.bat included in the Visual Studio distribution.
19 You should also install gnu make which can be found at
20 http://gnuwin32.sourceforge.net/packages/make.htm. Once this is
21 done, you should be able to run the following:
22
23     > make -f Makefile.win
24
25 If you want to use it directly in another project, you can copy tap.c
26 and tap.h there and it shouldn't have a problem compiling.
27
28     $ ls
29     tap.c tap.h test.c
30     $ cat test.c
31     #include "tap.h"
32     int main () {
33         plan(1);
34         ok(50 + 5, "foo %s", "bar");
35         done_testing();
36     }
37     $ gcc test.c tap.c
38     $ a.out
39     1..1
40     ok 1 - foo bar
41