Rev 333 | Rev 348 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 333 | Rev 344 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | PRG = main |
1 | PRG = main |
| 2 | OBJ = main.o\ |
2 | OBJ = main.o\ |
| 3 | ../lib/src/lcd/clcd20x4.o\ |
- | |
| 4 | ../lib/src/lcd/lcd_HD44780.o\ |
3 | ../lib/src/lcd/lcd_HD44780.o\ |
| - | 4 | # ../lib/src/lcd/clcd20x4.o\ |
|
| 5 | 5 | ||
| 6 | MCU_TARGET = atmega88 |
6 | MCU_TARGET = atmega88 |
| 7 | OPTIMIZE = -Os -mcall-prologues |
7 | OPTIMIZE = -Os -mcall-prologues |
| 8 | # grep bios.map for __bios_ram_end to retreive this value |
8 | # grep bios.map for __bios_ram_end to retreive this value |
| 9 | # In the future, this should be automatically inserted into *_app.ld at every bios compilation |
9 | # In the future, this should be automatically inserted into *_app.ld at every bios compilation |
| Line 14... | Line 14... | ||
| 14 | EXTRA_LD = avr-ld -m avr4 -o $(PRG).elf /usr/avr/lib/avr4/crtm88.o -L/usr/lib/gcc/avr/4.1.0/avr4 -L/usr/lib/gcc/avr/4.1.0/avr4 -L/usr/avr/lib/avr4 -Map $(PRG).map -L../AVR-Bios --defsym __bios_ram_end=$(BIOS_RAM_END) -T$(MCU_TARGET)_app.ld $(PRG).o -lgcc -lc -lgcc |
14 | EXTRA_LD = avr-ld -m avr4 -o $(PRG).elf /usr/avr/lib/avr4/crtm88.o -L/usr/lib/gcc/avr/4.1.0/avr4 -L/usr/lib/gcc/avr/4.1.0/avr4 -L/usr/avr/lib/avr4 -Map $(PRG).map -L../AVR-Bios --defsym __bios_ram_end=$(BIOS_RAM_END) -T$(MCU_TARGET)_app.ld $(PRG).o -lgcc -lc -lgcc |
| 15 | endif |
15 | endif |
| 16 | BIOS_RAM_END = 0x0080012a |
16 | BIOS_RAM_END = 0x0080012a |
| 17 | 17 | ||
| 18 | DEFS = -I../AVR-Bios\ |
18 | DEFS = -I../AVR-Bios\ |
| 19 | -I../lib/funcdefs\ |
- | |
| 20 | -I../lib/src/lcd\ |
19 | -I../lib/src/lcd\ |
| - | 20 | # -I../lib/funcdefs\ |
|
| 21 | 21 | ||
| 22 | LIBS = |
22 | LIBS = |
| 23 | 23 | ||
| 24 | # You should not have to change anything below here. |
24 | # You should not have to change anything below here. |
| 25 | 25 | ||
| Line 51... | Line 51... | ||
| 51 | else |
51 | else |
| 52 | $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) |
52 | $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) |
| 53 | endif |
53 | endif |
| 54 | 54 | ||
| 55 | clean: |
55 | clean: |
| 56 | rm -rf *.o $(PRG).elf *.eps *.png *.pdf *.bak |
56 | rm -rf *.o $(PRG).elf *.eps *.png *.pdf *.bak $(OBJ) |
| 57 | rm -rf *.lst *.map $(EXTRA_CLEAN_FILES) |
57 | rm -rf *.lst *.map $(EXTRA_CLEAN_FILES) |
| 58 | 58 | ||
| 59 | lst: $(PRG).lst |
59 | lst: $(PRG).lst |
| 60 | 60 | ||
| 61 | %.lst: %.elf |
61 | %.lst: %.elf |