From 30e5220f2e43cec085c12526e8611b18f4445799 Mon Sep 17 00:00:00 2001 From: zdenop Date: Fri, 16 May 2014 19:36:32 +0000 Subject: [PATCH] fix training build for opencl and mingw git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@1103 d0cd1f9f-072b-0410-8dd7-cf729c803f20 --- training/Makefile.am | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/training/Makefile.am b/training/Makefile.am index 016aa7d8e8..4bd02b5d6e 100644 --- a/training/Makefile.am +++ b/training/Makefile.am @@ -284,11 +284,27 @@ cntraining_LDADD += -lws2_32 combine_tessdata_LDADD += -lws2_32 dawg2wordlist_LDADD += -lws2_32 mftraining_LDADD += -lws2_32 +set_unicharset_properties_LDADD += -lws2_32 shapeclustering_LDADD += -lws2_32 unicharset_extractor_LDADD += -lws2_32 +text2image_LDADD += -lws2_32 wordlist2dawg_LDADD += -lws2_32 AM_CPPFLAGS += -I$(top_srcdir)/vs2010/port noinst_HEADERS += ../vs2010/port/strcasestr.h libtesseract_training_la_SOURCES += ../vs2010/port/strcasestr.cpp endif + +if USE_OPENCL +ambiguous_words_LDADD += $(OPENCL_LIB) +classifier_tester_LDADD += $(OPENCL_LIB) +cntraining_LDADD += $(OPENCL_LIB) +combine_tessdata_LDADD += $(OPENCL_LIB) +dawg2wordlist_LDADD += $(OPENCL_LIB) +mftraining_LDADD += $(OPENCL_LIB) +set_unicharset_properties_LDADD += $(OPENCL_LIB) +shapeclustering_LDADD += $(OPENCL_LIB) +text2image_LDADD += $(OPENCL_LIB) +unicharset_extractor_LDADD += $(OPENCL_LIB) +wordlist2dawg_LDADD += $(OPENCL_LIB) +endif