File: INSTALL

package info (click to toggle)
hashcash 1.17-1sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 856 kB
  • ctags: 866
  • sloc: ansic: 8,429; perl: 925; sh: 298; makefile: 221; python: 41
file content (63 lines) | stat: -rw-r--r-- 1,526 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
COMPILING

To compile type:

	make

to see a list of platforms.  Current platforms are:

	x86, mingw, mingw-dll, g3-osx, ppc-linux, generic

Choose platform (or generic if your platform is not listed) and then
type:

	make <platform>

to use the openssl SHA1 implementation rather than builtin:

	make <platform> CFLAGS=-DOPENSSL LDFLAGS=-lcrypto

Note: if you are using the libhashcash.a or linking with other
software that uses openssl, you will want to compile it this way or
you will get conflicts with function names.

COMPILING WINDOWS

Note the mingw target is using the minimum gnu for windows
(http://www.mingw.org) system.  On that system you have to type:

	mingw32-make mingw

to build win32 executables.

COMPILING WINDOWS DLL

The windows HASHCASH.DLL is also built using mingw:

	mingw32-make mingw-dll

builds a win32 HASHCASH.DLL and HASHCASH.LIB (and a HASHCASH.EXE win32
app that relies on the HASHCASH.DLL)

INSTALLING

To install the compiled binaries type:

	make install

(obviously install that doesn't work on windows, unix only).

This will install the binaries sha1 and hashcash in /usr/local/bin,
and the man page hashcash.1 in /usr/local/man/man1.

To change the binary installation location change the INSTALL_PATH in
the Makefile.  To change the man page installation location change the
MAN_INSTALL_PATH in the Makefile.

For usage information see the man page.

CUSTOM CC OPTIMIZER FLAGS

To override the COPT argument without editing the Makefile do:

	make "COPT=-O3 -my-optimization-flags"