Debian Codegraph @

INSTALL

raw
1 COMPILING
2
3 To compile type:
4
5 make
6
7 to see a list of platforms. Current platforms are:
8
9 x86, mingw, mingw-dll, g3-osx, ppc-linux, generic
10
11 Choose platform (or generic if your platform is not listed) and then
12 type:
13
14 make <platform>
15
16 to use the openssl SHA1 implementation rather than builtin:
17
18 make <platform>-openssl
19
20 (ie the platform names with the -openssl suffix link to the openssl
21 SHA1 implementation).
22
23 Note: if you are using the libhashcash.a or linking hashcash with
24 other software that uses openssl, you will want to compile hashcash to
25 also use openssl or you will get conflicts with SHA1 function names.
26
27 COMPILING WINDOWS
28
29 Note the mingw target is using the minimum gnu for windows
30 (http://www.mingw.org) system. On that system you have to type:
31
32 mingw32-make mingw
33
34 to build win32 executables.
35
36 COMPILING WINDOWS DLL
37
38 The windows HASHCASH.DLL is also built using mingw:
39
40 mingw32-make mingw-dll
41
42 builds a win32 HASHCASH.DLL and HASHCASH.LIB (and a HASHCASH.EXE win32
43 app that relies on the HASHCASH.DLL)
44
45 INSTALLING
46
47 To install the compiled binaries type:
48
49 make install
50
51 (obviously install that doesn't work on windows, unix only).
52
53 This will install the binaries sha1 and hashcash in /usr/local/bin,
54 and the man page hashcash.1 in /usr/local/man/man1.
55
56 To change the binary installation location change the INSTALL_PATH in
57 the Makefile. To change the man page installation location change the
58 MAN_INSTALL_PATH in the Makefile.
59
60 For usage information see the man page.
61
62 CUSTOM CC OPTIMIZER FLAGS
63
64 To override the COPT argument without editing the Makefile do:
65
66 make "COPT=-O3 -my-optimization-flags"