Subversion Repositories group.electronics

Rev

Rev 94 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 94 Rev 98
Line 11... Line 11...
11
 
11
 
12
AVRDUDE = avrdude -c avrispmkii -P usb -p $(DEVICE)
12
AVRDUDE = avrdude -c avrispmkii -P usb -p $(DEVICE)
13
 
13
 
14
COMPILE = avr-gcc -Wall -Os -Iusbdrv -I. -mmcu=$(DEVICE) -DF_CPU=$(F_CPU) -DHID_SIZE=$(HID_SIZE) -DDEBUG_LEVEL=0
14
COMPILE = avr-gcc -Wall -Os -Iusbdrv -I. -mmcu=$(DEVICE) -DF_CPU=$(F_CPU) -DHID_SIZE=$(HID_SIZE) -DDEBUG_LEVEL=0
15
 
15
 
16
OBJECTS = usbdrv/usbdrv.o usbdrv/usbdrvasm.o main.o twi.o wire.o util.o lcd.o
16
OBJECTS = usbdrv/usbdrv.o usbdrv/usbdrvasm.o main.o twi.o wire.o avrutil.o lcd.o
17
 
17
 
18
# symbolic targets:
18
# symbolic targets:
19
all:	main.hex
19
all:	main.hex
20
 
20
 
21
.c.o:
21
.c.o:
Line 49... Line 49...
49
	$(COMPILE) -o main.bin $(OBJECTS)
49
	$(COMPILE) -o main.bin $(OBJECTS)
50
 
50
 
51
main.hex:	main.bin
51
main.hex:	main.bin
52
	rm -f main.hex main.eep.hex
52
	rm -f main.hex main.eep.hex
53
	avr-objcopy -j .text -j .data -O ihex main.bin main.hex
53
	avr-objcopy -j .text -j .data -O ihex main.bin main.hex
54
	./checksize main.bin $(DEV_CODE) $(DEV_DATA)
54
#	./checksize main.bin $(DEV_CODE) $(DEV_DATA)
55
# do the checksize script as our last action to allow successful compilation
55
# do the checksize script as our last action to allow successful compilation
56
# on Windows with WinAVR where the Unix commands will fail.
56
# on Windows with WinAVR where the Unix commands will fail.
57
 
57
 
58
disasm:	main.bin
58
disasm:	main.bin
59
	avr-objdump -d main.bin
59
	avr-objdump -d main.bin