summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--GNUmakefile23
-rw-r--r--Makefile6
2 files changed, 3 insertions, 26 deletions
diff --git a/GNUmakefile b/GNUmakefile
deleted file mode 100644
index 56d8b79..0000000
--- a/GNUmakefile
+++ /dev/null
@@ -1,23 +0,0 @@
-.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
-
-detect_road_borders_with_horizon_steerer: detect_road_borders_with_horizon_steerer.cpp util.cpp horizon_steerer.cpp
- g++ `pkg-config --libs --cflags opencv` -g detect_road_borders_with_horizon_steerer.cpp util.cpp horizon_steerer.cpp -o detect_road_borders_with_horizon_steerer
-
-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
-
diff --git a/Makefile b/Makefile
index a087fbc..7d7777c 100644
--- a/Makefile
+++ b/Makefile
@@ -13,15 +13,15 @@ joystick.o: joystick.cpp os.h
g++ `pkg-config --cflags opencv` -g -c $<
detect_road_borders: detect_road_borders.cpp
- g++ `pkg-config --libs --cflags opencv` -g $> -o $@
+ g++ `pkg-config --libs --cflags opencv` -g $^ -o $@
detect_road_borders_with_horizon_steerer: detect_road_borders_with_horizon_steerer.cpp horizon_steerer.o util.o
- g++ `pkg-config --libs --cflags opencv` -g $> -o $@
+ g++ `pkg-config --libs --cflags opencv` -g $^ -o $@
test_detect: detect_road_borders
./detect_road_borders test.mpg
mariokart: mariokart.o os.h joystick.o xorg_grabber.o road_thresholder.o horizon_steerer.o naive_steerer.o steer_accumulator.o util.o
- g++ `pkg-config --libs --cflags opencv` -lxcb -lpthread -g $> -o $@
+ g++ `pkg-config --libs --cflags opencv` -lxcb -lpthread -g $^ -o $@