-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
118 lines (81 loc) · 5.16 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
all: system tests
#bin/console.o
system: bin/subsys_timing.o bin/system_logger.o bin/timing_analysis.o bin/console.o bin/Subsystem.o bin/Sensor.o bin/Actuator.o bin/SystemControl.o bin/Steering.o bin/Sonar.o bin/shirtt.o bin/Motor.o bin/Compass.o bin/GPS.o
arm-linux-gnueabi-g++ bin/*.o -o 0system/System.o -lpthread -lrt
tests: motor_tests sonar_tests compass_tests steering_tests integration_tests
motor_tests: test/bin/motor_basic_test.o test/bin/motor_fine_control.o
sonar_tests: test/bin/sonar_basic_test.o
compass_tests: test/bin/compass_basic_test.o test/bin/compass_square.o
steering_tests: test/bin/steer_basic.o test/bin/steer_fine_control.o
integration_tests: \
test/bin/sonar_compass_steering.o \
test/bin/motor_steering_compass.o \
test/bin/steering_motor_spiral.o \
test/bin/straight_line_no_compass.o \
test/bin/compass_steering.o \
test/bin/sonar_motor.o \
test/bin/motor_steering_compass_sonar.o \
test/bin/steering_compass_sonar_gps.o \
test/bin/motor_steering_compass_sonar_gps.o
bin/subsys_timing.o: subsys_timing.cpp
arm-linux-gnueabi-g++ -c subsys_timing.cpp -o bin/subsys_timing.o
bin/system_logger.o: system_logger.cpp
arm-linux-gnueabi-g++ -c system_logger.cpp -o bin/system_logger.o
bin/timing_analysis.o: timing_analysis.cpp
arm-linux-gnueabi-g++ -c timing_analysis.cpp -o bin/timing_analysis.o
bin/Compass.o: Compass.cpp
arm-linux-gnueabi-g++ -c Compass.cpp -o bin/Compass.o
bin/GPS.o: GPS.cpp
arm-linux-gnueabi-g++ -c GPS.cpp -o bin/GPS.o
bin/Motor.o: Motor.cpp
arm-linux-gnueabi-g++ -c Motor.cpp -o bin/Motor.o
bin/shirtt.o: shirtt.cpp
arm-linux-gnueabi-g++ -c shirtt.cpp -o bin/shirtt.o
bin/Sonar.o: Sonar.cpp
arm-linux-gnueabi-g++ -c Sonar.cpp -o bin/Sonar.o
bin/Steering.o: Steering.cpp
arm-linux-gnueabi-g++ -c Steering.cpp -o bin/Steering.o
bin/Sensor.o: Sensor.cpp
arm-linux-gnueabi-g++ -c Sensor.cpp -o bin/Sensor.o
bin/Actuator.o: Actuator.cpp
arm-linux-gnueabi-g++ -c Actuator.cpp -o bin/Actuator.o
bin/Subsystem.o: Subsystem.cpp
arm-linux-gnueabi-g++ -c Subsystem.cpp -o bin/Subsystem.o
bin/SystemControl.o: SystemControl.cpp
arm-linux-gnueabi-g++ -c SystemControl.cpp -o bin/SystemControl.o
bin/console.o: console.cpp
arm-linux-gnueabi-g++ -c console.cpp -o bin/console.o
test/bin/sonar_basic_test.o: test/Sonar/sonar_basic_test.cpp
arm-linux-gnueabi-g++ -o test/bin/sonar_basic_test.o test/Sonar/sonar_basic_test.cpp -lpthread -lrt
test/bin/motor_basic_test.o: test/Motor/motor_basic_test.cpp
arm-linux-gnueabi-g++ -o test/bin/motor_basic_test.o test/Motor/motor_basic_test.cpp -lpthread -lrt
test/bin/motor_fine_control.o: test/Motor/motor_fine_control.cpp
arm-linux-gnueabi-g++ -o test/bin/motor_fine_control.o test/Motor/motor_fine_control.cpp -lpthread -lrt
test/bin/compass_basic_test.o: test/Compass/compass_basic_test.cpp
arm-linux-gnueabi-g++ -o test/bin/compass_basic_test.o test/Compass/compass_basic_test.cpp -lpthread -lrt
test/bin/sonar_compass_steering.o: test/integration/sonar_compass_steering.cpp
arm-linux-gnueabi-g++ -o test/bin/sonar_compass_steering.o test/integration/sonar_compass_steering.cpp -lpthread -lrt
test/bin/motor_steering_compass.o: test/integration/motor_steering_compass.cpp
arm-linux-gnueabi-g++ -o test/bin/motor_steering_compass.o test/integration/motor_steering_compass.cpp -lpthread -lrt
test/bin/compass_steering.o: test/integration/compass_steering.cpp
arm-linux-gnueabi-g++ -o test/bin/compass_steering.o test/integration/compass_steering.cpp -lpthread -lrt
test/bin/compass_square.o: test/integration/compass_square.cpp
arm-linux-gnueabi-g++ -o test/bin/compass_square.o test/integration/compass_square.cpp -lpthread -lrt
test/bin/steer_basic.o: test/Steering/steer_basic.cpp
arm-linux-gnueabi-g++ -o test/bin/steer_basic.o test/Steering/steer_basic.cpp -lpthread -lrt
test/bin/steer_fine_control.o: test/Steering/steer_fine_control.cpp
arm-linux-gnueabi-g++ -o test/bin/steer_fine_control.o test/Steering/steer_fine_control.cpp -lpthread -lrt
test/bin/steering_motor_spiral.o: test/integration/steering_motor_spiral.cpp
arm-linux-gnueabi-g++ -o test/bin/steering_motor_spiral.o test/integration/steering_motor_spiral.cpp -lpthread -lrt
test/bin/straight_line_no_compass.o: test/integration/straight_line_no_compass.cpp
arm-linux-gnueabi-g++ -o test/bin/straight_line_no_compass.o test/integration/straight_line_no_compass.cpp -lpthread -lrt
test/bin/sonar_motor.o: test/integration/sonar_motor.cpp
arm-linux-gnueabi-g++ -o test/bin/sonar_motor.o test/integration/sonar_motor.cpp -lpthread -lrt
test/bin/motor_steering_compass_sonar.o: test/integration/motor_steering_compass_sonar.cpp
arm-linux-gnueabi-g++ -o test/bin/motor_steering_compass_sonar.o test/integration/motor_steering_compass_sonar.cpp -lpthread -lrt
test/bin/steering_compass_sonar_gps.o: test/integration/steering_compass_sonar_gps.cpp
arm-linux-gnueabi-g++ -o test/bin/steering_compass_sonar_gps.o test/integration/steering_compass_sonar_gps.cpp -lpthread -lrt
test/bin/motor_steering_compass_sonar_gps.o: test/integration/motor_steering_compass_sonar_gps.cpp
arm-linux-gnueabi-g++ -o test/bin/motor_steering_compass_sonar_gps.o test/integration/motor_steering_compass_sonar_gps.cpp -lpthread -lrt
clean:
rm -rf test/*/*.o bin/*.o 0system/*.o