-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathMakefile
57 lines (50 loc) · 1.04 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
DISTDIR=./bin/
BIN=CycloTracker
OBJ=CycloTracker.o \
VideoOutput.o \
ImageProcessor.o \
ObjectCounter.o \
ObjectLocator.o \
ObjectTracker.o \
PointTracker.o \
TrackedObject.o \
Sensors.o \
Camera.o \
CoordTransform.o \
Utils.o
CFLAGS=--std=c++11 \
-Wall \
-Wextra \
-Wpedantic \
-Winit-self \
-Wmissing-braces \
-Wmissing-include-dirs \
-Wno-return-local-addr \
-Wswitch-default \
-Wmaybe-uninitialized \
-Wfloat-equal \
-Wundef \
-Wzero-as-null-pointer-constant \
-Wmissing-declarations \
-Winline \
-g \
-O2 \
`pkg-config --cflags opencv` \
-Werror=c++0x-compat \
-pthread
# -Wshadow
# -Wdouble-promotion //colocar em maquinas 32bits . autconf?
# https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
LDFLAGS=-lm \
`pkg-config --libs opencv` \
-lpthread
all:$(OBJ)
@mkdir -p $(DISTDIR)
@mkdir -p tmp
g++ $(OBJ) -o $(DISTDIR)/$(BIN) $(LDFLAGS)
clean:
rm -f $(DISTDIR)/$(BIN)
rm -f $(OBJ)
%.o: %.cpp
@echo CCXX $< -o $@ CFLAGS
@g++ -c $< -o $@ $(CFLAGS)