1
noinst_PROGRAMS = test-parser
3
test_parser_SOURCES = test-parser.c
5
test_parser_CPPFLAGS = \
7
-I$(top_builddir)/src/plparser \
8
-DGNOMELOCALEDIR=\""$(datadir)/locale"\"\
11
test_parser_CFLAGS = \
12
$(EXTRA_GNOME_CFLAGS) \
21
lib_LTLIBRARIES = libtotem-plparser.la
22
noinst_LTLIBRARIES = libtotem-plparser-mini.la
24
MARSHALFILES = totemplparser-marshal.c totemplparser-marshal.h
25
BUILT_SOURCES = $(MARSHALFILES)
27
totemplparser-marshal.c: totemplparser-marshal.h
28
( $(GLIB_GENMARSHAL) --prefix=totemplparser_marshal $(srcdir)/totemplparser-marshal.list --header --body > totemplparser-marshal.c )
29
totemplparser-marshal.h: totemplparser-marshal.list
30
( $(GLIB_GENMARSHAL) --prefix=totemplparser_marshal $(srcdir)/totemplparser-marshal.list --header > totemplparser-marshal.h )
32
plparserincludedir = $(includedir)/totem/1/plparser
33
plparserinclude_HEADERS = \
34
totem-pl-parser-builtins.h \
35
totem-pl-parser-features.h \
39
libtotem_plparser_la_SOURCES = \
40
totem-pl-parser-builtins.c \
41
totemplparser-marshal.c \
42
totemplparser-marshal.h \
46
libtotem_plparser_la_CPPFLAGS = \
48
-I$(top_builddir)/src/plparser \
49
-DGNOMELOCALEDIR=\""$(datadir)/locale"\"\
52
libtotem_plparser_la_CFLAGS = \
53
$(EXTRA_GNOME_CFLAGS) \
58
libtotem_plparser_la_LIBADD = \
59
$(TOTEM_PLPARSER_LIBS) \
62
libtotem_plparser_la_LDFLAGS = \
63
-version-info $(PLPARSER_LT_VERSION) \
67
libtotem_plparser_mini_la_SOURCES = \
68
totem-pl-parser-mini.h \
71
libtotem_plparser_mini_la_CPPFLAGS = \
73
-I$(top_builddir)/src/plparser \
74
-DTOTEM_PL_PARSER_MINI \
77
libtotem_plparser_mini_la_CFLAGS = \
78
$(TOTEM_PLPARSER_MINI_CFLAGS) \
81
libtotem_plparser_mini_la_LIBADD = \
82
$(TOTEM_PLPARSER_MINI_LIBS)
84
libtotem_plparser_mini_la_LDFLAGS = \
88
totem-pl-parser-builtins.h: stamp-totem-pl-parser-builtins.h
91
stamp-totem-pl-parser-builtins.h: totem-pl-parser.h Makefile
92
(cd $(srcdir) && $(GLIB_MKENUMS) \
93
--fhead "#ifndef __TOTEM_PL_PARSER_BUILTINS_H__\n#define __TOTEM_PL_PARSER_BUILTINS_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
94
--fprod "/* enumerations from \"@filename@\" */\n" \
95
--vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define TOTEM_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
96
--ftail "G_END_DECLS\n\n#endif /* __TOTEM_PL_PARSER_BUILTINS_H__ */" totem-pl-parser.h) >> xgen-gtbh \
97
&& (cmp -s xgen-gtbh totem-pl-parser-builtins.h || cp xgen-gtbh totem-pl-parser-builtins.h ) \
99
&& echo timestamp > $(@F)
101
totem-pl-parser-builtins.c: totem-pl-parser.h Makefile totem-pl-parser-builtins.h
102
(cd $(srcdir) && $(GLIB_MKENUMS) \
103
--fhead "#include \"totem-pl-parser.h\"\n#include \"totem-pl-parser-builtins.h\"" \
104
--fprod "\n/* enumerations from \"@filename@\" */" \
105
--vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \
106
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
107
--vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
108
totem-pl-parser.h ) > xgen-gtbc \
109
&& cp xgen-gtbc totem-pl-parser-builtins.c \
113
totem-pl-parser-builtins.h \
114
totem-pl-parser-builtins.c \
115
stamp-totem-pl-parser-builtins.h \
119
totemplparser-marshal.list \
120
totem-pl-parser-features.h.in