tesseract/training/Makefile.am
zdenop@gmail.com 1455bf5610 set tessedit_module_name for windows;
implement 'make install LANG="eng ara deu"';
more headers need to be installed: https://groups.google.com/group/tesseract-dev/msg/a4f7424377993b2e


git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@700 d0cd1f9f-072b-0410-8dd7-cf729c803f20
2012-03-06 22:41:43 +00:00

219 lines
7.7 KiB
Makefile

AM_CPPFLAGS = \
-DUSE_STD_NAMESPACE \
-I$(top_srcdir)/ccmain -I$(top_srcdir)/api \
-I$(top_srcdir)/ccutil -I$(top_srcdir)/ccstruct \
-I$(top_srcdir)/image -I$(top_srcdir)/viewer \
-I$(top_srcdir)/textord -I$(top_srcdir)/dict \
-I$(top_srcdir)/classify -I$(top_srcdir)/display \
-I$(top_srcdir)/wordrec -I$(top_srcdir)/cutil
# TODO: training programs can not be linked to shared library created
# with -fvisibility
if VISIBILITY
# AM_LDFLAGS = -all-static
endif
noinst_HEADERS = \
commontraining.h tessopt.h mergenf.h
noinst_LTLIBRARIES = libtesseract_training.la libtesseract_tessopt.la
libtesseract_training_la_SOURCES = \
commontraining.cpp
#libtesseract_training_la_LDFLAGS = -static
libtesseract_tessopt_la_SOURCES = \
tessopt.cpp
#libtesseract_tessopt_la_LDFLAGS = -static
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 += \
$(top_srcdir)/api/libtesseract_api.la \
$(top_srcdir)/textord/libtesseract_textord.la \
$(top_srcdir)/classify/libtesseract_classify.la \
$(top_srcdir)/dict/libtesseract_dict.la \
$(top_srcdir)/ccstruct/libtesseract_ccstruct.la \
$(top_srcdir)/image/libtesseract_image.la \
$(top_srcdir)/cutil/libtesseract_cutil.la \
$(top_srcdir)/viewer/libtesseract_viewer.la \
$(top_srcdir)/ccmain/libtesseract_main.la \
$(top_srcdir)/cube/libtesseract_cube.la \
$(top_srcdir)/neural_networks/runtime/libtesseract_neural.la \
$(top_srcdir)/wordrec/libtesseract_wordrec.la \
$(top_srcdir)/ccutil/libtesseract_ccutil.la
else
ambiguous_words_LDADD += \
$(top_srcdir)/api/libtesseract.la
endif
classifier_tester_SOURCES = classifier_tester.cpp
#classifier_tester_LDFLAGS = -static
classifier_tester_LDADD = \
libtesseract_training.la \
libtesseract_tessopt.la
if USING_MULTIPLELIBS
classifier_tester_LDADD += \
$(top_srcdir)/api/libtesseract_api.la \
$(top_srcdir)/textord/libtesseract_textord.la \
$(top_srcdir)/classify/libtesseract_classify.la \
$(top_srcdir)/dict/libtesseract_dict.la \
$(top_srcdir)/ccstruct/libtesseract_ccstruct.la \
$(top_srcdir)/image/libtesseract_image.la \
$(top_srcdir)/cutil/libtesseract_cutil.la \
$(top_srcdir)/viewer/libtesseract_viewer.la \
$(top_srcdir)/ccmain/libtesseract_main.la \
$(top_srcdir)/cube/libtesseract_cube.la \
$(top_srcdir)/neural_networks/runtime/libtesseract_neural.la \
$(top_srcdir)/wordrec/libtesseract_wordrec.la \
$(top_srcdir)/ccutil/libtesseract_ccutil.la
else
classifier_tester_LDADD += \
$(top_srcdir)/api/libtesseract.la
endif
combine_tessdata_SOURCES = combine_tessdata.cpp
#combine_tessdata_LDFLAGS = -static
if USING_MULTIPLELIBS
combine_tessdata_LDADD = \
$(top_srcdir)/ccutil/libtesseract_ccutil.la
else
combine_tessdata_LDADD = \
$(top_srcdir)/api/libtesseract.la
endif
cntraining_SOURCES = cntraining.cpp
#cntraining_LDFLAGS = -static
cntraining_LDADD = \
libtesseract_training.la \
libtesseract_tessopt.la
if USING_MULTIPLELIBS
cntraining_LDADD += \
$(top_srcdir)/textord/libtesseract_textord.la \
$(top_srcdir)/classify/libtesseract_classify.la \
$(top_srcdir)/dict/libtesseract_dict.la \
$(top_srcdir)/ccstruct/libtesseract_ccstruct.la \
$(top_srcdir)/image/libtesseract_image.la \
$(top_srcdir)/cutil/libtesseract_cutil.la \
$(top_srcdir)/viewer/libtesseract_viewer.la \
$(top_srcdir)/ccmain/libtesseract_main.la \
$(top_srcdir)/cube/libtesseract_cube.la \
$(top_srcdir)/neural_networks/runtime/libtesseract_neural.la \
$(top_srcdir)/wordrec/libtesseract_wordrec.la \
$(top_srcdir)/ccutil/libtesseract_ccutil.la
else
cntraining_LDADD += \
$(top_srcdir)/api/libtesseract.la
endif
dawg2wordlist_SOURCES = dawg2wordlist.cpp
#dawg2wordlist_LDFLAGS = -static
dawg2wordlist_LDADD = \
libtesseract_tessopt.la
if USING_MULTIPLELIBS
dawg2wordlist_LDADD += \
$(top_srcdir)/classify/libtesseract_classify.la \
$(top_srcdir)/dict/libtesseract_dict.la \
$(top_srcdir)/ccstruct/libtesseract_ccstruct.la \
$(top_srcdir)/image/libtesseract_image.la \
$(top_srcdir)/cutil/libtesseract_cutil.la \
$(top_srcdir)/viewer/libtesseract_viewer.la \
$(top_srcdir)/ccmain/libtesseract_main.la \
$(top_srcdir)/cube/libtesseract_cube.la \
$(top_srcdir)/neural_networks/runtime/libtesseract_neural.la \
$(top_srcdir)/wordrec/libtesseract_wordrec.la \
$(top_srcdir)/textord/libtesseract_textord.la \
$(top_srcdir)/ccutil/libtesseract_ccutil.la
else
dawg2wordlist_LDADD += \
$(top_srcdir)/api/libtesseract.la
endif
mftraining_SOURCES = mftraining.cpp mergenf.cpp
#mftraining_LDFLAGS = -static
mftraining_LDADD = \
libtesseract_training.la \
libtesseract_tessopt.la
if USING_MULTIPLELIBS
mftraining_LDADD += \
$(top_srcdir)/textord/libtesseract_textord.la \
$(top_srcdir)/classify/libtesseract_classify.la \
$(top_srcdir)/dict/libtesseract_dict.la \
$(top_srcdir)/ccstruct/libtesseract_ccstruct.la \
$(top_srcdir)/image/libtesseract_image.la \
$(top_srcdir)/cutil/libtesseract_cutil.la \
$(top_srcdir)/viewer/libtesseract_viewer.la \
$(top_srcdir)/ccmain/libtesseract_main.la \
$(top_srcdir)/cube/libtesseract_cube.la \
$(top_srcdir)/neural_networks/runtime/libtesseract_neural.la \
$(top_srcdir)/wordrec/libtesseract_wordrec.la \
$(top_srcdir)/ccutil/libtesseract_ccutil.la
else
mftraining_LDADD += \
$(top_srcdir)/api/libtesseract.la
endif
shapeclustering_SOURCES = shapeclustering.cpp
#shapeclustering_LDFLAGS = -static
shapeclustering_LDADD = \
libtesseract_training.la \
libtesseract_tessopt.la
if USING_MULTIPLELIBS
shapeclustering_LDADD += \
$(top_srcdir)/textord/libtesseract_textord.la \
$(top_srcdir)/classify/libtesseract_classify.la \
$(top_srcdir)/dict/libtesseract_dict.la \
$(top_srcdir)/ccstruct/libtesseract_ccstruct.la \
$(top_srcdir)/image/libtesseract_image.la \
$(top_srcdir)/cutil/libtesseract_cutil.la \
$(top_srcdir)/viewer/libtesseract_viewer.la \
$(top_srcdir)/ccmain/libtesseract_main.la \
$(top_srcdir)/cube/libtesseract_cube.la \
$(top_srcdir)/neural_networks/runtime/libtesseract_neural.la \
$(top_srcdir)/wordrec/libtesseract_wordrec.la \
$(top_srcdir)/ccutil/libtesseract_ccutil.la
else
shapeclustering_LDADD += \
$(top_srcdir)/api/libtesseract.la
endif
unicharset_extractor_SOURCES = unicharset_extractor.cpp
#unicharset_extractor_LDFLAGS = -static
unicharset_extractor_LDADD = \
libtesseract_tessopt.la
if USING_MULTIPLELIBS
unicharset_extractor_LDADD += \
$(top_srcdir)/ccutil/libtesseract_ccutil.la \
$(top_srcdir)/ccstruct/libtesseract_ccstruct.la
else
unicharset_extractor_LDADD += \
$(top_srcdir)/api/libtesseract.la
endif
wordlist2dawg_SOURCES = wordlist2dawg.cpp
#wordlist2dawg_LDFLAGS = -static
wordlist2dawg_LDADD = \
libtesseract_tessopt.la
if USING_MULTIPLELIBS
wordlist2dawg_LDADD += \
$(top_srcdir)/classify/libtesseract_classify.la \
$(top_srcdir)/dict/libtesseract_dict.la \
$(top_srcdir)/ccstruct/libtesseract_ccstruct.la \
$(top_srcdir)/image/libtesseract_image.la \
$(top_srcdir)/cutil/libtesseract_cutil.la \
$(top_srcdir)/viewer/libtesseract_viewer.la \
$(top_srcdir)/ccmain/libtesseract_main.la \
$(top_srcdir)/cube/libtesseract_cube.la \
$(top_srcdir)/neural_networks/runtime/libtesseract_neural.la \
$(top_srcdir)/wordrec/libtesseract_wordrec.la \
$(top_srcdir)/textord/libtesseract_textord.la \
$(top_srcdir)/ccutil/libtesseract_ccutil.la
else
wordlist2dawg_LDADD += \
$(top_srcdir)/api/libtesseract.la
endif