Initial commit to Gerrit
[profile/ivi/orc.git] / testsuite / orcc / Makefile.am
1
2 if CROSS_COMPILING
3 else
4 TESTS = orc_test test2 test3
5
6 noinst_PROGRAMS = orc_test test2 test3
7
8 BUILT_SOURCES = testorc.c testorc.h orc_test.c
9 endif
10
11 test2_SOURCES = test2.c testorc.c
12
13 test3_SOURCES = test3.c testorc.c
14 test3_CFLAGS = -DDISABLE_ORC
15
16 AM_CFLAGS = $(ORC_CFLAGS)
17 LIBS = $(ORC_LIBS) $(top_builddir)/orc-test/liborc-test-@ORC_MAJORMINOR@.la
18
19 CLEANFILES = testorc.c testorc.h orc_test.c
20
21 testorc.h: $(srcdir)/../test.orc
22         $(top_builddir)/tools/orcc$(EXEEXT) --include stdint.h --header -o testorc.h $<
23
24 testorc.c: $(srcdir)/../test.orc
25         $(top_builddir)/tools/orcc$(EXEEXT) --include stdint.h --implementation -o testorc.c $<
26
27 orc_test.c: $(srcdir)/../test.orc
28         $(top_builddir)/tools/orcc$(EXEEXT) --include stdint.h --test -o orc_test.c $<
29
30