summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorFlorian Jung <florian.a.jung@web.de>2012-12-04 00:56:31 +0100
committerFlorian Jung <florian.a.jung@web.de>2012-12-04 00:56:31 +0100
commit86e58a4a631306f05a4bf13fb00fb2350e836a21 (patch)
tree583e68ea2e60cdb1d011645093a8d2021d78efd4 /GNUmakefile
parent7abab26e3fcdfd6b0f61e3f413d0a4a05c20771c (diff)
frickelige GNUmakefile
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
new file mode 100644
index 0000000..1fd265f
--- /dev/null
+++ b/GNUmakefile
@@ -0,0 +1,20 @@
+.PHONY: clean
+
+all: detect_road_borders mariokart
+
+clean:
+ rm -f *.o mariokart detect_road_borders
+
+.cpp.o:
+ g++ `pkg-config --cflags opencv` -g -c $<
+
+detect_road_borders: detect_road_borders.cpp
+ g++ `pkg-config --libs --cflags opencv` -g detect_road_borders.cpp -o detect_road_borders
+
+test_detect: detect_road_borders
+ ./detect_road_borders test.mpg
+
+
+mariokart: mariokart.cpp os.h joystick.cpp xorg_grabber.cpp road_thresholder.cpp horizon_steerer.cpp naive_steerer.cpp steer_accumulator.cpp util.cpp
+ g++ `pkg-config --libs --cflags opencv` -lxcb -lpthread -g mariokart.cpp os.h joystick.cpp xorg_grabber.cpp road_thresholder.cpp horizon_steerer.cpp naive_steerer.cpp steer_accumulator.cpp util.cpp -o mariokart
+