~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: f8217ec4aa2d5b725a29796f257d50bcaa019fab (plain)
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
Compile

You have 2 choices:

* compile each utility separately;

* compile only fasesiab which includes all utilities in a single binary.

Modify the `config.mk` file to fit your needs in both cases.

Compiling each utility separately
---------------------------------
For example to compile `cat`, you have to run the following:

	$ cd core/
	$ make cat

And to compile a non-POSIX utility such as `yes`, you have to run the 
following:

	$ cd extras/
	$ make yes

Compiling fases box
-------------------
`fases box` includes the entire collection of utilities `fases` provides 
in a single and tiny binary suitable for use in embedded systems.

Before compiling, you have to prepare `fases box`.
The `box.c` file should already contain some code but it may be outdated 
so it's recommended to regenerate it:

	$ make genbox

Next, run the following:

	$ make prepbox

Now you're ready to compile! Run `make` and get a binary!

	$ make box

Installation
------------
To install `fases box`, simply run the following *as root*:

	# make install-box

Or, if you want to install all utilities separately:

	# make install

Then, you should have a binary called `box`. Make sure `/usr/local/bin/` or 
whatever `DESTDIR` and `PREFIX` you set is in your `$PATH`.