Create a test.yml for this project. It highlighted that: - BSD make is required - cmocka is called libcmocka-dev on debian - Linux builds require -fPIC
|12 months ago|
|.github/workflows||12 months ago|
|.hgtags||1 year ago|
|Makefile||1 year ago|
|README.md||1 year ago|
|TODO.md||1 year ago|
|config.h||2 years ago|
|test.c||1 year ago|
|uuid.c||2 years ago|
|uuid.h||2 years ago|
|version.mk||1 year ago|
This is a minimal drop in replacement of the linux-utils libuuid for platforms that are neither GNU nor Linux.
The GUID:s generated by this library don't attempt to be cryptographically secure in any way, it just makes the stupid libraries that depend on in that in no way need to have good entropy work.
- uuid_generate (macro of uuid_generate_random)
Normally it should be the usual
$ make # make install
..but on some platforms you may need to explicitly add CFLAGS=-fPIC
The Makefile allows you to override RM, LD, CC, CFLAGS, LDFLAGS, INSTALL, LIB_SUFFIX and of course PREFIX to change build/install parameters.
libuuid now uses cmocka for testing, use
make test to compile and run the unit tests.
Available make flags are CMOCKA_LDFLAGS and CMOCKA_CFLAGS to locate the include and lib files. In the future this may be replaced by pkg-config.