Makefile.am 3.56 KB
Newer Older
1
2
# Copyright (C) 2009, 2010 EPITA Research and Development Laboratory
# (LRDE).
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#
# This file is part of Olena.
#
# Olena is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation, version 2 of the License.
#
# Olena is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Olena.  If not, see <http://www.gnu.org/licenses/>.
Guillaume Lazzara's avatar
Guillaume Lazzara committed
17

18
19
include $(top_srcdir)/scribo/scribo.mk

20
SUBDIRS =					\
Guillaume Lazzara's avatar
Guillaume Lazzara committed
21
  binarization 					\
22
  contest 					\
23
  debug 					\
24
  primitive 					\
25
  filter 					\
26
  misc 						\
27
  postprocessing 				\
Guillaume Lazzara's avatar
Guillaume Lazzara committed
28
  preprocessing 				\
29
  table	 					\
Guillaume Lazzara's avatar
Guillaume Lazzara committed
30
31
  text 						\
  toolchain
32

Guillaume Lazzara's avatar
Guillaume Lazzara committed
33

Guillaume Lazzara's avatar
Guillaume Lazzara committed
34

35
utilexec_PROGRAMS =
36

37

38
if HAVE_TESSERACT
Guillaume Lazzara's avatar
Guillaume Lazzara committed
39

40
    utilexec_PROGRAMS	    += pbm_text_in_doc
41
42
    pbm_text_in_doc_SOURCES  = pbm_text_in_doc.cc
    pbm_text_in_doc_CPPFLAGS = $(AM_CPPFLAGS) \
Guillaume Lazzara's avatar
Guillaume Lazzara committed
43
			       $(TESSERACT_CPPFLAGS) \
44
45
			       $(TIFF_CPPFLAGS) \
			       -I$(top_builddir)
46
    pbm_text_in_doc_LDFLAGS  = $(AM_LDFLAGS) \
Guillaume Lazzara's avatar
Guillaume Lazzara committed
47
48
49
			       $(TESSERACT_LDFLAGS) \
			       $(TIFF_LDFLAGS) \
			       -lpthread
Guillaume Lazzara's avatar
Guillaume Lazzara committed
50

Guillaume Lazzara's avatar
Guillaume Lazzara committed
51
endif HAVE_TESSERACT
Guillaume Lazzara's avatar
Guillaume Lazzara committed
52
53


Guillaume Lazzara's avatar
Guillaume Lazzara committed
54
if HAVE_MAGICKXX
55

56
    utilexec_PROGRAMS		   += text_in_doc_preprocess
57
    text_in_doc_preprocess_SOURCES  = text_in_doc_preprocess.cc
Guillaume Lazzara's avatar
Guillaume Lazzara committed
58
    text_in_doc_preprocess_CPPFLAGS = $(AM_CPPFLAGS) \
59
				      $(MAGICKXX_CPPFLAGS)
Guillaume Lazzara's avatar
Guillaume Lazzara committed
60
    text_in_doc_preprocess_LDFLAGS  = $(AM_LDFLAGS) \
61
62
63
			      	      -lpthread \
				      $(MAGICKXX_LDFLAGS)

64

65
    utilexec_PROGRAMS	    += text_in_picture
66
    text_in_picture_SOURCES  = text_in_picture.cc
Guillaume Lazzara's avatar
Guillaume Lazzara committed
67
    text_in_picture_CPPFLAGS = $(AM_CPPFLAGS) \
68
			       $(MAGICKXX_CPPFLAGS)
Guillaume Lazzara's avatar
Guillaume Lazzara committed
69
    text_in_picture_LDFLAGS  = $(AM_LDFLAGS) \
70
71
		      	       -lpthread \
			       $(MAGICKXX_LDFLAGS)
Guillaume Lazzara's avatar
Guillaume Lazzara committed
72

73
74
75
76
77
78
79
80
81
82

    utilexec_PROGRAMS	    	+= text_in_picture_neg
    text_in_picture_neg_SOURCES  = text_in_picture_neg.cc
    text_in_picture_neg_CPPFLAGS = $(AM_CPPFLAGS) \
			       	   $(MAGICKXX_CPPFLAGS)
    text_in_picture_neg_LDFLAGS  = $(AM_LDFLAGS) \
		      		   -lpthread \
			       	   $(MAGICKXX_LDFLAGS)


83
if HAVE_TESSERACT
84

85
    utilexec_PROGRAMS			+= text_recognition_in_picture
86
87
88
89
    text_recognition_in_picture_SOURCES  = text_recognition_in_picture.cc
    text_recognition_in_picture_CPPFLAGS = $(AM_CPPFLAGS) \
	  			           $(TESSERACT_CPPFLAGS) \
			       		   $(TIFF_CPPFLAGS) \
90
91
			       		   $(MAGICKXX_CPPFLAGS) \
					   -I$(top_builddir)
92
93
94
95
96
    text_recognition_in_picture_LDFLAGS  = $(AM_LDFLAGS) \
		      	       		   -lpthread \
	  			           $(TESSERACT_LDFLAGS) \
			       		   $(TIFF_LDFLAGS) \
					   $(MAGICKXX_LDFLAGS)
97

98
99
100
101
102
103
104
105
106
107
108
109
110

    utilexec_PROGRAMS	   += content_in_doc
    content_in_doc_SOURCES  = content_in_doc.cc
    content_in_doc_CPPFLAGS = $(AM_CPPFLAGS) \
			      $(TESSERACT_CPPFLAGS) \
			      $(TIFF_CPPFLAGS) \
			      $(MAGICKXX_CPPFLAGS)
    content_in_doc_LDFLAGS  = $(AM_LDFLAGS) \
			      $(TESSERACT_LDFLAGS) \
			      $(TIFF_LDFLAGS) \
			      $(MAGICKXX_LDFLAGS) \
			      -lpthread

111
endif HAVE_TESSERACT
112

Guillaume Lazzara's avatar
Guillaume Lazzara committed
113
endif HAVE_MAGICKXX
Guillaume Lazzara's avatar
Guillaume Lazzara committed
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129


# Generated by configure from scribo-cli.in.
dist_bin_SCRIPTS = scribo-cli

do_subst = sed -e 's|@utilexecdir[@]|$(utilexecdir)|g'

scribo-cli: $(srcdir)/scribo-cli.in Makefile
	rm -f $@ $@.tmp
	srcdir=''; \
	test -f ./$@.in || srcdir=$(srcdir)/; \
	$(do_subst) $${srcdir}$@.in >$@.tmp
	chmod +x $@.tmp
	chmod a-w $@.tmp
	mv $@.tmp $@

130
CLEANFILES = $(dist_bin_SCRIPTS)
Guillaume Lazzara's avatar
Guillaume Lazzara committed
131
132

EXTRA_DIST = scribo-cli.in