source: avrstuff/test_uart/Makefile@ 6f22754

main
Last change on this file since 6f22754 was bb69525, checked in by Adrien Destugues <pulkomandy@…>, 14 years ago
  • Minimal UART test

git-svn-id: svn://pulkomandy.tk/avrstuff@9 c6672c3c-f6b6-47f9-9001-1fd6b12fecbe

  • Property mode set to 100644
File size: 425 bytes
Line 
1testusart.hex: testusart.bin
2 avr-objcopy -j .text -j .data -O ihex testusart.bin testusart.hex
3
4testusart.bin: usart.o main.o
5 avr-gcc usart.o main.o -o testusart.bin -mmcu=atmega8 -Os
6
7main.o: testuart.c ../libs/usart/usart.h
8 avr-gcc -c testuart.c -mmcu=atmega8 -Os -o main.o -mmcu=atmega8 -Os
9
10usart.o: ../libs/usart/usart.c ../libs/usart/usart.h
11 avr-gcc -c ../libs/usart/usart.c -o usart.o -mmcu=atmega8 -Os
Note: See TracBrowser for help on using the repository browser.