Rev 902 | Rev 1281 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 902 | Rev 1197 | ||
---|---|---|---|
Line 22... | Line 22... | ||
22 | ## General Flags |
22 | ## General Flags |
23 | PROJECT = C-OSD |
23 | PROJECT = C-OSD |
24 | MCU = atmega162 |
24 | MCU = atmega162 |
25 | TARGET = C-OSD.elf |
25 | TARGET = C-OSD.elf |
26 | CC = avr-gcc |
26 | CC = avr-gcc |
- | 27 | AVRDUDE = avrdude |
|
- | 28 | ISPTYPE = usbasp |
|
- | 29 | ISPPORT = usb |
|
- | 30 | ||
Line 27... | Line 31... | ||
27 | 31 | ||
28 | ## Options common to compile, link and assembly rules |
32 | ## Options common to compile, link and assembly rules |
Line 29... | Line 33... | ||
29 | COMMON = -mmcu=$(MCU) |
33 | COMMON = -mmcu=$(MCU) |
Line 57... | Line 61... | ||
57 | 61 | ||
58 | ## Objects explicitly added by the user |
62 | ## Objects explicitly added by the user |
Line 59... | Line 63... | ||
59 | LINKONLYOBJECTS = |
63 | LINKONLYOBJECTS = |
60 | 64 | ||
Line 61... | Line 65... | ||
61 | ## Build |
65 | ## Build |
62 | all: $(TARGET) C-OSD.hex C-OSD.eep C-OSD.lss size |
66 | all: $(TARGET) C-OSD.hex C-OSD.eep C-OSD.lss size #flash |
63 | 67 | ||
Line 119... | Line 123... | ||
119 | 123 | ||
120 | size: ${TARGET} |
124 | size: ${TARGET} |
121 | @echo |
125 | @echo |
Line -... | Line 126... | ||
- | 126 | @avr-size -C --mcu=${MCU} ${TARGET} |
|
- | 127 | ||
- | 128 | flash: ${TARGET} |
|
- | 129 | @echo |
|
- | 130 | avrdude -c ${ISPTYPE} -P ${ISPPORT} -p ${MCU} -u -U flash:w:C-OSD.hex |
|
122 | @avr-size -C --mcu=${MCU} ${TARGET} |
131 | |
123 | 132 | ||
124 | ## Clean target |
133 | ## Clean target |
125 | .PHONY: clean |
134 | .PHONY: clean |