2007-03-08 04:03:40 +08:00
|
|
|
AM_CPPFLAGS = \
|
2012-02-02 11:02:16 +08:00
|
|
|
-DUSE_STD_NAMESPACE \
|
|
|
|
-I$(top_srcdir)/ccmain -I$(top_srcdir)/api \
|
2007-03-08 04:03:40 +08:00
|
|
|
-I$(top_srcdir)/ccutil -I$(top_srcdir)/ccstruct \
|
|
|
|
-I$(top_srcdir)/image -I$(top_srcdir)/viewer \
|
2011-10-17 03:39:54 +08:00
|
|
|
-I$(top_srcdir)/textord -I$(top_srcdir)/dict \
|
2007-03-08 04:03:40 +08:00
|
|
|
-I$(top_srcdir)/classify -I$(top_srcdir)/display \
|
2011-10-17 03:39:54 +08:00
|
|
|
-I$(top_srcdir)/wordrec -I$(top_srcdir)/cutil
|
2007-03-08 04:03:40 +08:00
|
|
|
|
2012-03-04 05:13:42 +08:00
|
|
|
# TODO: training programs can not be linked to shared library created
|
|
|
|
# with -fvisibility
|
|
|
|
if VISIBILITY
|
2012-03-08 06:04:46 +08:00
|
|
|
AM_LDFLAGS = -all-static
|
2012-03-04 05:13:42 +08:00
|
|
|
endif
|
|
|
|
|
2012-03-03 21:22:51 +08:00
|
|
|
noinst_HEADERS = \
|
2011-10-17 03:39:54 +08:00
|
|
|
commontraining.h tessopt.h mergenf.h
|
2007-03-08 04:03:40 +08:00
|
|
|
|
2011-08-30 05:28:28 +08:00
|
|
|
noinst_LTLIBRARIES = libtesseract_training.la libtesseract_tessopt.la
|
|
|
|
|
2010-05-26 22:20:20 +08:00
|
|
|
libtesseract_training_la_SOURCES = \
|
2010-11-24 02:34:14 +08:00
|
|
|
commontraining.cpp
|
2012-03-07 06:41:43 +08:00
|
|
|
#libtesseract_training_la_LDFLAGS = -static
|
2010-11-24 02:34:14 +08:00
|
|
|
libtesseract_tessopt_la_SOURCES = \
|
|
|
|
tessopt.cpp
|
2012-03-07 06:41:43 +08:00
|
|
|
#libtesseract_tessopt_la_LDFLAGS = -static
|
2007-03-08 04:03:40 +08:00
|
|
|
|
2012-02-02 11:02:16 +08:00
|
|
|
bin_PROGRAMS = ambiguous_words classifier_tester cntraining combine_tessdata dawg2wordlist mftraining shapeclustering unicharset_extractor wordlist2dawg
|
|
|
|
|
|
|
|
ambiguous_words_SOURCES = ambiguous_words.cpp
|
|
|
|
ambiguous_words_LDADD = \
|
|
|
|
libtesseract_training.la \
|
|
|
|
libtesseract_tessopt.la
|
|
|
|
if USING_MULTIPLELIBS
|
|
|
|
ambiguous_words_LDADD += \
|
2012-03-08 06:04:46 +08:00
|
|
|
../api/libtesseract_api.la \
|
|
|
|
../textord/libtesseract_textord.la \
|
|
|
|
../classify/libtesseract_classify.la \
|
|
|
|
../dict/libtesseract_dict.la \
|
|
|
|
../ccstruct/libtesseract_ccstruct.la \
|
|
|
|
../image/libtesseract_image.la \
|
|
|
|
../cutil/libtesseract_cutil.la \
|
|
|
|
../viewer/libtesseract_viewer.la \
|
|
|
|
../ccmain/libtesseract_main.la \
|
|
|
|
../cube/libtesseract_cube.la \
|
|
|
|
../neural_networks/runtime/libtesseract_neural.la \
|
|
|
|
../wordrec/libtesseract_wordrec.la \
|
|
|
|
../ccutil/libtesseract_ccutil.la
|
2012-02-02 11:02:16 +08:00
|
|
|
else
|
|
|
|
ambiguous_words_LDADD += \
|
2012-03-08 06:04:46 +08:00
|
|
|
../api/libtesseract.la
|
2012-02-02 11:02:16 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
classifier_tester_SOURCES = classifier_tester.cpp
|
2012-03-07 06:41:43 +08:00
|
|
|
#classifier_tester_LDFLAGS = -static
|
2012-02-02 11:02:16 +08:00
|
|
|
classifier_tester_LDADD = \
|
|
|
|
libtesseract_training.la \
|
|
|
|
libtesseract_tessopt.la
|
|
|
|
if USING_MULTIPLELIBS
|
|
|
|
classifier_tester_LDADD += \
|
2012-03-08 06:04:46 +08:00
|
|
|
../api/libtesseract_api.la \
|
|
|
|
../textord/libtesseract_textord.la \
|
|
|
|
../classify/libtesseract_classify.la \
|
|
|
|
../dict/libtesseract_dict.la \
|
|
|
|
../ccstruct/libtesseract_ccstruct.la \
|
|
|
|
../image/libtesseract_image.la \
|
|
|
|
../cutil/libtesseract_cutil.la \
|
|
|
|
../viewer/libtesseract_viewer.la \
|
|
|
|
../ccmain/libtesseract_main.la \
|
|
|
|
../cube/libtesseract_cube.la \
|
|
|
|
../neural_networks/runtime/libtesseract_neural.la \
|
|
|
|
../wordrec/libtesseract_wordrec.la \
|
|
|
|
../ccutil/libtesseract_ccutil.la
|
2012-02-02 11:02:16 +08:00
|
|
|
else
|
|
|
|
classifier_tester_LDADD += \
|
2012-03-08 06:04:46 +08:00
|
|
|
../api/libtesseract.la
|
2012-02-02 11:02:16 +08:00
|
|
|
endif
|
|
|
|
|
2009-07-11 10:44:07 +08:00
|
|
|
combine_tessdata_SOURCES = combine_tessdata.cpp
|
2012-03-07 06:41:43 +08:00
|
|
|
#combine_tessdata_LDFLAGS = -static
|
2011-08-30 05:28:28 +08:00
|
|
|
if USING_MULTIPLELIBS
|
2009-07-11 10:44:07 +08:00
|
|
|
combine_tessdata_LDADD = \
|
2012-03-08 06:04:46 +08:00
|
|
|
../ccutil/libtesseract_ccutil.la
|
2011-08-30 05:28:28 +08:00
|
|
|
else
|
|
|
|
combine_tessdata_LDADD = \
|
2012-03-08 06:04:46 +08:00
|
|
|
../api/libtesseract.la
|
2011-08-30 05:28:28 +08:00
|
|
|
endif
|
2009-07-11 10:44:07 +08:00
|
|
|
|
|
|
|
cntraining_SOURCES = cntraining.cpp
|
2012-03-07 06:41:43 +08:00
|
|
|
#cntraining_LDFLAGS = -static
|
2007-03-08 04:03:40 +08:00
|
|
|
cntraining_LDADD = \
|
2010-05-26 22:20:20 +08:00
|
|
|
libtesseract_training.la \
|
2011-10-17 03:39:54 +08:00
|
|
|
libtesseract_tessopt.la
|
|
|
|
if USING_MULTIPLELIBS
|
|
|
|
cntraining_LDADD += \
|
2012-03-08 06:04:46 +08:00
|
|
|
../textord/libtesseract_textord.la \
|
|
|
|
../classify/libtesseract_classify.la \
|
|
|
|
../dict/libtesseract_dict.la \
|
|
|
|
../ccstruct/libtesseract_ccstruct.la \
|
|
|
|
../image/libtesseract_image.la \
|
|
|
|
../cutil/libtesseract_cutil.la \
|
|
|
|
../viewer/libtesseract_viewer.la \
|
|
|
|
../ccmain/libtesseract_main.la \
|
|
|
|
../cube/libtesseract_cube.la \
|
|
|
|
../neural_networks/runtime/libtesseract_neural.la \
|
|
|
|
../wordrec/libtesseract_wordrec.la \
|
|
|
|
../ccutil/libtesseract_ccutil.la
|
2011-08-30 05:28:28 +08:00
|
|
|
else
|
2011-10-17 03:39:54 +08:00
|
|
|
cntraining_LDADD += \
|
2012-03-08 06:04:46 +08:00
|
|
|
../api/libtesseract.la
|
2011-08-30 05:28:28 +08:00
|
|
|
endif
|
2009-07-11 10:44:07 +08:00
|
|
|
|
2012-02-02 11:02:16 +08:00
|
|
|
dawg2wordlist_SOURCES = dawg2wordlist.cpp
|
2012-03-07 06:41:43 +08:00
|
|
|
#dawg2wordlist_LDFLAGS = -static
|
2012-02-02 11:02:16 +08:00
|
|
|
dawg2wordlist_LDADD = \
|
|
|
|
libtesseract_tessopt.la
|
|
|
|
if USING_MULTIPLELIBS
|
|
|
|
dawg2wordlist_LDADD += \
|
2012-03-08 06:04:46 +08:00
|
|
|
../classify/libtesseract_classify.la \
|
|
|
|
../dict/libtesseract_dict.la \
|
|
|
|
../ccstruct/libtesseract_ccstruct.la \
|
|
|
|
../image/libtesseract_image.la \
|
|
|
|
../cutil/libtesseract_cutil.la \
|
|
|
|
../viewer/libtesseract_viewer.la \
|
|
|
|
../ccmain/libtesseract_main.la \
|
|
|
|
../cube/libtesseract_cube.la \
|
|
|
|
../neural_networks/runtime/libtesseract_neural.la \
|
|
|
|
../wordrec/libtesseract_wordrec.la \
|
|
|
|
../textord/libtesseract_textord.la \
|
|
|
|
../ccutil/libtesseract_ccutil.la
|
2012-02-02 11:02:16 +08:00
|
|
|
else
|
|
|
|
dawg2wordlist_LDADD += \
|
2012-03-08 06:04:46 +08:00
|
|
|
../api/libtesseract.la
|
2012-02-02 11:02:16 +08:00
|
|
|
endif
|
|
|
|
|
2009-07-11 10:44:07 +08:00
|
|
|
mftraining_SOURCES = mftraining.cpp mergenf.cpp
|
2012-03-07 06:41:43 +08:00
|
|
|
#mftraining_LDFLAGS = -static
|
2007-03-08 04:03:40 +08:00
|
|
|
mftraining_LDADD = \
|
2010-05-26 22:20:20 +08:00
|
|
|
libtesseract_training.la \
|
2011-10-17 03:39:54 +08:00
|
|
|
libtesseract_tessopt.la
|
|
|
|
if USING_MULTIPLELIBS
|
|
|
|
mftraining_LDADD += \
|
2012-03-08 06:04:46 +08:00
|
|
|
../textord/libtesseract_textord.la \
|
|
|
|
../classify/libtesseract_classify.la \
|
|
|
|
../dict/libtesseract_dict.la \
|
|
|
|
../ccstruct/libtesseract_ccstruct.la \
|
|
|
|
../image/libtesseract_image.la \
|
|
|
|
../cutil/libtesseract_cutil.la \
|
|
|
|
../viewer/libtesseract_viewer.la \
|
|
|
|
../ccmain/libtesseract_main.la \
|
|
|
|
../cube/libtesseract_cube.la \
|
|
|
|
../neural_networks/runtime/libtesseract_neural.la \
|
|
|
|
../wordrec/libtesseract_wordrec.la \
|
|
|
|
../ccutil/libtesseract_ccutil.la
|
2011-08-30 05:28:28 +08:00
|
|
|
else
|
2011-10-17 03:39:54 +08:00
|
|
|
mftraining_LDADD += \
|
2012-03-08 06:04:46 +08:00
|
|
|
../api/libtesseract.la
|
2011-08-30 05:28:28 +08:00
|
|
|
endif
|
2009-07-11 10:44:07 +08:00
|
|
|
|
2012-02-02 11:02:16 +08:00
|
|
|
shapeclustering_SOURCES = shapeclustering.cpp
|
2012-03-07 06:41:43 +08:00
|
|
|
#shapeclustering_LDFLAGS = -static
|
2012-02-02 11:02:16 +08:00
|
|
|
shapeclustering_LDADD = \
|
|
|
|
libtesseract_training.la \
|
|
|
|
libtesseract_tessopt.la
|
|
|
|
if USING_MULTIPLELIBS
|
|
|
|
shapeclustering_LDADD += \
|
2012-03-08 06:04:46 +08:00
|
|
|
../textord/libtesseract_textord.la \
|
|
|
|
../classify/libtesseract_classify.la \
|
|
|
|
../dict/libtesseract_dict.la \
|
|
|
|
../ccstruct/libtesseract_ccstruct.la \
|
|
|
|
../image/libtesseract_image.la \
|
|
|
|
../cutil/libtesseract_cutil.la \
|
|
|
|
../viewer/libtesseract_viewer.la \
|
|
|
|
../ccmain/libtesseract_main.la \
|
|
|
|
../cube/libtesseract_cube.la \
|
|
|
|
../neural_networks/runtime/libtesseract_neural.la \
|
|
|
|
../wordrec/libtesseract_wordrec.la \
|
|
|
|
../ccutil/libtesseract_ccutil.la
|
2012-02-02 11:02:16 +08:00
|
|
|
else
|
|
|
|
shapeclustering_LDADD += \
|
2012-03-08 06:04:46 +08:00
|
|
|
../api/libtesseract.la
|
2012-02-02 11:02:16 +08:00
|
|
|
endif
|
|
|
|
|
2007-07-18 09:04:56 +08:00
|
|
|
unicharset_extractor_SOURCES = unicharset_extractor.cpp
|
2012-03-07 06:41:43 +08:00
|
|
|
#unicharset_extractor_LDFLAGS = -static
|
2007-07-18 09:04:56 +08:00
|
|
|
unicharset_extractor_LDADD = \
|
2011-10-17 03:39:54 +08:00
|
|
|
libtesseract_tessopt.la
|
|
|
|
if USING_MULTIPLELIBS
|
|
|
|
unicharset_extractor_LDADD += \
|
2012-03-08 06:04:46 +08:00
|
|
|
../ccutil/libtesseract_ccutil.la \
|
|
|
|
../ccstruct/libtesseract_ccstruct.la
|
2011-08-30 05:28:28 +08:00
|
|
|
else
|
2011-10-17 03:39:54 +08:00
|
|
|
unicharset_extractor_LDADD += \
|
2012-03-08 06:04:46 +08:00
|
|
|
../api/libtesseract.la
|
2011-08-30 05:28:28 +08:00
|
|
|
endif
|
2009-07-11 10:44:07 +08:00
|
|
|
|
2007-07-18 09:04:56 +08:00
|
|
|
wordlist2dawg_SOURCES = wordlist2dawg.cpp
|
2012-03-07 06:41:43 +08:00
|
|
|
#wordlist2dawg_LDFLAGS = -static
|
2007-07-18 09:04:56 +08:00
|
|
|
wordlist2dawg_LDADD = \
|
2011-10-17 03:39:54 +08:00
|
|
|
libtesseract_tessopt.la
|
|
|
|
if USING_MULTIPLELIBS
|
|
|
|
wordlist2dawg_LDADD += \
|
2012-03-08 06:04:46 +08:00
|
|
|
../classify/libtesseract_classify.la \
|
|
|
|
../dict/libtesseract_dict.la \
|
|
|
|
../ccstruct/libtesseract_ccstruct.la \
|
|
|
|
../image/libtesseract_image.la \
|
|
|
|
../cutil/libtesseract_cutil.la \
|
|
|
|
../viewer/libtesseract_viewer.la \
|
|
|
|
../ccmain/libtesseract_main.la \
|
|
|
|
../cube/libtesseract_cube.la \
|
|
|
|
../neural_networks/runtime/libtesseract_neural.la \
|
|
|
|
../wordrec/libtesseract_wordrec.la \
|
|
|
|
../textord/libtesseract_textord.la \
|
|
|
|
../ccutil/libtesseract_ccutil.la
|
2011-08-30 05:28:28 +08:00
|
|
|
else
|
2011-10-17 03:39:54 +08:00
|
|
|
wordlist2dawg_LDADD += \
|
2012-03-08 06:04:46 +08:00
|
|
|
../api/libtesseract.la
|
2011-08-30 05:28:28 +08:00
|
|
|
endif
|