about summary refs log tree commit diff
path: root/make/examples
diff options
context:
space:
mode:
Diffstat (limited to 'make/examples')
-rw-r--r--make/examples/aterm/aterm/default.nix30
-rw-r--r--make/examples/aterm/default.nix1
-rw-r--r--make/examples/aterm/test/default.nix15
-rw-r--r--make/examples/default.nix6
-rw-r--r--make/examples/not-so-simple-header-auto/bar/hello.h1
-rw-r--r--make/examples/not-so-simple-header-auto/default.nix13
-rw-r--r--make/examples/not-so-simple-header-auto/foo/fnord/indirect.h3
-rw-r--r--make/examples/not-so-simple-header-auto/foo/hello.c9
-rw-r--r--make/examples/not-so-simple-header/bar/hello.h1
-rw-r--r--make/examples/not-so-simple-header/default.nix14
-rw-r--r--make/examples/not-so-simple-header/foo/fnord/indirect.h3
-rw-r--r--make/examples/not-so-simple-header/foo/hello.c9
-rw-r--r--make/examples/simple-header/default.nix11
-rw-r--r--make/examples/simple-header/hello.c9
-rw-r--r--make/examples/simple-header/hello.h1
-rw-r--r--make/examples/trivial/default.nix8
-rw-r--r--make/examples/trivial/hello.c7
17 files changed, 0 insertions, 141 deletions
diff --git a/make/examples/aterm/aterm/default.nix b/make/examples/aterm/aterm/default.nix
deleted file mode 100644
index 56e830c84af4..000000000000
--- a/make/examples/aterm/aterm/default.nix
+++ /dev/null
@@ -1,30 +0,0 @@
-{sharedLib ? true}:
-
-rec {
-
-  inherit (import ../../../lib) compileC makeLibrary;
-
-  sources = [
-    ./afun.c
-    ./aterm.c
-    ./bafio.c
-    ./byteio.c
-    ./gc.c
-    ./hash.c
-    ./list.c
-    ./make.c
-    ./md5c.c
-    ./memory.c
-    ./tafio.c
-    ./version.c
-  ];
-
-  compile = main: compileC {inherit main sharedLib;};
-
-  libATerm = makeLibrary {
-    libraryName = "ATerm";
-    objects = map compile sources;
-    inherit sharedLib;
-  };
-
-}
diff --git a/make/examples/aterm/default.nix b/make/examples/aterm/default.nix
deleted file mode 100644
index edaac40aa499..000000000000
--- a/make/examples/aterm/default.nix
+++ /dev/null
@@ -1 +0,0 @@
-import test/default.nix
\ No newline at end of file
diff --git a/make/examples/aterm/test/default.nix b/make/examples/aterm/test/default.nix
deleted file mode 100644
index e59b86b94300..000000000000
--- a/make/examples/aterm/test/default.nix
+++ /dev/null
@@ -1,15 +0,0 @@
-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)
-  ];
-}
diff --git a/make/examples/default.nix b/make/examples/default.nix
deleted file mode 100644
index 8b5b8bca5efc..000000000000
--- a/make/examples/default.nix
+++ /dev/null
@@ -1,6 +0,0 @@
-[ (import ./trivial)
-  (import ./simple-header)
-  (import ./not-so-simple-header)
-  (import ./not-so-simple-header-auto)
-  (import ./aterm)
-]
\ No newline at end of file
diff --git a/make/examples/not-so-simple-header-auto/bar/hello.h b/make/examples/not-so-simple-header-auto/bar/hello.h
deleted file mode 100644
index 4595fad98d43..000000000000
--- a/make/examples/not-so-simple-header-auto/bar/hello.h
+++ /dev/null
@@ -1 +0,0 @@
-#define WHAT "World"
diff --git a/make/examples/not-so-simple-header-auto/default.nix b/make/examples/not-so-simple-header-auto/default.nix
deleted file mode 100644
index 521af7e89fc4..000000000000
--- a/make/examples/not-so-simple-header-auto/default.nix
+++ /dev/null
@@ -1,13 +0,0 @@
-with import ../../lib;
-
-let {
-
-  hello = link {programName = "hello"; objects = compileC {
-    main = ./foo/hello.c;
-    localIncludes = "auto";
-  };};
-
-#  body = findIncludes {main = ./foo/hello.c;};
-
-  body = [hello];
-}
diff --git a/make/examples/not-so-simple-header-auto/foo/fnord/indirect.h b/make/examples/not-so-simple-header-auto/foo/fnord/indirect.h
deleted file mode 100644
index 2fde1e26c1dd..000000000000
--- a/make/examples/not-so-simple-header-auto/foo/fnord/indirect.h
+++ /dev/null
@@ -1,3 +0,0 @@
-#define HELLO "Hello"
-
-#include "../../bar/hello.h"
diff --git a/make/examples/not-so-simple-header-auto/foo/hello.c b/make/examples/not-so-simple-header-auto/foo/hello.c
deleted file mode 100644
index 7d5b402ce5c2..000000000000
--- a/make/examples/not-so-simple-header-auto/foo/hello.c
+++ /dev/null
@@ -1,9 +0,0 @@
-#include <stdio.h>
-
-#include "fnord/indirect.h"
-
-int main(int argc, char * * argv)
-{
-    printf(HELLO " " WHAT "\n");
-    return 0;
-}
diff --git a/make/examples/not-so-simple-header/bar/hello.h b/make/examples/not-so-simple-header/bar/hello.h
deleted file mode 100644
index 4595fad98d43..000000000000
--- a/make/examples/not-so-simple-header/bar/hello.h
+++ /dev/null
@@ -1 +0,0 @@
-#define WHAT "World"
diff --git a/make/examples/not-so-simple-header/default.nix b/make/examples/not-so-simple-header/default.nix
deleted file mode 100644
index 61ded57c82bb..000000000000
--- a/make/examples/not-so-simple-header/default.nix
+++ /dev/null
@@ -1,14 +0,0 @@
-let {
-
-  inherit (import ../../lib) compileC link;
-
-  hello = link {programName = "hello"; objects = compileC {
-    main = ./foo/hello.c;
-    localIncludes = [
-      [./foo/fnord/indirect.h "fnord/indirect.h"]
-      [./bar/hello.h "fnord/../../bar/hello.h"]
-    ];
-  };};
-
-  body = [hello];
-}
diff --git a/make/examples/not-so-simple-header/foo/fnord/indirect.h b/make/examples/not-so-simple-header/foo/fnord/indirect.h
deleted file mode 100644
index 2fde1e26c1dd..000000000000
--- a/make/examples/not-so-simple-header/foo/fnord/indirect.h
+++ /dev/null
@@ -1,3 +0,0 @@
-#define HELLO "Hello"
-
-#include "../../bar/hello.h"
diff --git a/make/examples/not-so-simple-header/foo/hello.c b/make/examples/not-so-simple-header/foo/hello.c
deleted file mode 100644
index 7d5b402ce5c2..000000000000
--- a/make/examples/not-so-simple-header/foo/hello.c
+++ /dev/null
@@ -1,9 +0,0 @@
-#include <stdio.h>
-
-#include "fnord/indirect.h"
-
-int main(int argc, char * * argv)
-{
-    printf(HELLO " " WHAT "\n");
-    return 0;
-}
diff --git a/make/examples/simple-header/default.nix b/make/examples/simple-header/default.nix
deleted file mode 100644
index e943471aaa4c..000000000000
--- a/make/examples/simple-header/default.nix
+++ /dev/null
@@ -1,11 +0,0 @@
-let {
-
-  inherit (import ../../lib) compileC link;
-
-  hello = link {objects = compileC {
-    main = ./hello.c;
-    localIncludes = [ [./hello.h "hello.h"] ];
-  };};
-
-  body = [hello];
-}
diff --git a/make/examples/simple-header/hello.c b/make/examples/simple-header/hello.c
deleted file mode 100644
index 15f1ac714e10..000000000000
--- a/make/examples/simple-header/hello.c
+++ /dev/null
@@ -1,9 +0,0 @@
-#include <stdio.h>
-
-#include "hello.h"
-
-int main(int argc, char * * argv)
-{
-    printf("Hello " WHAT "\n");
-    return 0;
-}
diff --git a/make/examples/simple-header/hello.h b/make/examples/simple-header/hello.h
deleted file mode 100644
index 4595fad98d43..000000000000
--- a/make/examples/simple-header/hello.h
+++ /dev/null
@@ -1 +0,0 @@
-#define WHAT "World"
diff --git a/make/examples/trivial/default.nix b/make/examples/trivial/default.nix
deleted file mode 100644
index 132245e5823f..000000000000
--- a/make/examples/trivial/default.nix
+++ /dev/null
@@ -1,8 +0,0 @@
-let {
-
-  inherit (import ../../lib) compileC link;
-
-  hello = link {objects = compileC {main = ./hello.c;};};
-
-  body = [hello];
-}
diff --git a/make/examples/trivial/hello.c b/make/examples/trivial/hello.c
deleted file mode 100644
index 237ad8ffe76f..000000000000
--- a/make/examples/trivial/hello.c
+++ /dev/null
@@ -1,7 +0,0 @@
-#include <stdio.h>
-
-int main(int argc, char * * argv)
-{
-    printf("Hello World\n");
-    return 0;
-}