summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2010-08-25 03:28:16 -0700
committerDavid Schleef <ds@schleef.org>2010-08-25 03:30:22 -0700
commit1cfa2e7c1b8e4f42a70aa6a59ef78384c93f3139 (patch)
treec857d76f274cacdf8775ea5e0b72a62fce774b69 /examples
parent5e6f2927d0d431eb8da31542b69b3c86fcc07272 (diff)
Fix cross compiling
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile.am14
1 files changed, 9 insertions, 5 deletions
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 56fc257..e3ae583 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -1,5 +1,13 @@
-orcbin_PROGRAMS = example1 example2 example3 mt19937ar
+orcbin_PROGRAMS = mt19937ar
+if CROSS_COMPILING
+else
+orcbin_PROGRAMS += example1 example2 example3 mt19937ar
+
+BUILT_SOURCES = example1orc.c example1orc.h \
+ example2orc.c example2orc.h \
+ example3orc.c example3orc.h
+endif
if ENABLE_BACKEND_MMX
orcbin_PROGRAMS += volscale
@@ -10,10 +18,6 @@ AM_CFLAGS = $(ORC_CFLAGS)
EXTRA_DIST = example1orc.orc example2orc.orc example3orc.orc
-BUILT_SOURCES = example1orc.c example1orc.h \
- example2orc.c example2orc.h \
- example3orc.c example3orc.h
-
CLEANFILES = example1orc.c example1orc.h \
example2orc.c example2orc.h \
example3orc.c example3orc.h