1if OS_WIN32
2version_info = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -avoid-version
3else
4version_info = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
5endif
6
7lib_LTLIBRARIES = libodfgen-@LIBODFGEN_MAJOR_VERSION@.@LIBODFGEN_MINOR_VERSION@.la
8
9AM_CXXFLAGS = -I$(top_srcdir)/inc/ $(REVENGE_CFLAGS) $(DEBUG_CXXFLAGS) $(XML_CFLAGS) -DLIBODFGEN_BUILD
10
11if HAVE_VISIBILITY
12AM_CXXFLAGS += -fvisibility=hidden -DLIBODFGEN_VISIBILITY
13endif
14
15libodfgen_@LIBODFGEN_MAJOR_VERSION@_@LIBODFGEN_MINOR_VERSION@_la_LIBADD = @LIBODFGEN_WIN32_RESOURCE@ $(REVENGE_LIBS) $(XML_LIBS)
16libodfgen_@LIBODFGEN_MAJOR_VERSION@_@LIBODFGEN_MINOR_VERSION@_la_DEPENDENCIES = @LIBODFGEN_WIN32_RESOURCE@
17libodfgen_@LIBODFGEN_MAJOR_VERSION@_@LIBODFGEN_MINOR_VERSION@_la_LDFLAGS = $(version_info) -export-dynamic -no-undefined
18
19libodfgen_@LIBODFGEN_MAJOR_VERSION@_@LIBODFGEN_MINOR_VERSION@_la_SOURCES = \
20	DocumentElement.cxx \
21	DocumentElement.hxx \
22	FillManager.cxx \
23	FillManager.hxx \
24	FilterInternal.cxx \
25	FilterInternal.hxx \
26	FontStyle.cxx \
27	FontStyle.hxx \
28	GraphicFunctions.cxx \
29	GraphicFunctions.hxx \
30	GraphicStyle.cxx \
31	GraphicStyle.hxx \
32	InternalHandler.cxx \
33	InternalHandler.hxx \
34	ListStyle.cxx \
35	ListStyle.hxx \
36	NumberingStyle.cxx \
37	NumberingStyle.hxx \
38	PageSpan.cxx \
39	PageSpan.hxx \
40	SectionStyle.cxx \
41	SectionStyle.hxx \
42	SheetStyle.cxx \
43	SheetStyle.hxx \
44	TableStyle.cxx \
45	TableStyle.hxx \
46	TextRunStyle.cxx \
47	TextRunStyle.hxx \
48	OdcGenerator.cxx \
49	OdcGenerator.hxx \
50	OdfGenerator.cxx \
51	OdfGenerator.hxx \
52	OdgGenerator.cxx \
53	OdpGenerator.cxx \
54	OdsGenerator.cxx \
55	OdtGenerator.cxx \
56	Style.hxx
57
58if OS_WIN32
59
60@LIBODFGEN_WIN32_RESOURCE@ : libodfgen.rc $(libodfgen_@LIBODFGEN_MAJOR_VERSION@_@LIBODFGEN_MINOR_VERSION@_la_OBJECTS)
61	chmod +x $(top_srcdir)/build/win32/*compile-resource
62	WINDRES=@WINDRES@ $(top_srcdir)/build/win32/lt-compile-resource libodfgen.rc @LIBODFGEN_WIN32_RESOURCE@
63
64endif
65
66# These may be in the builddir too
67BUILD_EXTRA_DIST = \
68	libodfgen.rc
69