C library for reading (and eventually writing) ASDF files
Let's have something to say here first.
First we'll have to have some (probably libfyaml + headers)
First we'd have to have some.
libasdf's build system is built with the GNU autotools suite. To build this project from source, you'll need the following software installed on your system:
To build this project from source, you'll need the following software installed on your system:
- GNU Autotools (for generating the build system)
autoconf
automake
libtool
(if your project uses it — remove if not)
- C compiler (e.g.,
gcc
orclang
) - Make (e.g.,
GNU make
) - pkg-config
- libfyaml
- argp (this is a feature of glibc, but if compiling with a different libc you need a standalone version of this; also it is only needed if building the command-line tool)
On Debian/Ubuntu:
sudo apt install build-essential autoconf automake libtool pkg-config libfyaml-dev
On Fedora:
sudo dnf install gcc make autoconf automake libtool pkgconf libfyaml-devel
On macOS (with Homebrew):
brew install autoconf automake libtool pkg-config libfyaml argp-standalone
Clone the repository and build the project as follows:
git clone https://github.com/asdf-format/libasdf.git cd libasdf ./autogen.sh ./configure make sudo make install # Optional, installs the binary system-wide
If doing a system install, as usual it's recommended to install to /usr/local
by providing --prefix=/usr/local
when running ./configure
. Or, if you
have a ${HOME}/.local
you can set the prefix there, etc.
- Run
make clean
to clean build artifacts. - Run
./configure --help
to see available configuration options.