aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 5338d33f94263273ea0f1dafe9dc466093b00b92 (plain) (blame)
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
# clak

Another Meccha / mechanical-sound...

## Usage

```sh
$ ./clak <board name>
```

That's it.

## Requirements

Should work on Windows and Linux.

For Linux, specific requirements are:

- Xlib (Fedora: `libX11`)
- XI2 (Fedora: `libXi`)
- SDL2 (Fedora: `SDL2`)
- SDL\_mixer 2 (Fedora: `SDL2_mixer`)

## Building

### Requirements

You need:

- C compiler (tested with gcc)
- make
- xxd

For Windows:

- (Might have other ways, but I've only tested this way)
- MinGW-w64 (via MSYS2)
	- `mingw-w64-x86_64-make`
	- `mingw-w64-x86_64-gcc`
- Note to use `mingw32-make` in place of just `make`

For Linux, also:

- Xlib (Fedora: `libX11-devel`)
- XI2 dev (Fedora: `libXi-devel`)
- SDL2 dev (Fedora: `SDL2-devel`)
- SDL\_mixer 2 dev (Fedora: `SDL2_mixer-devel`)

### Compiling

```sh
$ git clone https://git.windblume.net/pub/nick/clak
$ dnf install libX11-devel libXi-devel SDL2-devel SDL2_mixer-devel
$ make
```

To build the boards:

```sh
$ cd board
$ make
```