summaryrefslogtreecommitdiff
path: root/src/lib/Makefile.am
blob: 441c5e405df19584c7643beedd82f152af021fd1 (plain)
1
2
3
4
5
6
7
8
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
49
if PLATFORM_WIN32
version_info = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -avoid-version
else
version_info = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
endif

lib_LTLIBRARIES = libpict-@PICT_MAJOR_VERSION@.@PICT_MINOR_VERSION@.la
libpict_@PICT_MAJOR_VERSION@_@PICT_MINOR_VERSION@_includedir = $(includedir)/libpict-@PICT_MAJOR_VERSION@.@PICT_MINOR_VERSION@/libpict
libpict_@PICT_MAJOR_VERSION@_@PICT_MINOR_VERSION@_include_HEADERS = \
	$(top_srcdir)/inc/libpict/libpict.h \
	$(top_srcdir)/inc/libpict/PictImage.h

AM_CXXFLAGS = -I$(top_srcdir)/inc $(LIBPICT_CXXFLAGS) $(DEBUG_CXXFLAGS)

libpict_@PICT_MAJOR_VERSION@_@PICT_MINOR_VERSION@_la_LIBADD  = $(LIBPICT_LIBS) @LIBPICT_WIN32_RESOURCE@
libpict_@PICT_MAJOR_VERSION@_@PICT_MINOR_VERSION@_la_DEPENDENCIES = @LIBPICT_WIN32_RESOURCE@
libpict_@PICT_MAJOR_VERSION@_@PICT_MINOR_VERSION@_la_LDFLAGS = $(version_info) -export-dynamic -no-undefined
libpict_@PICT_MAJOR_VERSION@_@PICT_MINOR_VERSION@_la_SOURCES = \
	PictImage.cpp \
	PictColor.cpp \
	PictHeader.cpp \
	PictSVGGenerator.cpp \
	PictXParser.cpp \
	Pict1Parser.cpp \
	Pict2Parser.cpp \
	PictBitmap.cpp \
	libpict_utils.h \
	PictColor.h \
	PictHeader.h \
	PictSVGGenerator.h \
	PictXParser.h \
	Pict1Parser.h \
	Pict2Parser.h \
	PictBitmap.h

if OS_WIN32

@LIBPICT_WIN32_RESOURCE@ : libpict.rc $(libpict_@PICT_MAJOR_VERSION@_@PICT_MINOR_VERSION@_la_OBJECTS)
	chmod +x $(top_srcdir)/build/win32/*compile-resource
	WINDRES=@WINDRES@ $(top_srcdir)/build/win32/lt-compile-resource libpict.rc @LIBPICT_WIN32_RESOURCE@

endif

EXTRA_DIST = \
	libpict.rc.in

# These may be in the builddir too
BUILD_EXTRA_DIST = \
	libpict.rc