summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMartin Miller2017-03-17 18:36:59 -0500
committerMartin Miller2017-03-17 18:36:59 -0500
commitc284c54738cf8ac85e509581f6c496a5222eaf99 (patch)
tree54873ee02b4fa090b6a49c5b7d2ea4b795a6a8dd /Makefile
parentd85338805b8bf4b617e617bf5dcb7e72084b76d9 (diff)
downloadrefslam-c284c54738cf8ac85e509581f6c496a5222eaf99.zip
refslam-c284c54738cf8ac85e509581f6c496a5222eaf99.tar.gz
Update Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e69de29..8b93e6b 100644
--- a/Makefile
+++ b/Makefile
@@ -0,0 +1,17 @@
+OBJECT=src/main.o
+CXXFLAGS+=-O2 -march=native
+#CXXFLAGS+=-g
+CXXFLAGS+=$(shell pkg-config --cflags eigen3)
+#CXXFLAGS+=$(shell pkg-config --cflags opencv)
+#LIBS+=$(shell pkg-config --libs opencv)
+
+slam: ${OBJECT}
+ $(CXX) -o $@ $^ $(CXXFLAGS) ${LIBS}
+
+.cpp.o:
+ $(CXX) $(CXXFLAGS) ${LIBS} -c $< -o $@
+
+.PHONY: clean
+clean:
+ rm -f slam *.o
+