summaryrefslogtreecommitdiff
path: root/examples/Makefile.am
blob: c6c9944f257fb1ab0fbee3adf75a039153447df0 (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
52
53
54
55
56
57
58
59
60
61

noinst_PROGRAMS = 
if CROSS_COMPILING
else
noinst_PROGRAMS += example1 example2 example3 mt19937ar

BUILT_SOURCES = example1orc.c example1orc.h \
	example2orc.c example2orc.h \
	example3orc.c example3orc.h \
	mt19937arorc.c mt19937arorc.h
endif

if ENABLE_BACKEND_MMX
noinst_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 \
	mt19937arorc.c mt19937arorc.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
mt19937ar_SOURCES = mt19937ar.c
nodist_mt19937ar_SOURCES = mt19937arorc.c mt19937arorc.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

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

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