Makefile
1.94 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
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
INCLUDES= -I leitorXml/src/include \
-I libs/jthread/include -I libs/jcommon/include -I libs/jsocket/include -Wall
#receiveObjs = \
receiveXml.o
leitorXmlObjs = \
lerXml.o \
pontoArticulacao.o \
orientacaoMao.o \
expressaoFacial.o
#receiveObjsPre = $(addprefix receive/src/,$(receiveObjs) )
leitorXmlObjsPre = $(addprefix leitorXml/src/,$(leitorXmlObjs) )
#OBJECTS=$(receiveObjsPre) $(leitorXmlObjsPre) main.o
OBJECTS= $(leitorXmlObjsPre) main.o
all: jthread jsocket jcommon leitor
leitor: $(OBJECTS)
$(CC) -o leitor $(OBJECTS) $(LIBS) $(INCLUDES) $(FLAGS)
jthread:
@cd libs/jthread && make && cd ..
jsocket:
@cd libs/jsocket && make && cd ..
jcommon:
@cd libs/jcommon && make && cd ..
.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 {} \;
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 {} \;