2016-12-27 20:25:08 +08:00
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/ccutil -I$(top_srcdir)/viewer
|
2016-11-08 07:38:07 +08:00
|
|
|
AUTOMAKE_OPTIONS = subdir-objects
|
|
|
|
SUBDIRS =
|
|
|
|
AM_CXXFLAGS =
|
|
|
|
|
|
|
|
if VISIBILITY
|
|
|
|
AM_CXXFLAGS += -fvisibility=hidden -fvisibility-inlines-hidden
|
|
|
|
AM_CPPFLAGS += -DTESS_EXPORTS
|
|
|
|
endif
|
|
|
|
|
2016-12-27 20:25:08 +08:00
|
|
|
include_HEADERS = dotproductavx.h dotproductsse.h simddetect.h
|
2016-11-08 07:38:07 +08:00
|
|
|
|
2016-12-27 20:25:08 +08:00
|
|
|
noinst_HEADERS =
|
2016-11-08 07:38:07 +08:00
|
|
|
|
|
|
|
if !USING_MULTIPLELIBS
|
|
|
|
noinst_LTLIBRARIES = libtesseract_avx.la libtesseract_sse.la
|
2016-12-27 20:25:08 +08:00
|
|
|
noinst_LTLIBRARIES += libtesseract_arch.la
|
2016-11-08 07:38:07 +08:00
|
|
|
else
|
|
|
|
lib_LTLIBRARIES = libtesseract_avx.la libtesseract_sse.la
|
2016-12-27 20:25:08 +08:00
|
|
|
lib_LTLIBRARIES += libtesseract_arch.la
|
|
|
|
libtesseract_arch_la_LDFLAGS = -version-info $(GENERIC_LIBRARY_VERSION)
|
2016-11-08 07:38:07 +08:00
|
|
|
libtesseract_avx_la_LDFLAGS = -version-info $(GENERIC_LIBRARY_VERSION)
|
|
|
|
libtesseract_sse_la_LDFLAGS = -version-info $(GENERIC_LIBRARY_VERSION)
|
|
|
|
endif
|
2016-12-23 17:20:08 +08:00
|
|
|
|
|
|
|
if AVX_OPT
|
2016-11-08 07:38:07 +08:00
|
|
|
libtesseract_avx_la_CXXFLAGS = -mavx
|
2016-12-23 17:20:08 +08:00
|
|
|
endif
|
|
|
|
if SSE41_OPT
|
2016-11-08 07:38:07 +08:00
|
|
|
libtesseract_sse_la_CXXFLAGS = -msse4.1
|
2016-12-23 17:20:08 +08:00
|
|
|
endif
|
2016-11-08 07:38:07 +08:00
|
|
|
|
2016-12-27 20:25:08 +08:00
|
|
|
libtesseract_arch_la_SOURCES = simddetect.cpp
|
|
|
|
|
2016-11-08 07:38:07 +08:00
|
|
|
libtesseract_avx_la_SOURCES = dotproductavx.cpp
|
|
|
|
|
|
|
|
libtesseract_sse_la_SOURCES = dotproductsse.cpp
|
|
|
|
|