-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
34 lines (26 loc) · 1.75 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# use "g++" to compile source files.
CC = g++
# the linker is also "g++". It might be something else with other compilers.
LD = g++
# Compiler flags go here.
CFLAGS = -g -Wall -I /usr/include/src/
# Linker flags go here. Currently there aren't any, but if we'll switch to
# code optimization, we might add "-s" here to strip debug info and symbols.
LDFLAGS = -llinear -lsvm -ltiff -lpthread -lopencv_shape -lopencv_stitching -lopencv_superres -lopencv_videostab -lopencv_aruco -lopencv_bgsegm -lopencv_bioinspired -lopencv_ccalib -lopencv_datasets -lopencv_dpm -lopencv_face -lopencv_freetype -lopencv_fuzzy -lopencv_hdf -lopencv_line_descriptor -lopencv_optflow -lopencv_video -lopencv_plot -lopencv_reg -lopencv_saliency -lopencv_stereo -lopencv_structured_light -lopencv_phase_unwrapping -lopencv_rgbd -lopencv_viz -lopencv_surface_matching -lopencv_text -lopencv_ximgproc -lopencv_calib3d -lopencv_features2d -lopencv_flann -lopencv_xobjdetect -lopencv_objdetect -lopencv_ml -lopencv_xphoto -lopencv_highgui -lopencv_videoio -lopencv_imgcodecs -lopencv_photo -lopencv_imgproc -lopencv_core -L ./tensorflow-dev/lib -ltensorflow_cc -lprotobuf
# use this command to erase files.
RM = rm -rf
# list of generated object files.
OBJS = CRNN_Infer.o base64.o tinyxml2.o OCR_Util.o OCR_ClassLabel.o OCR_Akshara.o OCR_SegmentedComponent.o OCR_Word.o OCR_Line.o OCR_Block.o OCR_Page.o OCR_XML.o KannadaClassifier.o
# program executable file name.
PROG = KannadaClassifier.exe
# top-level rule, to compile everything.
all: $(PROG)
# meta-rule to link the program
KannadaClassifier.exe: $(OBJS)
$(LD) $(OBJS) $(LDFLAGS) -o $@
# meta-rule for compiling any "C" source file.
%.o: src/%.cpp
$(CC) $(CFLAGS) -c $<
# rule for cleaning re-compilable files.
clean:
$(RM) $(PROG) $(OBJS) output