30 lines
442 B
Nix
30 lines
442 B
Nix
{sharedLib ? true}:
|
|
|
|
rec {
|
|
|
|
inherit (import ../../../lib) compileC makeLibrary;
|
|
|
|
sources = [
|
|
./afun.c
|
|
./aterm.c
|
|
./bafio.c
|
|
./byteio.c
|
|
./gc.c
|
|
./hash.c
|
|
./list.c
|
|
./make.c
|
|
./md5c.c
|
|
./memory.c
|
|
./tafio.c
|
|
./version.c
|
|
];
|
|
|
|
compile = main: compileC {inherit main sharedLib;};
|
|
|
|
libATerm = makeLibrary {
|
|
libraryName = "ATerm";
|
|
objects = map compile sources;
|
|
inherit sharedLib;
|
|
};
|
|
|
|
}
|