From 714b7256cd5a6783813c3d3a7468f36ba637f567 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 14 Aug 2005 10:19:55 +0000 Subject: * Cleanup; sync with thesis. --- make/examples/aterm/aterm/default.nix | 6 +----- make/examples/aterm/test/default.nix | 21 +++++++++------------ 2 files changed, 10 insertions(+), 17 deletions(-) (limited to 'make/examples') diff --git a/make/examples/aterm/aterm/default.nix b/make/examples/aterm/aterm/default.nix index 8b139219e916..56e830c84af4 100644 --- a/make/examples/aterm/aterm/default.nix +++ b/make/examples/aterm/aterm/default.nix @@ -19,11 +19,7 @@ rec { ./version.c ]; - compile = fn: compileC { - main = fn; - localIncludes = "auto"; - forSharedLib = sharedLib; - }; + compile = main: compileC {inherit main sharedLib;}; libATerm = makeLibrary { libraryName = "ATerm"; diff --git a/make/examples/aterm/test/default.nix b/make/examples/aterm/test/default.nix index b7a9dd361977..8d2bed5fc388 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) + ]; } -- cgit 1.4.1