All pastes #768736 Raw Edit

Stuff

public c v1 · immutable
·published 2007-11-10 21:13 UTC
rendered paste body
bkw@venus:~/tmp/code$ cat MakefileMCU=atmega16F_CPU=4000000F_OSC=4000000CC=avr-gccOBJCOPY=avr-objcopy# optimize for size:CFLAGS=-g -mmcu=$(MCU) -Wall -Wstrict-prototypes -Os -mcall-prologuesall: test.hextest.hex : test.out        $(OBJCOPY) -R .eeprom -O ihex test.out test.hextest.out : test.o        $(CC) $(CFLAGS) -o test.out -Wl,-Map,test.map test.otest.o : test.c        $(CC) $(CFLAGS) -Os -c test.c#erase the AVR before it is programmedload: test.hexclean:        rm -f *.o *.map *.out