From 86e58a4a631306f05a4bf13fb00fb2350e836a21 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Tue, 4 Dec 2012 00:56:31 +0100 Subject: frickelige GNUmakefile --- GNUmakefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 GNUmakefile 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 + -- cgit v1.2.3