Project

General

Profile

Statistics
| Branch: | Revision:

root / forklift / code / Makefile @ 048ed7e1

History | View | Annotate | Download (339 Bytes)

1
forklift: forklift.hex
2
	@
3

    
4
%.hex: %.elf
5
	avr-objcopy -j .text -j .data -O ihex $< $@
6

    
7
forklift.elf: forklift.c analog.c analog.h twi.c twi.h
8
	avr-gcc -mmcu=atmega168 -DF_CPU=8000000L forklift.c analog.c twi.c -o forklift.elf -Os
9

    
10
download: forklift.hex
11
	avrdude -c avrispmkII -p m328p forklift.hex
12

    
13
clean:
14
	rm -f forklift.elf forklift.hex