make sure we set TRUE or FALSE, and not something else
[swfdec.git] / test / Makefile.am
blob886f98078cf8e90c85563c79de02fbc6fdc43121
1 SUBDIRS = custom image sound trace various gnash
3 noinst_PROGRAMS = swfdec-test
5 if WITH_GTK
6 swfdec_gtk_test_sources = \
7         swfdec_test_http_request.c \
8         swfdec_test_http_server.c
9 else
10 swfdec_gtk_test_sources =
11 endif
13 swfdec_test_sources = \
14         swfdec_test.c \
15         swfdec_test_buffer.c \
16         swfdec_test_function.c \
17         swfdec_test_global.c \
18         swfdec_test_image.c \
19         swfdec_test_plugin.c \
20         swfdec_test_socket.c \
21         swfdec_test_swfdec_socket.c \
22         swfdec_test_test.c \
23         swfdec_test_utils.c
25 BUILT_SOURCES = \
26         swfdec_test_function_list.h
28 CLEANFILES = \
29         $(BUILT_SOURCES)
31 swfdec_test_SOURCES = \
32         $(swfdec_test_sources) \
33         $(BUILT_SOURCES)
35 EXTRA_DIST = \
36         swfdec_test_initialize.as
38 noinst_HEADERS = \
39         swfdec_test_buffer.h \
40         swfdec_test_function.h \
41         swfdec_test_function_list.h \
42         swfdec_test_http_request.h \
43         swfdec_test_http_server.h \
44         swfdec_test_image.h \
45         swfdec_test_initialize.h \
46         swfdec_test_plugin.h \
47         swfdec_test_socket.h \
48         swfdec_test_swfdec_socket.h \
49         swfdec_test_test.h \
50         swfdec_test_utils.h
51         
52 swfdec_test_CFLAGS = $(GLOBAL_CFLAGS) $(GTK_CFLAGS) $(SWFDEC_CFLAGS) $(CAIRO_CFLAGS)
53 swfdec_test_LDFLAGS = $(SWFDEC_LIBS) $(GTK_LIBS) $(CAIRO_LIBS)
55 swfdec_test_function_list.h: $(swfdec_test_sources)
56         (cd $(srcdir) \
57           && grep -he "^SWFDEC_TEST_FUNCTION" $(swfdec_test_sources) \
58          ) >> xgen-sfl \
59         && (cmp -s xgen-sfl swfdec_test_function_list.h || cp xgen-sfl swfdec_test_function_list.h) \
60         && rm -f xgen-sfl