summaryrefslogtreecommitdiff
path: root/test/foo
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@gmail.com>2009-02-17 10:48:47 +0000
committerDamien Lespiau <damien.lespiau@gmail.com>2009-02-18 12:19:07 +0000
commit11c87f5814982a0daf47ce4dfcab65853555f555 (patch)
tree241710a62dbe5105b5b909c8e760eb0bbafa464f /test/foo
First import
Signed-off-by: Damien Lespiau <damien.lespiau@gmail.com>
Diffstat (limited to 'test/foo')
-rw-r--r--test/foo/Makefile.am6
-rw-r--r--test/foo/internal/Makefile.am3
-rw-r--r--test/foo/internal/internal-file0.c11
-rw-r--r--test/foo/internal/internal-file0.h1
-rw-r--r--test/foo/lib-file0.c6
-rw-r--r--test/foo/lib-file0.h1
-rw-r--r--test/foo/lib-file1.c6
-rw-r--r--test/foo/lib-file1.h1
8 files changed, 35 insertions, 0 deletions
diff --git a/test/foo/Makefile.am b/test/foo/Makefile.am
new file mode 100644
index 0000000..df71393
--- /dev/null
+++ b/test/foo/Makefile.am
@@ -0,0 +1,6 @@
+lib_LTLIBRARIES = libfoo.la
+
+SUBDIRS = internal
+
+libfoo_la_SOURCES = lib-file0.c lib.file0.h lib-file1.c lib-file1.h
+libfoo_la_LIBADD = internal/libinternal.la
diff --git a/test/foo/internal/Makefile.am b/test/foo/internal/Makefile.am
new file mode 100644
index 0000000..8e29a2b
--- /dev/null
+++ b/test/foo/internal/Makefile.am
@@ -0,0 +1,3 @@
+noinst_LTLIBRARIES = libinternal.la
+
+libinternal_la_SOURCES = internal-file0.c internal-file0.h
diff --git a/test/foo/internal/internal-file0.c b/test/foo/internal/internal-file0.c
new file mode 100644
index 0000000..a3bf9ad
--- /dev/null
+++ b/test/foo/internal/internal-file0.c
@@ -0,0 +1,11 @@
+
+#include "internal-file0.h"
+
+void ns_yet_another_symbol(void)
+{
+ int i;
+
+ for (i = 0; i < 100;)
+ i++;
+}
+
diff --git a/test/foo/internal/internal-file0.h b/test/foo/internal/internal-file0.h
new file mode 100644
index 0000000..c333b3f
--- /dev/null
+++ b/test/foo/internal/internal-file0.h
@@ -0,0 +1 @@
+void ns_yet_another_symbol(void);
diff --git a/test/foo/lib-file0.c b/test/foo/lib-file0.c
new file mode 100644
index 0000000..6ec81e2
--- /dev/null
+++ b/test/foo/lib-file0.c
@@ -0,0 +1,6 @@
+#include "lib-file0.h"
+
+int ns_add(const int a, const int b)
+{
+ return a + b;
+}
diff --git a/test/foo/lib-file0.h b/test/foo/lib-file0.h
new file mode 100644
index 0000000..2893a94
--- /dev/null
+++ b/test/foo/lib-file0.h
@@ -0,0 +1 @@
+int ns_add(const int a, const int b);
diff --git a/test/foo/lib-file1.c b/test/foo/lib-file1.c
new file mode 100644
index 0000000..61eb437
--- /dev/null
+++ b/test/foo/lib-file1.c
@@ -0,0 +1,6 @@
+#include "lib-file1.h"
+
+int ns_sub(const int a, const int b)
+{
+ return a - b;
+}
diff --git a/test/foo/lib-file1.h b/test/foo/lib-file1.h
new file mode 100644
index 0000000..98922c2
--- /dev/null
+++ b/test/foo/lib-file1.h
@@ -0,0 +1 @@
+int ns_sub(const int a, const int b);