-
Notifications
You must be signed in to change notification settings - Fork 1
/
INSTALL
60 lines (36 loc) · 1.33 KB
/
INSTALL
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
Welcome to ZBatt,
# Building
Unix-like systems, enter the `nix' directory and run:
1. autoreconf -fi
2. ./configure
3. make
Windows systems, enter the `win' directory and run:
1. autoreconf -fi
2. ./configure
3. make
Some configure options worth noting:
1. --enable-debug, --disable-debug
Turns on/off debug messages (disabled by default)
I recommend using this option, or going into `src/main.h` and setting
`ZB_DEBUG' to 0, since I sometimes forget to turn off debugging
when I make a release.
> # ifndef ZB_DEBUG
> # define ZB_DEBUG 1
> # endif
2. --without-gtk2, --with-gtk2
Enables/disables building ZBatt's graphical frontend (enabled by default)
3. --enable-native, --disable-native
Enables/disables the `-march=native' `-mtune=native' options to the compiler (enabled by default)
If your compiler doesn't support these options, disable them.
4. --enable-generic, --disable-generic
Enables/disables compilation for your system's generic processor type (disabled by default)
To build ZBatt, run:
autoreconf -i
./configure --disable-debug
make
# Installation
After building ZBatt, install it thusly:
make install
NOTE: you can use `DESTDIR' to specify a particular installation directory.
If you have any problems, find a bug, or would like to provide feedback:
please send an email to <agm2819*gmail*>