This repository has been archived by the owner on Apr 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
36 lines (30 loc) · 2.36 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
.PHONY: steering steering_make steering_flash driving driving_make driving_flash
all: steering/main.c steering/steering.c steering/steering.h driving/main.c driving/driving.c comms/comms.h
avr-gcc -mmcu=atmega328p steering/*.c comms/comms.c -o steering/output/steering.elf
avr-objcopy -h -S steering/output/steering.elf > steering/output/steering.lst
avr-objcopy -j .text -j .data -O ihex steering/output/steering.elf steering/output/steering.hex
avr-gcc -mmcu=atmega328p driving/*.c comms/comms.c -o driving/output/driving.elf
avr-objcopy -h -S driving/output/driving.elf > driving/output/driving.lst
avr-objcopy -j .text -j .data -O ihex driving/output/driving.elf driving/output/driving.hex
steering: steering/main.c steering/steering.c comms/comms.h
avr-gcc -mmcu=atmega328p steering/*.c comms/comms.c -o steering/output/steering.elf
avr-objcopy -h -S steering/output/steering.elf > steering/output/steering.lst
avr-objcopy -j .text -j .data -O ihex steering/output/steering.elf steering/output/steering.hex
avrdude -p m328p -c arduino -P /dev/ttyACM0 -D -U flash:w:steering/output/steering.hex:i
steering_make: steering/main.c steering/steering.c comms/comms.h
avr-gcc -mmcu=atmega328p steering/*.c comms/comms.c -o steering/output/steering.elf
avr-objcopy -h -S steering/output/steering.elf > steering/output/steering.lst
avr-objcopy -j .text -j .data -O ihex steering/output/steering.elf steering/output/steering.hex
steering_flash: steering/output/steering.hex
avrdude -p m328p -c arduino -P /dev/ttyACM0 -D -U flash:w:steering/output/steering.hex:i
driving: driving/main.c driving/driving.c comms/comms.h
avr-gcc -mmcu=atmega328p driving/*.c comms/comms.c -o driving/output/driving.elf
avr-objcopy -h -S driving/output/driving.elf > driving/output/driving.lst
avr-objcopy -j .text -j .data -O ihex driving/output/driving.elf driving/output/driving.hex
avrdude -p m328p -c arduino -P /dev/ttyACM0 -D -U flash:w:driving/output/driving.hex:i
driving_flash: driving/output/driving.hex
avrdude -p m328p -c arduino -P /dev/ttyACM0 -D -U flash:w:driving/output/driving.hex:i
driving_make: driving/main.c driving/driving.c comms/comms.h
avr-gcc -mmcu=atmega328p driving/*.c comms/comms.c -o driving/output/driving.elf
avr-objcopy -h -S driving/output/driving.elf > driving/output/driving.lst
avr-objcopy -j .text -j .data -O ihex driving/output/driving.elf driving/output/driving.hex