diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-08-14 10:19:55 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-08-14 10:19:55 +0000 |
commit | 714b7256cd5a6783813c3d3a7468f36ba637f567 (patch) | |
tree | 7383259dc8998d20ac10142beb96c73816c5b011 /make/examples/aterm/test/default.nix | |
parent | 039936567539c1d6d7a3b824b94726b3fed3343b (diff) |
* Cleanup; sync with thesis.
Diffstat (limited to 'make/examples/aterm/test/default.nix')
-rw-r--r-- | make/examples/aterm/test/default.nix | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/make/examples/aterm/test/default.nix b/make/examples/aterm/test/default.nix index b7a9dd361..8d2bed5fc 100644 --- a/make/examples/aterm/test/default.nix +++ b/make/examples/aterm/test/default.nix @@ -1,18 +1,15 @@ -let { - - inherit (import ../../../lib) compileC link; +with (import ../../../lib); +let { inherit (import ../aterm {}) libATerm; - compile = fn: compileC { - main = fn; - localIncludes = "auto"; - cFlags = "-I../aterm"; + compileTest = main: link { + objects = [(compileC {inherit main; cFlags = "-I../aterm";})]; + libraries = libATerm; }; - fib = link {objects = compile ./fib.c; libraries = libATerm;}; - - primes = link {objects = compile ./primes.c; libraries = libATerm;}; - - body = [fib primes]; + body = [ + (compileTest ./fib.c) + (compileTest ./primes.c) + ]; } |