Changeset e5dd493 in avrstuff for test_uart/Makefile
- Timestamp:
- Sep 8, 2019, 9:09:42 AM (5 years ago)
- Branches:
- main
- Children:
- c956fd4
- Parents:
- 6f22754
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test_uart/Makefile
r6f22754 re5dd493 1 MCU=atmega8 2 BAUD=57600 3 FCPU=16000000 4 PROG=avr109 -P /dev/ports/usb0 -b $(BAUD) -u 5 1 6 testusart.hex: testusart.bin 2 7 avr-objcopy -j .text -j .data -O ihex testusart.bin testusart.hex 3 8 4 9 testusart.bin: usart.o main.o 5 avr-gcc usart.o main.o -o testusart.bin -mmcu= atmega8-Os10 avr-gcc usart.o main.o -o testusart.bin -mmcu=$(MCU) -Os 6 11 7 12 main.o: testuart.c ../libs/usart/usart.h 8 avr-gcc -c testuart.c -mmcu= atmega8 -Os -o main.o -mmcu=atmega8 -Os13 avr-gcc -c testuart.c -mmcu=$(MCU) -Os -o main.o 9 14 10 15 usart.o: ../libs/usart/usart.c ../libs/usart/usart.h 11 avr-gcc -c ../libs/usart/usart.c -o usart.o -mmcu=atmega8 -Os 16 avr-gcc -c ../libs/usart/usart.c -o usart.o -mmcu=$(MCU) -DBAUD=$(BAUD) -DF_CPU=$(FCPU) -Os 17 18 flash: testusart.hex 19 avrdude -c $(PROG) -p $(MCU) -Uflash:w:testusart.hex 20 21 clean: 22 rm *.bin *.o *.hex
Note:
See TracChangeset
for help on using the changeset viewer.