This is a translator from C header files to another language.
- GMP
- MPFR
- Objective Caml >= 4.11
- OCamlbuild
- Or ocamlmake
- Docutils (optional, only used for the manual page)
Please clone from github with --recursive
option because some submodules exists in this repository.
git clone --recursive git://github.com/ytomino/headmaster.git
"headmaster" command is a translator.
Run make
to install the command and the manual page: :
make -C main install PREFIX=$HOME/opt/headmaster
Or, to install only the command: :
make -C main install-bin BINDIR=$HOME/bin
These destination paths are only instances.
PREFIX=...
Specify the toplevel installation directory.
BINDIR=...
(the default is$PREFIX/bin
)Specify the directory that the executable file should be copied to.
MANDIR=...
(the default is$PREFIX/share/man
)Specify the directory that the manual page should be copied to.
WITH_GMP=...
Specify GMP directory. (e.g.
WITH_GMP=/opt/gmp
, then/opt/gmp/include
and/opt/gmp/lib
would be used.)WITH_MPFR=...
Specify MPFR directory.
"hmcpp" command is a simple C preprocessor based on "headmaster" for purpose to check myself. It is NOT satisfied all ANSI-C specifications. Please do NOT use it (except searching bugs of "headmaster").
Run make
to install the command: :
make -C examples/hmcpp install-bin BINDIR=$HOME/bin