2012-03-23 04:01:33 +08:00
|
|
|
AM_CPPFLAGS += -DLOCALEDIR=\"$(localedir)\"\
|
2014-01-10 01:58:55 +08:00
|
|
|
-DUSE_STD_NAMESPACE \
|
|
|
|
-I$(top_srcdir)/ccutil -I$(top_srcdir)/ccstruct -I$(top_srcdir)/cube \
|
|
|
|
-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
|
|
|
|
if USE_OPENCL
|
|
|
|
AM_CPPFLAGS += -I$(OPENCL_HDR_PATH)
|
|
|
|
endif
|
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
|
|
|
if !USING_MULTIPLELIBS
|
|
|
|
noinst_LTLIBRARIES = libtesseract_api.la
|
|
|
|
else
|
2011-10-17 03:39:54 +08:00
|
|
|
lib_LTLIBRARIES += libtesseract_api.la
|
2010-05-26 22:20:20 +08:00
|
|
|
libtesseract_api_la_LDFLAGS = -version-info $(GENERIC_LIBRARY_VERSION)
|
2011-10-17 03:39:54 +08:00
|
|
|
libtesseract_api_la_LIBADD = \
|
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 \
|
|
|
|
../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
|
2015-07-24 17:51:44 +08:00
|
|
|
if !NO_CUBE_BUILD
|
|
|
|
libtesseract_api_la_LIBADD += ../cube/libtesseract_cube.la \
|
|
|
|
../neural_networks/runtime/libtesseract_neural.la \
|
|
|
|
endif
|
2011-08-30 05:28:28 +08:00
|
|
|
endif
|
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
|
2012-03-03 07:51:33 +08:00
|
|
|
libtesseract_la_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 \
|
|
|
|
../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
|
2015-07-24 17:51:44 +08:00
|
|
|
if !NO_CUBE_BUILD
|
|
|
|
libtesseract_la_LIBADD += ../cube/libtesseract_cube.la \
|
|
|
|
../neural_networks/runtime/libtesseract_neural.la
|
|
|
|
endif
|
2010-06-09 20:08:47 +08:00
|
|
|
|
2011-10-17 03:39:54 +08:00
|
|
|
libtesseract_la_LDFLAGS += -version-info $(GENERIC_LIBRARY_VERSION)
|
|
|
|
|
|
|
|
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
|
|
|
|
2013-11-12 18:40:40 +08:00
|
|
|
if USE_OPENCL
|
|
|
|
tesseract_LDADD += $(OPENCL_LIB)
|
|
|
|
endif
|
2014-01-22 16:10:15 +08:00
|
|
|
|
2014-09-29 05:19:52 +08:00
|
|
|
if T_WIN
|
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
|
|
|
|
|