Makefile.am 5.82 KB
Newer Older
1 2 3 4 5 6
noinst_PROGRAMS = test-parser disc-test

test_parser_SOURCES = test-parser.c

test_parser_CPPFLAGS = \
	-I$(top_srcdir)			\
7
	-I$(top_srcdir)/lib		\
Bastien Nocera's avatar
Bastien Nocera committed
8
	-I$(top_builddir)/plparse	\
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
	-DGNOMELOCALEDIR=\""$(datadir)/locale"\"\
	$(DISABLE_DEPRECATED)		\
	$(AM_CPPFLAGS)

test_parser_CFLAGS = \
	$(TOTEM_PLPARSER_CFLAGS)\
	$(HAL_CFLAGS)		\
	$(DBUS_CFLAGS)		\
	$(WARN_CFLAGS)		\
	$(AM_CFLAGS)

test_parser_LDADD = \
	$(TOTEM_PLPARSER_LIBS) \
	libtotem-plparser.la

disc_test_SOURCES = \
	disc-test.c

disc_test_CPPFLAGS = \
	$(common_defines)	\
	$(AM_CPPFLAGS)

disc_test_CFLAGS = \
	$(WARN_CFLAGS)		\
	$(TOTEM_PLPARSER_CFLAGS)\
	$(AM_CFLAGS)

disc_test_LDFLAGS = \
	$(AM_LDFLAGS)

disc_test_LDADD = \
	libtotem-plparser.la	\
	$(TOTEM_PLPARSER_LIBS)

lib_LTLIBRARIES = libtotem-plparser.la libtotem-plparser-mini.la

MARSHALFILES = totemplparser-marshal.c totemplparser-marshal.h
BUILT_SOURCES = $(MARSHALFILES)

totemplparser-marshal.c: totemplparser-marshal.h
49
	 ( $(GLIB_GENMARSHAL) --prefix=totemplparser_marshal $(srcdir)/totemplparser-marshal.list --header --body --internal > totemplparser-marshal.c )
50
totemplparser-marshal.h: totemplparser-marshal.list
51
	( $(GLIB_GENMARSHAL) --prefix=totemplparser_marshal $(srcdir)/totemplparser-marshal.list --header --internal > totemplparser-marshal.h )
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92

plparserincludedir = $(pkgincludedir)/1/plparser
plparserinclude_HEADERS =			\
	totem-pl-parser-builtins.h		\
	totem-pl-parser-features.h		\
	totem-pl-parser.h			\
	totem-disc.h				\
	totem-pl-parser-mini.h

libtotem_plparser_la_SOURCES =			\
	totem-disc.c				\
	totem-disc.h				\
	totem-pl-parser-builtins.c		\
	totem-pl-parser-builtins.h		\
	totem-pl-parser.c			\
	totem-pl-parser-features.h		\
	totem-pl-parser.h			\
	totem-pl-parser-lines.c			\
	totem-pl-parser-lines.h			\
	totemplparser-marshal.c			\
	totemplparser-marshal.h			\
	totem-pl-parser-media.c			\
	totem-pl-parser-media.h			\
	totem-pl-parser-misc.c			\
	totem-pl-parser-misc.h			\
	totem-pl-parser-pla.c			\
	totem-pl-parser-pla.h			\
	totem-pl-parser-pls.c			\
	totem-pl-parser-pls.h			\
	totem-pl-parser-podcast.c		\
	totem-pl-parser-podcast.h		\
	totem-pl-parser-private.h		\
	totem-pl-parser-qt.c			\
	totem-pl-parser-qt.h			\
	totem-pl-parser-smil.c			\
	totem-pl-parser-smil.h			\
	totem-pl-parser-wm.c			\
	totem-pl-parser-wm.h			\
	totem-pl-parser-xspf.c			\
	totem-pl-parser-xspf.h			\
	xmlparser.h xmlparser.c			\
Bastien Nocera's avatar
Bastien Nocera committed
93 94
	xmllexer.h xmllexer.c			\
	bswap.h
95 96 97 98

libtotem_plparser_la_CPPFLAGS = \
	-I$(top_srcdir)				\
	-I$(top_srcdir)/lib			\
Bastien Nocera's avatar
Bastien Nocera committed
99
	-I$(top_builddir)/plparse		\
100 101 102 103 104 105 106 107 108 109
	-DGNOMELOCALEDIR=\""$(datadir)/locale"\"\
	$(DISABLE_DEPRECATED)			\
	$(AM_CPPFLAGS)

libtotem_plparser_la_CFLAGS = \
	$(TOTEM_PLPARSER_CFLAGS)	\
	$(HAL_CFLAGS)			\
	$(DBUS_CFLAGS)			\
	$(WARN_CFLAGS)			\
	$(AM_CFLAGS)			\
110 111
	-D_FILE_OFFSET_BITS=64		\
	-D_LARGEFILE64_SOURCE		\
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
	-I$(top_srcdir)/lib		\
	-D_GNU_SOURCE

libtotem_plparser_la_LIBADD = \
	$(TOTEM_PLPARSER_LIBS)			\
	$(top_builddir)/lib/libtotem_glibc.la	\
	$(HAL_LIBS)

libtotem_plparser_la_LDFLAGS =			\
	-version-info $(PLPARSER_LT_VERSION)	\
	-export-symbols $(srcdir)/plparser.symbols \
	-no-undefined				\
	$(AM_LDFLAGS)

libtotem_plparser_mini_la_SOURCES =		\
	totem-pl-parser-mini.h			\
	totem-pl-parser.c			\
	totem-pl-parser-lines.c			\
	totem-pl-parser-lines.h			\
	totem-pl-parser-misc.c			\
	totem-pl-parser-misc.h			\
	totem-pl-parser-pls.c			\
	totem-pl-parser-pls.h			\
	totem-pl-parser-podcast.c		\
	totem-pl-parser-podcast.h		\
	totem-pl-parser-private.h		\
	totem-pl-parser-qt.c			\
	totem-pl-parser-qt.h			\
	totem-pl-parser-smil.c			\
	totem-pl-parser-smil.h			\
	totem-pl-parser-wm.c			\
	totem-pl-parser-wm.h			\
	totem-pl-parser-xspf.c			\
	totem-pl-parser-xspf.h

libtotem_plparser_mini_la_CPPFLAGS = \
	-I$(top_srcdir)			\
149
	-I$(top_srcdir)/lib		\
Bastien Nocera's avatar
Bastien Nocera committed
150
	-I$(top_builddir)/plparse	\
151 152 153 154 155 156 157 158 159
	-DTOTEM_PL_PARSER_MINI		\
	$(DISABLE_DEPRECATED)		\
	$(AM_CPPFLAGS)

libtotem_plparser_mini_la_CFLAGS = \
	$(TOTEM_PLPARSER_MINI_CFLAGS)	\
	$(WARN_CFLAGS)			\
	$(AM_CFLAGS)

160 161 162
libtotem_plparser_mini_la_LIBADD =		\
	$(TOTEM_PLPARSER_MINI_LIBS)		\
	$(top_builddir)/lib/libtotem_glibc.la
163

164 165 166 167
libtotem_plparser_mini_la_LDFLAGS =			\
	-version-info $(PLPARSER_LT_VERSION)		\
	-export-symbols $(srcdir)/plparser-mini.symbols	\
	-no-undefined					\
168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202
	$(AM_LDFLAGS)

totem-pl-parser-builtins.h: stamp-totem-pl-parser-builtins.h
	@true

stamp-totem-pl-parser-builtins.h: totem-pl-parser.h Makefile
	(cd $(srcdir) && $(GLIB_MKENUMS) \
			--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" \
			--fprod "/* enumerations from \"@filename@\" */\n" \
			--vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define TOTEM_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
			--ftail "G_END_DECLS\n\n#endif /* __TOTEM_PL_PARSER_BUILTINS_H__ */" totem-pl-parser.h) >> xgen-gtbh \
	&& (cmp -s xgen-gtbh totem-pl-parser-builtins.h || cp xgen-gtbh totem-pl-parser-builtins.h ) \
	&& rm -f xgen-gtbh \
	&& echo timestamp > $(@F)

totem-pl-parser-builtins.c: totem-pl-parser.h Makefile totem-pl-parser-builtins.h
	(cd $(srcdir) && $(GLIB_MKENUMS) \
			--fhead "#include \"totem-pl-parser.h\"\n#include \"totem-pl-parser-builtins.h\"" \
			--fprod "\n/* enumerations from \"@filename@\" */" \
			--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[] = {" \
			--vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
			--vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
		totem-pl-parser.h ) > xgen-gtbc \
	&& cp xgen-gtbc totem-pl-parser-builtins.c  \
	&& rm -f xgen-gtbc

CLEANFILES = \
	totem-pl-parser-builtins.h \
	totem-pl-parser-builtins.c \
	stamp-totem-pl-parser-builtins.h \
	$(BUILT_SOURCES)

EXTRA_DIST =				\
	totemplparser-marshal.list	\
	totem-pl-parser-features.h.in	\
203 204
	plparser.symbols		\
	plparser-mini.symbols