Using the MFILE utility style makefile If I run make all in a dos window I get D:\Robot\Projects\MinGrand>make all -------- begin -------- avr-gcc (GCC) 3.4.1 Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Size before: Robot.elf : section size addr .data 266 8388864 .text 17924 0 .bss 377 8389130 .noinit 0 8389507 .eeprom 0 8454144 .debug_aranges 184 0 .debug_pubnames 2458 0 .debug_info 11295 0 .debug_abbrev 2366 0 .debug_line 7330 0 .debug_str 532 0 Total 42732 Compiling: Robot.c avr-gcc -c -mmcu=atmega128 -I. -gdwarf-2 -O0 -funsigned-char -funsigned-bitfie lds -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=Robot.lst -std=gnu99 -Wp,-M,-MP,-MT,Robot.o,-MF,.dep/Robot.o.d Robot.c -o Robot.o Robot.c: In function `main': Robot.c:350: warning: unused variable `LastSonarRange' Linking: Robot.elf avr-gcc -mmcu=atmega128 -I. -gdwarf-2 -O0 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=Robot.o -std =gnu99 -Wp,-M,-MP,-MT,Robot.o,-MF,.dep/Robot.elf.d Robot.o i2c.o motor.o ringbuf .o sonar.o uart.o logeeprom.o ParseGPSData.o compass.o --output Robot.elf -Wl ,-Map=Robot.map,--cref -Wl,-u,vfprintf -lprintf_min -Wl,-u,vfscanf -lscanf_min -lm Creating load file for Flash: Robot.hex avr-objcopy -O ihex -R .eeprom Robot.elf Robot.hex Creating load file for EEPROM: Robot.eep avr-objcopy -j .eeprom --set-section-flags=.eeprom="alloc,load" \ --change-section-lma .eeprom=0 -O ihex Robot.elf Robot.eep Creating Extended Listing: Robot.lss avr-objdump -h -S Robot.elf > Robot.lss Creating Symbol Table: Robot.sym avr-nm -n Robot.elf > Robot.sym Size after: Robot.elf : section size addr .data 266 8388864 .text 17924 0 .bss 377 8389130 .noinit 0 8389507 .eeprom 0 8454144 .debug_aranges 184 0 .debug_pubnames 2458 0 .debug_info 11295 0 .debug_abbrev 2366 0 .debug_line 7330 0 .debug_str 532 0 Total 42732 Errors: none -------- end -------- -----Original Message----- From: Leon Heller [mailto:leon.heller@dsl.pipex.com] Sent: Sunday, April 10, 2005 10:02 AM To: AVR-Chat@yahoogroups.com Subject: Re: [AVR-Chat] Re: Problem using MAKE ----- Original Message ----- From: arhodes19044 To: AVR-Chat@yahoogroups.com Sent: Sunday, April 10, 2005 2:12 PM Subject: [AVR-Chat] Re: Problem using MAKE Running MAKE from DOS? Oh, Oh. In XP (home), all that I can do, as far as I know, is open a DOS box. I do not think that I can drop into raw DOS the way I could in 98. Isn't a DOS box good enough? I did get a DOS box to come up and I can CD to the demo directory. >From there I can issue the MAKE command. MAKE does run, but says it can not see the makefile. Of course the Makefile is right there in the current directory. Why would this be? It does not even like the "clean" arg to follow the MAKE command. I am a little mystified. Just open a DOS box, that's what I do. Here's what I get: C:\WinAVR\examples\demo>make clean rm -rf *.o demo.elf *.eps *.png *.pdf *.bak rm -rf *.lst *.map *.hex *.bin *.srec C:\WinAVR\examples\demo>make avr-gcc -g -Wall -O2 -mmcu=atmega8 -c -o demo.o demo.c avr-gcc -g -Wall -O2 -mmcu=atmega8 -Wl,-Map,demo.map -o demo.elf demo.o avr-objdump -h -S demo.elf > demo.lst avr-objcopy -j .text -j .data -O ihex demo.elf demo.hex avr-objcopy -j .text -j .data -O binary demo.elf demo.bin avr-objcopy -j .text -j .data -O srec demo.elf demo.srec avr-objcopy -j .eeprom --change-section-lma .eeprom=0 -O ihex demo.elf demo_eepr om.hex avr-objcopy -j .eeprom --change-section-lma .eeprom=0 -O binary demo.elf demo_ee prom.bin avr-objcopy -j .eeprom --change-section-lma .eeprom=0 -O srec demo.elf demo_eepr om.srec C:\WinAVR\examples\demo> Leon -- Leon Heller, G1HSM http://www.geocities.com/leon_heller Yahoo! Groups Links
Message
RE: [AVR-Chat] Re: Problem using MAKE
2005-04-10 by wbounce
Attachments
- No local attachments were found for this message.