Currently, Mlucas uses no makefile because it is relatively simple to build. But since I want to package it for Debian, we need some sort of build system. So I decided to use
autotools (
autoconf and
automake) to build Mlucas.
The tough part is to learn the basics, but thanks to the tutorials (
Autotools Mythbuster and
video tutorial), I kind of understand them now. The GNU manuals for autoconf and automake are useful but you need to learn the basics first.
HOW TO BUILD:
OK. So actually I have made 3 files, configure.ac, Makefile.am and m4/sources_list.m4
(configure.ac is actually made by using the template created by autoscan after it scans the source code)
Other files are created by running autoreconf -i
1. Fetch the code from git,
Code:
$ git clone https://gitorious.org/mlucas/mlucas.git
2. To build Mlucas type
Code:
$ cd mlucas && mkdir build && cd build && ../configure && make
3. To show the help menu,
Code:
$ ./mlucas -h 2>&1 | less
4. Currently, make, make clean, make distclean and make dist are tested and worked
FEATURE: (to be added later)
TODO: (to be added later)