[svn] / uartlcd / Makefile Repository:
ViewVC logotype

View of /uartlcd/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1041 - (download) (annotate)
Sat May 2 12:09:34 2009 UTC (16 months, 1 week ago) by kouhei
File size: 831 byte(s)
MCU_TARGET     = attiny2313
COMPILE = avr-gcc -Wall -Os -I. -mmcu=$(MCU_TARGET) -DF_CPU=12000000L #-DDEBUG_LEVEL=1
SIZE           = avr-size

OBJECTS = main.o lcd.o

# symbolic targets:
all:	main.hex

.c.o:
	$(COMPILE) -c $< -o $@

.S.o:
	$(COMPILE) -x assembler-with-cpp -c $< -o $@

.c.s:
	$(COMPILE) -S $< -o $@

clean:
	rm -f main.hex main.lst main.obj main.cof main.list main.map main.eep.hex main.bin *.o main.s

# file targets:
main.bin:	$(OBJECTS)
	$(COMPILE) -o main.bin $(OBJECTS)

main.hex:	main.bin
	rm -f main.hex main.eep.hex
	avr-objcopy -j .text -j .data -O ihex main.bin main.hex

bake: main.hex
	avrspx -pu0 -w $<

disasm:	main.bin
	avr-objdump -d main.bin

main.elf: $(OBJECTS)
	$(COMPILE) -o $@ $(OBJECTS)

size: main.elf
	$(SIZE) -C --mcu=$(MCU_TARGET) main.elf

cpp:
	$(COMPILE) -E main.c

.PHONY: bake bakeh

admin
ViewVC Help
Powered by ViewVC 1.0.5