summaryrefslogtreecommitdiff
path: root/examples/Makefile.am
blob: e3ae58363f5ca71f668e75563490100b3cf5fc84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51

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
endif

AM_LDFLAGS = $(ORC_LIBS)
AM_CFLAGS = $(ORC_CFLAGS)

EXTRA_DIST = example1orc.orc example2orc.orc example3orc.orc

CLEANFILES = example1orc.c example1orc.h \
	example2orc.c example2orc.h \
	example3orc.c example3orc.h

example1_SOURCES = example1.c
nodist_example1_SOURCES = example1orc.c example1orc.h
example2_SOURCES = example2.c
nodist_example2_SOURCES = example2orc.c example2orc.h
example3_SOURCES = example3.c
nodist_example3_SOURCES = example3orc.c example3orc.h


example1orc.c: $(srcdir)/example1orc.orc
	$(top_builddir)/tools/orcc$(EXEEXT) --implementation -o example1orc.c $(srcdir)/example1orc.orc
	
example1orc.h: $(srcdir)/example1orc.orc
	$(top_builddir)/tools/orcc$(EXEEXT) --header -o example1orc.h $(srcdir)/example1orc.orc

example2orc.c: $(srcdir)/example2orc.orc
	$(top_builddir)/tools/orcc$(EXEEXT) --implementation -o example2orc.c $(srcdir)/example2orc.orc

example2orc.h: $(srcdir)/example2orc.orc
	$(top_builddir)/tools/orcc$(EXEEXT) --header -o example2orc.h $(srcdir)/example2orc.orc

example3orc.c: $(srcdir)/example3orc.orc
	$(top_builddir)/tools/orcc$(EXEEXT) --implementation -o example3orc.c $(srcdir)/example3orc.orc

example3orc.h: $(srcdir)/example3orc.orc
	$(top_builddir)/tools/orcc$(EXEEXT) --header -o example3orc.h $(srcdir)/example3orc.orc