|
From: | Chris Spencer |
Subject: | [avr-chat] Makefile for Avrdude |
Date: | Sun, 28 May 2006 20:16:56 -0400 |
User-agent: | Thunderbird 1.5.0.2 (X11/20060501) |
Hi,I'm a bit rusty on writing makefiles, and I'm trying to write one to compile and upload a simple blink program to an atmega48 using avrdude and an avrisp2. However, when I run make I get the error "makefile:9: *** target pattern contains no `%'. Stop." I have a feeling the problem is pretty simple, but I just can't see it. Below is my makefile. Any help is greatly appreciated.
CC=avr-gcc CFLAGS=-g -Os -Wall -mcall-prologues -mmcu=atmega48 OBJ2HEX=avr-objcopy TARGET=blink PART=m48 PROGRAMMER=avrisp2 program : $(TARGET).hex avrdude -p $(PART) -c $(PROGRAMMER) -e flash:w:$(TARGET).hex %.obj : %.o $(CC) $(CFLAGS) $< -o $@ %.hex : %.obj $(OBJ2HEX) -R .eeprom -O ihex $< $@ clean : rm -f *.hex *.obj *.o
[Prev in Thread] | Current Thread | [Next in Thread] |