about summary refs log tree commit diff
path: root/make/examples/aterm/test/default.nix
blob: e59b86b943006f06e43dacfdcd35f6e8472f259e (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; localIncludePath = [ ../aterm ];})];
    libraries = libATerm;
  };

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