updated the Makefile
This commit is contained in:
parent
ded99b7059
commit
9232763962
9
Makefile
9
Makefile
|
@ -1,15 +1,20 @@
|
|||
CC=avr-gcc
|
||||
CFLAG= -mmcu=atmega8 -O
|
||||
CFLAG= -g -mmcu=atmega168 -O
|
||||
|
||||
objects= time.o usart.o main.o ringbuffer.o
|
||||
objects= time.o usart.o main.o ringbuffer.o configuration.o analogin.o
|
||||
|
||||
all:main.elf
|
||||
|
||||
%.o:%.c
|
||||
$(CC) $(CFLAG) -c -o $@ $<
|
||||
%.s:%.c
|
||||
$(CC) $(CFLAG) -S -o $@ $<
|
||||
|
||||
|
||||
main.elf: $(objects)
|
||||
$(CC) $(objects) $(CFLAG) -o main.elf
|
||||
install: main.elf
|
||||
avrdude -p m168 -c avrispmkii -U flash:w:main.elf:a
|
||||
|
||||
clean:
|
||||
-rm $(objects)
|
||||
|
|
Loading…
Reference in New Issue
Block a user