about summary refs log blame commit diff
path: root/make/examples/aterm/test/default.nix
blob: 8d2bed5fc388d6318c434e4c4fc032e1bcb5cd55 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                           
 
     

                                        


                                                                  

    



                            
 
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)
  ];
}