Add orctest library
authorDavid Schleef <ds@schleef.org>
Wed, 25 Mar 2009 03:04:07 +0000 (20:04 -0700)
committerDavid Schleef <ds@schleef.org>
Wed, 25 Mar 2009 03:05:02 +0000 (20:05 -0700)
Makefile.am
configure.ac
orc-test/Makefile.am [new file with mode: 0644]
orc-test/orctest.c [new file with mode: 0644]
orc-test/orctest.h [new file with mode: 0644]

index d07c02e..4d80439 100644 (file)
@@ -1,7 +1,7 @@
 
 AUTOMAKE_OPTIONS = foreign
 
-SUBDIRS = orc testsuite examples doc tools
+SUBDIRS = orc orc-test testsuite examples doc tools
 
 EXTRA_DIST = COPYING autogen.sh gtk-doc.make
 
index 2e84683..669ec28 100644 (file)
@@ -106,6 +106,8 @@ AC_SUBST(ORC_CFLAGS)
 ORC_LIBS="\$(top_builddir)/orc/liborc-$ORC_MAJORMINOR.la $LIBM $LIBRT"
 AC_SUBST(ORC_LIBS)
 
+#CFLAGS=`echo $CFLAGS | sed s/O2/O0/`
+
 pkgconfigdir="\$(libdir)/pkgconfig"
 AC_SUBST(pkgconfigdir)
 
@@ -113,6 +115,7 @@ AC_CONFIG_FILES([
 Makefile 
 doc/Makefile
 orc/Makefile
+orc-test/Makefile
 testsuite/Makefile
 examples/Makefile
 tools/Makefile
diff --git a/orc-test/Makefile.am b/orc-test/Makefile.am
new file mode 100644 (file)
index 0000000..f4e5acb
--- /dev/null
@@ -0,0 +1,16 @@
+
+pkgincludedir = $(includedir)/orc-@ORC_MAJORMINOR@/orc-test
+
+lib_LTLIBRARIES = liborc-test-@ORC_MAJORMINOR@.la
+
+liborc_test_@ORC_MAJORMINOR@_la_LIBS = $(ORC_LIBS)
+liborc_test_@ORC_MAJORMINOR@_la_LDFLAGS = \
+       -no-undefined -export-symbols-regex 'orc_'
+liborc_test_@ORC_MAJORMINOR@_la_CFLAGS = $(ORC_CFLAGS)
+
+liborc_test_@ORC_MAJORMINOR@_la_SOURCES = \
+       orctest.c
+
+pkginclude_HEADERS = \
+       orctest.h
+
diff --git a/orc-test/orctest.c b/orc-test/orctest.c
new file mode 100644 (file)
index 0000000..64fb0b3
--- /dev/null
@@ -0,0 +1,10 @@
+
+#include <orc-test/orctest.h>
+
+
+void
+orc_test_init (void)
+{
+
+}
+
diff --git a/orc-test/orctest.h b/orc-test/orctest.h
new file mode 100644 (file)
index 0000000..6b08953
--- /dev/null
@@ -0,0 +1,15 @@
+
+#ifndef _ORC_TEST_TEST_H_
+#define _ORC_TEST_TEST_H_
+
+#include <orc/orc.h>
+#include <orc/orcutils.h>
+
+ORC_BEGIN_DECLS
+
+void orc_test_init (void);
+
+ORC_END_DECLS
+
+#endif
+