source: avrstuff/Beep/Makefile@ 26d7f34

main
Last change on this file since 26d7f34 was 26d7f34, checked in by Adrien Destugues <pulkomandy@…>, 14 years ago

Ajout de blinkdel (projet de test basique) et beep (synthèse musicale sur atmega8)

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

  • Property mode set to 100644
File size: 485 bytes
Line 
1#Set vars
2COMPILE = avr-gcc -Wall -Os -std=c99 -mmcu=atmega8535 -DF_CPU=4000000
3
4#Rules
5blinkdel.hex: blinkdel.bin
6 avr-objcopy -j .text -j .data -O ihex blinkdel.bin blinkdel.hex
7
8blinkdel.bin: main.o
9 $(COMPILE) main.o -o blinkdel.bin
10
11main.o: main.c
12 $(COMPILE) -c main.c -o main.o
13
14#Generic rules
15.S.o:
16 $(COMPILE) -x assembler-with-cpp -c $< -o $@
17
18.c.o:
19 $(COMPILE) -std=c99 -c $< -o $@
20
21flash:
22 avrdude -c usbasp -p atmega8535 -Uflash:w:blinkdel.hex
23
24clean:
25 rm *.bin *.o *.hex
Note: See TracBrowser for help on using the repository browser.