Debian Codegraph @

external/crcutil-1.0/INSTALL

raw
1 Since crcutil is a library, and rather small, template library,
2 it is better to compile it directly into your code. Or you could
3 build a library for interface.cc and use it.
4
5
6 Building and running the tests (Linux/GCC, MacOSX/GCC)
7 ------------------------------------------------------
8
9 Run
10 ./autogen.sh <target> <compiler_flags>
11 or
12 ./autogen.sh <target> "-m32 -march=i686 <compiler_flags>"
13 to build and run 64-bit and 32-bit <target> with GCC.
14
15 Typically, <compiler_flags> is not required.
16
17 Useful values for <target> are:
18 clean
19 configure
20 check
21
22 E.g.
23 ./autogen.sh check
24 will build and run 64-bit unittest, whilst
25 ./autogen.sh clean
26 will clean everything up.
27
28
29 Why ./autogen.sh? Two reasons:
30
31 1. Automake is well beyond my comprehension, and I am unable to create
32 "Makefile.am" consistently. So autogen.sh has that piece of black magic.
33
34 2. autogen.sh detects version of GCC and provides different compile options
35 to work around differences between compiler versions that cannot
36 be detected at compile time.
37
38 You still can do
39 ./configure CXXFLAGS="-O3" CFLAGS="-O3"
40 (if you use GCC before 4.5.0) or
41 ./configure CXXFLAGS="-O3 -mcrc32" CFLAGS="-O3"
42 and then run
43 make check
44 but the use of "./autogen.sh" is the preferred way to go.
45
46
47 Building and running the tests (Windows, CL or ICL compiler)
48 ------------------------------------------------------------
49
50 Run
51 nmake -f Makefile.win cl64
52 or
53 nmake -f Makefile.win cl32
54 or
55 nmake -f Makefile.win icl64
56 or
57 nmake -f Makefile.win icl32
58 to build and 64-bit and 32-bit unit test using
59 Microsoft CL and Intel's ICL compilers respectively.
60
61 Run
62 nmake -f Makefile.win clean
63 to clean everything up.
64
65 [The end of the document]