-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
101 lines (73 loc) · 1.77 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# DO NOT DELETE THIS LINE -- make depend depends on it.
#3DS modelling game dependencies
3DSLIB = -l3ds
3DSFILES = ModelsGame.o\
ModelBrowser.o\
ModelControls.o\
MGButton.o\
Model3ds.o\
ModelsGameData.o
EXTRA_CFLAGS:= -DENABLE_MODELS_GAME
# Edit the lines below to point to any needed include and link paths
# Or to change the compiler's optimization flags
CC = g++
COMPILEFLAGS = ${CPPFLAGS} -D_LINUX -D_REENTRANT -Wall -O3 -march=nocona -msse3 -fno-strict-aliasing
LINKFLAGS = ${LDFLAGS} -lGVars3 -lcvd $(3DSLIB) -llapack -lGLU
# add OpenCV dependencies
COMPILEFLAGS += $(shell pkg-config --cflags opencv)
LINKFLAGS += $(shell pkg-config --libs opencv)
# Edit this line to change video source
VIDEOSOURCE = VideoSource_Linux_OpenCV.o
OBJECTS= main.o\
GLWindow2.o\
GLWindowMenu.o\
$(VIDEOSOURCE)\
System.o \
ATANCamera.o\
KeyFrame.o\
MapPoint.o\
Map.o\
SmallBlurryImage.o\
ShiTomasi.o \
HomographyInit.o \
MapMaker.o \
Bundle.o \
PatchFinder.o\
Relocaliser.o\
MiniPatch.o\
MapViewer.o\
ARDriver.o\
EyeGame.o\
Tracker.o\
tinyxml.o\
tinyxmlerror.o\
tinyxmlparser.o\
MapLockManager.o\
MD5.o\
MD5Wrapper.o\
MapSerializer.o\
Games.o\
Utils.o\
ShooterGame.o\
ShooterGameTarget.o\
$(3DSFILES)
CALIB_OBJECTS= GLWindow2.o\
GLWindowMenu.o\
$(VIDEOSOURCE)\
CalibImage.o \
CalibCornerPatch.o\
ATANCamera.o \
CameraCalibrator.o
All: PTAMM CameraCalibrator
PTAMM: $(OBJECTS)
$(CC) -o PTAMM $(OBJECTS) $(LINKFLAGS)
CameraCalibrator:$(CALIB_OBJECTS)
$(CC) -o CameraCalibrator $(CALIB_OBJECTS) $(LINKFLAGS)
%.o: %.cc
$(CC) $< -o $@ -c $(COMPILEFLAGS) $(EXTRA_CFLAGS)
clean:
rm *.o
depend:
rm dependecies; touch dependencies
makedepend -fdependencies $(INCLUDEFLAGS) $(MOREINCS) *.cc *.h
-include dependencies