-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·44 lines (29 loc) · 967 Bytes
/
Makefile
File metadata and controls
executable file
·44 lines (29 loc) · 967 Bytes
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
CXX = g++
LINK = g++
LIBS = -Wall -L/Developer/NVIDIA/CUDA-6.5/lib
LDFLAGS = `pkg-config --libs opencv` -lopencv_gpu -stdlib=libstdc++
CFLAGS = `pkg-config --cflags opencv` -I./include -stdlib=libstdc++
TARGETS = stereo_calib app
all: $(TARGETS)
app: app.o params.o calibration.o pointcloud.o
$(LINK) $(LIBS) -o bin/$@ tmp/params.o tmp/calibration.o tmp/pointcloud.o tmp/$< $(LDFLAGS)
stereo_calib: stereo_calib.o
$(LINK) $(LIBS) -o bin/$@ tmp/$< $(LDFLAGS)
app.o: app.cpp
$(CXX) -c -o tmp/$@ $< $(CFLAGS)
params.o: params.cpp
$(CXX) -c -o tmp/$@ $< $(CFLAGS)
calibration.o: calibration.cpp
$(CXX) -c -o tmp/$@ $< $(CFLAGS)
pointcloud.o: pointcloud.cpp
$(CXX) -c -o tmp/$@ $< $(CFLAGS)
cam.o: cam.cpp
$(CXX) -c -o tmp/$@ $< $(CFLAGS)
pair.o: pair.cpp
$(CXX) -c -o tmp/$@ $< $(CFLAGS)
stereo_calib.o: stereo_calib.cpp
$(CXX) -c -o tmp/$@ $< $(CFLAGS)
# @echo target is $@, source is $<
clean:
rm -f *.o *~
rm -f $(TARGETS)