forked from lix-project/lix
31 lines
442 B
Nix
31 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;
|
|
};
|
|
|
|
}
|