rh-jmc-team / jigawatts

Build a jar file for easier access to CRIU from Java
Other
11 stars 5 forks source link

Bring back a Makefile for building to avoid Maven dependencies #15

Closed gnu-andrew closed 3 years ago

gnu-andrew commented 3 years ago

The required Maven dependencies are not available on all systems, making it difficult to package jigawatts. There is also little control in how the native library is being built in the current Maven build system.

This patch adds a simple autotools-based system which handles CFLAGS, LDFLAGS, etc. and the usual installation prefixes in the standard way. It has passed a make distcheck, meaning the build can produce a tarball and this can then be used to perform a full build and install.

It doesn't currently support the tests, but these can be added as needed. It doesn't seem a good idea until they can be run without root privileges (which makes them unusable in a packaging environment)