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

















                                                                      
let {

  inherit (import ../../../lib) compileC link;

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

  compile = fn: compileC {
    main = fn;
    localIncludes = "auto";
    cFlags = "-I../aterm";
  };

  fib = link {objects = compile ./fib.c; libraries = libATerm;};

  primes = link {objects = compile ./primes.c; libraries = libATerm;};
  
  body = [fib primes];
}