[En-Nut-Discussion] Newbie - Debugging - makefile removes(rm) *.elf file

Anton Veldhuizen antonv at hotmail.com
Tue Jul 13 15:59:26 CEST 2004


Hi all,

When compiling an app using the standard makefile supplied with ethernut 
example apps, some instruction(!?) deletes the elf file directly after the 
compilation finishes (see "make all" capture below).  I've searched all the 
included files in the project makefile, but this instruction illudes me.

Can someone please indicate how I can remove this instruction (I want to use 
the .elf file for debugging).  Furthermore, does someone have an example 
makefile, makedefs and makerules that builds a coff file for debugging via 
AVR Studio?

Regards,
Anton

Make all capture:
avr-gcc -c -mmcu=atmega128 -Os -Wall -Wstrict-prototypes 
-Wa,-ahlms=basemon.lst -DETHERNUT2 -I../../mod/include -I../../include 
basemon.c -o basemon.o
avr-gcc -c -mmcu=atmega128 -Os -Wall -Wstrict-prototypes 
-Wa,-ahlms=xmemtest.lst -DETHERNUT2 -I../../mod/include -I../../include 
xmemtest.c -o xmemtest.o
avr-gcc -c -mmcu=atmega128 -Os -Wall -Wstrict-prototypes 
-Wa,-ahlms=realtek.lst -DETHERNUT2 -I../../mod/include -I../../include 
realtek.c -o realtek.o
avr-gcc -c -mmcu=atmega128 -Os -Wall -Wstrict-prototypes -Wa,-ahlms=smsc.lst 
-DETHERNUT2 -I../../mod/include -I../../include smsc.c -o smsc.o
avr-gcc -c -mmcu=atmega128 -Os -Wall -Wstrict-prototypes -Wa,-ahlms=uart.lst 
-DETHERNUT2 -I../../mod/include -I../../include uart.c -o uart.o
avr-gcc -c -mmcu=atmega128 -Os -Wall -Wstrict-prototypes 
-Wa,-ahlms=webdemo.lst -DETHERNUT2 -I../../mod/include -I../../include 
webdemo.c -o webdemo.o
avr-gcc -c -mmcu=atmega128 -Os -Wall -Wstrict-prototypes 
-Wa,-ahlms=utils.lst -DETHERNUT2 -I../../mod/include -I../../include utils.c 
-o utils.o
../..\tools\win32\crurom -r -ourom.c html
avr-gcc -c -mmcu=atmega128 -Os -Wall -Wstrict-prototypes -Wa,-ahlms=urom.lst 
-DETHERNUT2 -I../../mod/include -I../../include urom.c -o urom.o
avr-gcc basemon.o xmemtest.o realtek.o smsc.o uart.o webdemo.o utils.o 
urom.o -mmcu=atmega128 -Wl,--defsym=main=0,-Map=basemon.map,--cref 
-L../../lib/gcc/atmega128  -lnutnet -lnutpro -lnutfs -lnutos -lnutdev 
-lnutnet -lnutcrt -o basemon.elf
avr-objcopy -O ihex basemon.elf basemon.hex
rm basemon.elf

_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee® 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963




More information about the En-Nut-Discussion mailing list