Makefile
3.47 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
REVISION=`svn info |grep Rev | sed 2d | cut -d" " -f2`
CC=g++
FLAGS=-g
#LIBS= -L libs/jthread/lib -L libs/jcommon/lib -L libs/jsocket/lib -ljthread -lpthread -ljcommon -ljsocket
LIBS= `pkg-config --cflags jlibcpp` \
`pkg-config --libs jlibcpp` -lpython2.7 -llavid_base -llavid_io
INCLUDES=-I /usr/include/python2.7 -I util/src/include -I tradutor/src/include -I extratorSRT/src/include \
-I input/src/include -I servico/src/include -I synchronizer/src/include \
-I mixer/src/include -I recognize/src/include -I extratorTXT/src/include
#-I libs/jthread/include -I libs/jcommon/include -I libs/jsocket/include -Wall
utilObjs = \
logger.o
tradutorObjs = \
pyTradutor.o \
tradutorPortGlosa.o \
extratorSRTObjs = \
extratorSRT.o \
extratorSRT_exception.o \
subtitle.o \
extratorTXTObjs = \
extratorTXT.o \
extratorTXT_exception.o
inputObjs = \
inputFile.o \
inputException.o \
servicoObjs = \
serviceWindowGeneration.o \
serviceWindowGenerationFromSRT.o \
serviceWindowGenerationFromREC.o \
serviceWindowGenerationFromText.o \
serviceException.o
synchronizerObjs = \
synchronizer.o \
mixerObjs = \
Mixer.o
recognizeObjs = \
recognize.o \
recognizeException.o
utilObjsPre = $(addprefix util/src/,$(utilObjs) )
tradutorObjsPre = $(addprefix tradutor/src/,$(tradutorObjs) )
inputObjsPre = $(addprefix input/src/,$(inputObjs) )
servicoObjsPre = $(addprefix servico/src/,$(servicoObjs) )
synchronizerObjsPre = $(addprefix synchronizer/src/,$(synchronizerObjs) )
mixerObjsPre = $(addprefix mixer/src/,$(mixerObjs) )
extratorSRTObjsPre = $(addprefix extratorSRT/src/,$(extratorSRTObjs) )
recognizeObjsPre = $(addprefix recognize/src/,$(recognizeObjs) )
extratorTXTObjsPre = $(addprefix extratorTXT/src/,$(extratorTXTObjs) )
OBJECTS=$(utilObjsPre) $(tradutorObjsPre) $(extratorTXTObjsPre) $(inputObjsPre) $(servicoObjsPre) $(synchronizerObjsPre) $(mixerObjsPre) $(extratorSRTObjsPre) $(recognizeObjsPre) main.o
all: user_config libras
user_config:
@if [ ! -e "vlibras_user" ];then \
echo -n "Criando um link simbólico para este diretório...\n"; \
sudo chmod +x link_config.sh; \
sh link_config.sh; \
fi
libras: $(OBJECTS)
$(CC) -o vlibras $(OBJECTS) $(LIBS) $(INCLUDES) $(FLAGS)
.c.o: $<
$(CC) -DDEBUG_LEVEL=15 -c $< -o $@ $(LIBS) $(INCLUDES) $(FLAGS)
.cpp.o: $<
$(CC) -DDEBUG_LEVEL=15 -c $< -o $@ $(LIBS) $(INCLUDES) $(FLAGS)
clean:
@find -iname "*.o" -exec rm {} \;
@find -iname ".*.o" -exec rm {} \;
@find -iname "*.so" -exec rm {} \;
@find -iname "*~" -exec rm {} \;
@find -iname "*.swp" -exec rm {} \;
@find -iname "vlibras" -exec rm {} \;
@find -iname "*.class" -exec rm {} \;
@find -iname "*.pyc" -exec rm {} \;
@if [ -e "vlibras_user" ];then \
echo -n "Removendo o link simbólico deste usuário...\n"; \
rm vlibras_user; \
fi
del:
@find -iname "*.java" -exec rm {} \;
@find -iname "*.c" -exec rm {} \;
@find -iname "*.cpp" -exec rm {} \;
@find -iname "*.h" -exec rm {} \;
@find -iname "*.class" -exec rm {} \;
@find -iname "*.form" -exec rm {} \;
@find -iname "*.o" -exec rm {} \;
@find -iname ".*.o" -exec rm {} \;
@find -iname "*~" -exec rm {} \;
@find -iname "*.log" -exec rm {} \;
@find -iname "*.swp" -exec rm {} \;
@find -iname "*.tmp" -exec rm {} \;
@find -iname "*.svn-base" -exec rm -r {} \;
@find -iname "*.svn" -exec rm -r {} \;
@find -iname "Makefile" -exec rm {} \;
svn:
@find -iname "*.log" -exec rm {} \;
@find -iname "*.swp" -exec rm {} \;
@find -iname "*.tmp" -exec rm {} \;
@find -iname "*.svn-base" -exec rm -r {} \;
@find -iname "*.svn" -exec rm -r {} ;\