[En-Nut-Discussion] Newbie - Debugging - makefile removes(rm) *.elffile
Marc Wetzel
mwse at gmx.de
Tue Jul 13 16:03:24 CEST 2004
Thats done automagically, because make sees that noone uses the generated
elf-file IMHO.
If you add the elf.file to your build rule or e.g. just type
'make projektname.elf' it will be generated.
/Marc
> -----Original Message-----
> From: en-nut-discussion-bounces at egnite.de [mailto:en-nut-discussion-
> bounces at egnite.de] On Behalf Of Anton Veldhuizen
> Sent: Tuesday, July 13, 2004 3:59 PM
> To: en-nut-discussion at egnite.de
> Subject: [En-Nut-Discussion] Newbie - Debugging - makefile removes(rm)
> *.elffile
>
> 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 McAfeeR
> Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
More information about the En-Nut-Discussion
mailing list