summaryrefslogtreecommitdiff
path: root/GNUmakefile
blob: 56d8b79a7855eb91bdddd2bc586404919deda018 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.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