-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (32 loc) · 953 Bytes
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
INCLUDE_DIRS =
LIB_DIRS =
CC=g++
CDEFS=
CFLAGS= -O0 -g $(INCLUDE_DIRS) $(CDEFS)
LIBS= -lrt
CPPLIBS= -L/usr/lib -L/usr/include/tesseract/ -L/usr/include/leptonica -lopencv_core -lopencv_flann -lopencv_video -ltesseract -ljpeg -ltiff -llept -lespeak
HFILES=
CFILES=
CPPFILES= profiler.cpp tesseract.cpp
SRCS= ${HFILES} ${CFILES}
CPPOBJS= ${CPPFILES:.cpp=.o}
all: profiler
clean:
-rm -f *.o *.d
-rm -f profiler histcomp espeak tesseract
distclean:
-rm -f *.o *.d
profiler: profiler.o
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $@.o `pkg-config --libs opencv` $(CPPLIBS)
histcomp: histcomp.o
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $@.o `pkg-config --libs opencv` $(CPPLIBS)
espeak: espeak.o
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $@.o -lespeak
tesseract: tesseract.o
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $@.o `pkg-config --libs opencv` $(CPPLIBS)
#`pkg-config --libs opencv` $(CPPLIBS)
depend:
.c.o:
$(CC) $(CFLAGS) -c $<
.cpp.o:
$(CC) $(CFLAGS) -c $<