source: avrstuff/chiptest/Makefile@ 6d8c366

main
Last change on this file since 6d8c366 was 6d8c366, checked in by Adrien Destugues <pulkomandy@…>, 10 years ago

Chiptest: use libusart.

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

  • Property mode set to 100644
File size: 524 bytes
Line 
1# K4KUSB
2F_CPU=12000000
3
4# muSerial
5# F_CPU=20000000
6
7# Common
8MCU=attiny2313
9BAUD=9600
10
11all: blinkdel.hex
12
13include ../kbd/common.mk
14
15COMPILE = $(CC) -Wall -Os -std=c99 -mmcu=$(MCU) -DF_CPU=$(F_CPU) -DBAUD=$(BAUD) \
16 -I../libs/usart/
17
18VPATH=../libs/usart/
19
20#Rules
21
22blinkdel.bin: main.o usart.o
23 $(COMPILE) $^ -o $@
24
25main.o: main.c
26 $(COMPILE) -c $^ -o $@
27
28#Generic rules
29.S.o:
30 $(COMPILE) -x assembler-with-cpp -c $< -o $@
31
32.c.o:
33 $(COMPILE) -std=c99 -c $< -o $@
34
35flash:
36 avrdude -c usbasp -p $(MCU) -Uflash:w:blinkdel.hex
37
Note: See TracBrowser for help on using the repository browser.