about summary refs log tree commit diff
path: root/make/examples/aterm/test/default.nix
blob: 8d2bed5fc388d6318c434e4c4fc032e1bcb5cd55 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
with (import ../../../lib);

let {
  inherit (import ../aterm {}) libATerm;

  compileTest = main: link {
    objects = [(compileC {inherit main; cFlags = "-I../aterm";})];
    libraries = libATerm;
  };

  body = [
    (compileTest ./fib.c)
    (compileTest ./primes.c)
  ];
}