-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
69 lines (56 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
58
59
60
61
62
63
64
65
66
67
68
69
SPT = spt
CMDIFF = cmdiff
RESAM = resam
CXX = g++
CXXFLAGS = -g -Wall -Wfatal-errors -march=native -O2 -fopenmp
LD = g++
LDFLAGS_SPT =\
-fopenmp\
-lnetcdf\
-lopencv_core\
-lopencv_imgproc\
-lopencv_flann\
-lopencv_highgui\
LDFLAGS_CMDIFF =\
-lnetcdf\
-lopencv_core\
-lopencv_imgproc\
-lopencv_highgui\
LDFLAGS_RESAM =\
-lnetcdf\
-lopencv_core\
-lopencv_imgproc\
-lopencv_highgui\
OFILES_SPT = \
utils.o\
io.o\
resample.o\
connectedcomponents.o\
filters.o\
spt.o\
OFILES_CMDIFF =\
utils.o\
io.o\
resample.o\
cmdiff.o\
OFILES_RESAM = \
utils.o\
io.o\
resample.o\
resam.o\
HFILES =\
spt.h\
connectedcomponents.h\
fastBilateral.hpp\
all: $(SPT) $(CMDIFF) $(RESAM)
$(SPT): $(OFILES_SPT)
$(LD) -o $(SPT) $(OFILES_SPT) $(LDFLAGS_SPT)
$(CMDIFF): $(OFILES_CMDIFF)
$(LD) -o $(CMDIFF) $(OFILES_CMDIFF) $(LDFLAGS_CMDIFF)
$(RESAM): $(OFILES_RESAM)
$(LD) -o $(RESAM) $(OFILES_RESAM) $(LDFLAGS_RESAM)
%.o: %.cc $(HFILES)
$(CXX) -c $(CXXFLAGS) $<
clean:
rm -f $(SPT) $(CMDIFF) $(RESAM) \
$(OFILES_SPT) $(OFILES_CMDIFF) $(OFILES_RESAM)