Chris Spencer
Sun, 28 May 2006 17:17:17 -0700
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 _______________________________________________ AVR-chat mailing list AVR-chat@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-chat