-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
60 lines (41 loc) · 1.49 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
# Makefile
LIBS = -lwiringPi -lm -lgps
objs_g = integration.o motor.o mitibiki.o pid.o ring_buffer.o #GPSのみの制御
objs_g_and_c = ground_compass.o motor.o mitibiki.o pid.o ring_buffer.o compass.o acclgyro.o xbee_at.o#GPSとコンパス
objs_f = flight.o gut.o luxsensor.o ring_buffer.o xbee_at.o acclgyro.o bme280.o #flight
integration.out: $(objs_g)
gcc -g -Wall -O2 -o integration.out $(objs_g) $(LIBS)
ground_compass.out: $(objs_g_and_c)
gcc -g -Wall -O2 -o ground_compass.out $(objs_g_and_c) $(LIBS)
flight.out: $(objs_f)
gcc -g -Wall -O2 -o flight.out $(objs_f) $(LIBS)
sigintHandle.out: sigintHandle.o motor.o gut.o
gcc -g -Wall -O2 -o sigintHandle.out sigintHandle.o motor.o gut.o -lwiringPi
forward.out: forward.c motor.o
gcc -g -Wall -O2 -o forward.out forward.c motor.o -lwiringPi
sigintHandle.o: sigintHandle.c
gcc -c -Wall sigintHandle.c
ground_compass.o: ground_compass.c
gcc -c -Wall ground_compass.c
flight.o: flight.c
gcc -c -Wall flight.c
integration.o: integration.c
gcc -c -Wall integration.c
mitibiki.o: mitibiki.h mitibiki.c
gcc -c -Wall mitibiki.c
motor.o: motor.h motor.c
gcc -c -Wall motor.c
pid.o: pid.h pid.c
gcc -c -Wall pid.c
ring_buffer.o: ring_buffer.h ring_buffer.c
gcc -c -Wall ring_buffer.c
gut.o: gut.h gut.c
gcc -c -Wall gut.c
compass.o: compass.h compass.c
gcc -c -Wall compass.c
acclgyro.o: acclgyro.h acclgyro.c
gcc -c -Wall acclgyro.c
xbee_at.o: xbee_at.h xbee_at.c
gcc -c -Wall xbee_at.c
bme280.o:bme280.h bme280.c
gcc -c -Wall bme280.c