source: avrstuff/chiptest/Makefile@ 0db7c37

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

iMove muserial test to a more generic name.

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

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