Makefile
4.64 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
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 xml/src/include \
-I extratorCC/src/include -I extratorSRT/src/include -I monitorPCR/src/include -I codificador/src/include \
-I input/src/include -I demux/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 \
tspacket.o
tradutorObjs = \
pyTradutor.o \
tradutorPortGlosa.o \
ouvinteTradutor.o
demuxObjs = \
bitutil_hal.o \
demux.o \
filter.o \
packet.o \
sectionBuffer.o \
section_hal.o \
util.o \
demuxListener.o \
ouvinteDemux.o
extratorCCObjs = \
extratorCC.o \
ouvinteCC.o
extratorSRTObjs = \
extratorSRT.o \
reader_exception.o \
extratorSRT_exception.o \
reader_srt.o \
subtitle.o
extratorTXTObjs = \
extratorTXT.o \
extratorTXT_exception.o
monitorPCRObjs = \
monitor_pcr.o
xmlObjs = \
receiveXml.o \
readXml.o
codificadorObjs = \
crc32.o \
inmanagementdata.o \
librascontrolmessage.o \
librascontrolsection.o \
librasdatamessage.o \
recebeglosa.o \
librassection.o \
codificadormanager.o
#inipMpeg.o \
#inipRaw.o \
#inputMpeg.o \
#inputRaw.o \
#nrs232Mpeg.o\
#inrs232Raw.o\
inputObjs = \
inputFile.o \
inputException.o \
ouvinteInput.o
servicoObjs = \
serviceWindowGeneration.o \
serviceWindowGenerationFromSRT.o \
serviceWindowGenerationFromCC.o \
serviceWindowGenerationFromREC.o \
serviceWindowGenerationFromText.o \
serviceException.o
synchronizerObjs = \
synchronizer.o \
ouvinteSynchronizer.o
mixerObjs = \
Mixer.o
#TimerGtaaas.o
recognizeObjs = \
recognize.o \
recognizeException.o
utilObjsPre = $(addprefix util/src/,$(utilObjs) )
tradutorObjsPre = $(addprefix tradutor/src/,$(tradutorObjs) )
extratorCCObjsPre = $(addprefix extratorCC/src/,$(extratorCCObjs) )
codificadorObjsPre = $(addprefix codificador/src/,$(codificadorObjs) )
inputObjsPre = $(addprefix input/src/,$(inputObjs) )
demuxObjsPre = $(addprefix demux/src/,$(demuxObjs) )
xmlObjsPre = $(addprefix xml/src/,$(xmlObjs) )
servicoObjsPre = $(addprefix servico/src/,$(servicoObjs) )
synchronizerObjsPre = $(addprefix synchronizer/src/,$(synchronizerObjs) )
mixerObjsPre = $(addprefix mixer/src/,$(mixerObjs) )
extratorSRTObjsPre = $(addprefix extratorSRT/src/,$(extratorSRTObjs) )
monitorPCRObjsPre = $(addprefix monitorPCR/src/,$(monitorPCRObjs) )
recognizeObjsPre = $(addprefix recognize/src/,$(recognizeObjs) )
extratorTXTObjsPre = $(addprefix extratorTXT/src/,$(extratorTXTObjs) )
OBJECTS=$(utilObjsPre) $(tradutorObjsPre) $(extratorCCObjsPre) $(extratorTXTObjsPre) $(codificadorObjsPre) $(inputObjsPre) $(demuxObjsPre) $(xmlObjsPre) $(servicoObjsPre) $(synchronizerObjsPre) $(mixerObjsPre) $(extratorSRTObjsPre) $(monitorPCRObjsPre) $(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 {} ;\