| 1 |
if PLATFORM_WIN32 |
| 2 |
no_undefined = -no-undefined |
| 3 |
else |
| 4 |
if PLATFORM_DARWIN |
| 5 |
no_undefined = -no-undefined |
| 6 |
else |
| 7 |
no_undefined = |
| 8 |
endif |
| 9 |
endif |
| 10 |
|
| 11 |
if OS_WIN32 |
| 12 |
version_info = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -avoid-version |
| 13 |
else |
| 14 |
version_info = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) |
| 15 |
endif |
| 16 |
|
| 17 |
lib_LTLIBRARIES = libabw-@ABW_MAJOR_VERSION@.@[email protected] |
| 18 |
|
| 19 |
AM_CXXFLAGS = -I$(top_srcdir)/inc \ |
| 20 |
$(REVENGE_CFLAGS) \ |
| 21 |
$(LIBXML_CFLAGS) \ |
| 22 |
$(ZLIB_CFLAGS) \ |
| 23 |
$(DEBUG_CXXFLAGS) \ |
| 24 |
-DLIBABW_BUILD=1 \ |
| 25 |
-DBOOST_ERROR_CODE_HEADER_ONLY \ |
| 26 |
-DBOOST_SYSTEM_NO_DEPRECATED |
| 27 |
|
| 28 |
BUILT_SOURCES = tokens.h tokenhash.h |
| 29 |
|
| 30 |
libabw_@ABW_MAJOR_VERSION@_@ABW_MINOR_VERSION@_la_LIBADD = $(REVENGE_LIBS) $(LIBXML_LIBS) $(ZLIB_LIBS) @LIBABW_WIN32_RESOURCE@ |
| 31 |
libabw_@ABW_MAJOR_VERSION@_@ABW_MINOR_VERSION@_la_DEPENDENCIES = @LIBABW_WIN32_RESOURCE@ |
| 32 |
libabw_@ABW_MAJOR_VERSION@_@ABW_MINOR_VERSION@_la_LDFLAGS = $(version_info) -export-dynamic $(no_undefined) |
| 33 |
libabw_@ABW_MAJOR_VERSION@_@ABW_MINOR_VERSION@_la_SOURCES = \ |
| 34 |
ABWCollector.cpp \ |
| 35 |
ABWContentCollector.cpp \ |
| 36 |
ABWOutputElements.cpp \ |
| 37 |
ABWParser.cpp \ |
| 38 |
ABWStylesCollector.cpp \ |
| 39 |
ABWXMLHelper.cpp \ |
| 40 |
ABWXMLTokenMap.cpp \ |
| 41 |
ABWZlibStream.cpp \ |
| 42 |
AbiDocument.cpp \ |
| 43 |
libabw_internal.cpp \ |
| 44 |
\ |
| 45 |
ABWCollector.h \ |
| 46 |
ABWContentCollector.h \ |
| 47 |
ABWOutputElements.h \ |
| 48 |
ABWParser.h \ |
| 49 |
ABWStylesCollector.h \ |
| 50 |
ABWXMLHelper.h \ |
| 51 |
ABWXMLTokenMap.h \ |
| 52 |
ABWZlibStream.h \ |
| 53 |
libabw_internal.h |
| 54 |
|
| 55 |
tokens.h : tokens.gperf |
| 56 |
|
| 57 |
tokenhash.h : tokens.gperf |
| 58 |
$(GPERF) --compare-strncmp -C -m 20 tokens.gperf \ |
| 59 |
| $(SED) -e 's/(char\*)0/(char\*)0, 0/g' -e 's/register //g' > tokenhash.h |
| 60 |
|
| 61 |
tokens.gperf : $(top_srcdir)/src/lib/tokens.txt $(top_srcdir)/src/lib/gentoken.pl |
| 62 |
$(PERL) $(top_srcdir)/src/lib/gentoken.pl $(top_srcdir)/src/lib/tokens.txt \ |
| 63 |
tokens.h tokens.gperf |
| 64 |
|
| 65 |
if OS_WIN32 |
| 66 |
|
| 67 |
@LIBABW_WIN32_RESOURCE@ : libabw.rc $(libabw_@ABW_MAJOR_VERSION@_@ABW_MINOR_VERSION@_la_OBJECTS) |
| 68 |
chmod +x $(top_srcdir)/build/win32/*compile-resource |
| 69 |
WINDRES=@WINDRES@ $(top_srcdir)/build/win32/lt-compile-resource libabw.rc @LIBABW_WIN32_RESOURCE@ |
| 70 |
endif |
| 71 |
|
| 72 |
MOSTLYCLEANFILES = \ |
| 73 |
$(BUILT_SOURCES) \ |
| 74 |
tokens.gperf |
| 75 |
|
| 76 |
EXTRA_DIST = \ |
| 77 |
$(BUILT_SOURCES) \ |
| 78 |
tokens.txt \ |
| 79 |
gentoken.pl \ |
| 80 |
libabw.rc \ |
| 81 |
libabw.rc.in |