-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
26 lines (20 loc) · 1010 Bytes
/
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
all:
avr-gcc -mmcu=atmega168 -std=c99 -Wall -Os -o fineoffset168.elf fineoffset168.c
avr-objcopy -j .text -j .data -O ihex fineoffset168.elf fineoffset168.hex
atmega168:
avr-gcc -mmcu=atmega168 -std=c99 -Wall -Os -o fineoffset168.elf fineoffset168.c
avr-objcopy -j .text -j .data -O ihex fineoffset168.elf fineoffset168.hex
install328:
avr-gcc -mmcu=atmega328p -std=c99 -Wall -Os -o fineoffset328.elf fineoffset328.c
avr-objcopy -j .text -j .data -O ihex fineoffset328.elf fineoffset328.hex
avrdude -c arduino -b 57600 -P /dev/ttyUSB0 -p atmega328p -vv -U flash:w:fineoffset328.hex
atmega328:
avr-gcc -mmcu=atmega328 -std=c99 -Wall -Os -o fineoffset328.elf fineoffset328.c
avr-objcopy -j .text -j .data -O ihex fineoffset328.elf fineoffset328.hex
install:
avr-gcc -mmcu=atmega168 -std=c99 -Wall -Os -o fineoffset168.elf fineoffset168.c
avr-objcopy -j .text -j .data -O ihex fineoffset168.elf fineoffset168.hex
avrdude -p m168 -c usbasp -U flash:w:fineoffset168.hex
clean:
rm *.elf
rm *.hex