2012-03-23 04:01:33 +08:00
|
|
|
AM_CPPFLAGS += -DLOCALEDIR=\"$(localedir)\"\
|
2014-01-10 01:58:55 +08:00
|
|
|
-DUSE_STD_NAMESPACE \
|
2016-11-08 07:38:07 +08:00
|
|
|
-I$(top_srcdir)/arch -I$(top_srcdir)/lstm \
|
2016-12-15 03:17:06 +08:00
|
|
|
-I$(top_srcdir)/ccutil -I$(top_srcdir)/ccstruct \
|
2014-01-10 01:58:55 +08:00
|
|
|
-I$(top_srcdir)/viewer \
|
2011-10-17 03:39:54 +08:00
|
|
|
-I$(top_srcdir)/textord -I$(top_srcdir)/dict \
|
2009-07-11 10:03:09 +08:00
|
|
|
-I$(top_srcdir)/classify -I$(top_srcdir)/ccmain \
|
2013-11-12 01:43:13 +08:00
|
|
|
-I$(top_srcdir)/wordrec -I$(top_srcdir)/cutil \
|
2013-11-12 18:40:40 +08:00
|
|
|
-I$(top_srcdir)/opencl
|
2015-08-26 17:03:07 +08:00
|
|
|
|
|
|
|
AM_CPPFLAGS += $(OPENCL_CPPFLAGS)
|
|
|
|
|
2012-03-03 07:51:33 +08:00
|
|
|
if VISIBILITY
|
|
|
|
AM_CPPFLAGS += -fvisibility=hidden -fvisibility-inlines-hidden
|
|
|
|
endif
|
2009-07-11 10:03:09 +08:00
|
|
|
|
2013-09-23 23:26:50 +08:00
|
|
|
include_HEADERS = apitypes.h baseapi.h capi.h renderer.h
|
2011-10-17 03:39:54 +08:00
|
|
|
lib_LTLIBRARIES =
|
2009-07-11 10:03:09 +08:00
|
|
|
|
2011-08-30 05:28:28 +08:00
|
|
|
noinst_LTLIBRARIES = libtesseract_api.la
|
2015-07-24 17:51:44 +08:00
|
|
|
|
2012-03-03 07:51:33 +08:00
|
|
|
libtesseract_api_la_CPPFLAGS = $(AM_CPPFLAGS)
|
|
|
|
if VISIBILITY
|
|
|
|
libtesseract_api_la_CPPFLAGS += -DTESS_EXPORTS
|
|
|
|
endif
|
2015-08-08 05:20:22 +08:00
|
|
|
libtesseract_api_la_SOURCES = baseapi.cpp capi.cpp renderer.cpp pdfrenderer.cpp
|
2009-07-11 10:03:09 +08:00
|
|
|
|
2011-10-17 03:39:54 +08:00
|
|
|
lib_LTLIBRARIES += libtesseract.la
|
2017-04-11 05:15:58 +08:00
|
|
|
libtesseract_la_LDFLAGS = $(LEPTONICA_LIBS) $(OPENCL_LDFLAGS)
|
2011-10-17 03:39:54 +08:00
|
|
|
libtesseract_la_SOURCES =
|
|
|
|
# Dummy C++ source to cause C++ linking.
|
|
|
|
# see http://www.gnu.org/s/hello/manual/automake/Libtool-Convenience-Libraries.html#Libtool-Convenience-Libraries
|
|
|
|
nodist_EXTRA_libtesseract_la_SOURCES = dummy.cxx
|
|
|
|
libtesseract_la_LIBADD = \
|
2010-06-09 20:08:47 +08:00
|
|
|
libtesseract_api.la \
|
2012-03-08 06:04:46 +08:00
|
|
|
../ccmain/libtesseract_main.la \
|
|
|
|
../textord/libtesseract_textord.la \
|
|
|
|
../wordrec/libtesseract_wordrec.la \
|
|
|
|
../classify/libtesseract_classify.la \
|
|
|
|
../dict/libtesseract_dict.la \
|
2016-12-27 20:25:08 +08:00
|
|
|
../arch/libtesseract_arch.la \
|
2016-11-08 07:38:07 +08:00
|
|
|
../arch/libtesseract_avx.la \
|
2017-09-08 22:06:19 +08:00
|
|
|
../arch/libtesseract_avx2.la \
|
2016-11-08 07:38:07 +08:00
|
|
|
../arch/libtesseract_sse.la \
|
|
|
|
../lstm/libtesseract_lstm.la \
|
2012-03-08 06:04:46 +08:00
|
|
|
../ccstruct/libtesseract_ccstruct.la \
|
|
|
|
../cutil/libtesseract_cutil.la \
|
|
|
|
../viewer/libtesseract_viewer.la \
|
2013-11-12 01:43:13 +08:00
|
|
|
../ccutil/libtesseract_ccutil.la \
|
2013-11-12 18:40:40 +08:00
|
|
|
../opencl/libtesseract_opencl.la
|
2010-06-09 20:08:47 +08:00
|
|
|
|
2016-06-17 20:52:01 +08:00
|
|
|
libtesseract_la_LDFLAGS += -version-info $(GENERIC_LIBRARY_VERSION) -no-undefined
|
2011-10-17 03:39:54 +08:00
|
|
|
|
|
|
|
bin_PROGRAMS = tesseract
|
2014-09-29 05:19:52 +08:00
|
|
|
tesseract_SOURCES = tesseractmain.cpp
|
2012-03-03 07:51:33 +08:00
|
|
|
tesseract_CPPFLAGS = $(AM_CPPFLAGS)
|
2014-01-18 04:53:15 +08:00
|
|
|
if VISIBILITY
|
|
|
|
tesseract_CPPFLAGS += -DTESS_IMPORTS
|
|
|
|
endif
|
|
|
|
|
|
|
|
tesseract_LDADD = libtesseract.la
|
2014-01-22 16:10:15 +08:00
|
|
|
|
2015-08-26 17:03:07 +08:00
|
|
|
|
|
|
|
tesseract_LDFLAGS = $(OPENCL_LDFLAGS)
|
|
|
|
|
2016-12-16 00:21:27 +08:00
|
|
|
tesseract_LDADD += $(LEPTONICA_LIBS)
|
2016-12-12 05:48:26 +08:00
|
|
|
tesseract_LDADD += $(OPENMP_CXXFLAGS)
|
2014-01-22 16:10:15 +08:00
|
|
|
|
2014-09-29 05:19:52 +08:00
|
|
|
if T_WIN
|
2017-05-12 15:36:04 +08:00
|
|
|
tesseract_LDADD += -ltiff
|
2012-03-24 18:14:47 +08:00
|
|
|
tesseract_LDADD += -lws2_32
|
2014-01-22 16:10:15 +08:00
|
|
|
libtesseract_la_LDFLAGS += -no-undefined -Wl,--as-needed -lws2_32
|
|
|
|
endif
|
|
|
|
if ADD_RT
|
|
|
|
tesseract_LDADD += -lrt
|
2012-03-24 18:14:47 +08:00
|
|
|
endif
|