[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [avr-gcc-list] help me
From: |
Michael Hadianto |
Subject: |
RE: [avr-gcc-list] help me |
Date: |
Sat, 29 Mar 2003 23:52:20 +0700 (JAVT) |
The problem is solved already yesterday, i was making a misstype in my
makefile, the file is liion.c and i type only lion.c, anyway thanks for
the help.
I already combined all the file and it worked :)
so far i dont have any problems, if i get stuck i'll asked againin this
forum, THANKS
On Fri, 28 Mar 2003, Todd Lucas wrote:
> Date: Fri, 28 Mar 2003 13:02:04 -0800
> From: Todd Lucas <address@hidden>
> To: Todd Lucas <address@hidden>, 'Michael Hadianto' <address@hidden>,
address@hidden
> Subject: RE: [avr-gcc-list] help me
>
> This appears to be correct. I can generate this error by putting lio.c on
> the targets line (assuming that the SRC line contains lion.c). Are you sure
> you didn't make a typo?
>
> -----Original Message-----
> From: Todd Lucas
> Sent: Friday, March 28, 2003 12:44 PM
> To: Todd Lucas; 'Michael Hadianto'; address@hidden
> Subject: RE: [avr-gcc-list] help me
>
>
> Ooops. I didn't look closely enough. Sorry.
>
> -----Original Message-----
> From: Todd Lucas [mailto:address@hidden
> Sent: Friday, March 28, 2003 12:39 PM
> To: 'Michael Hadianto'; address@hidden
> Subject: RE: [avr-gcc-list] help me
>
>
> This is just a guess...I'm not very familiar with these makefiles yet.
>
> It appears that you have .c dependencies listed here:
>
> ###### dependecies, add any dependencies you need here ###################
> $(TRG).o : $(TRG).c bc.h NiCd.c nicd.h nimh.c nimh.h lion.c lion.h sla.c
> sla.h StdDefs.c StdDefs.h
>
> but you don't have them in your SRC list. Thus there is no rule to build
> lion.c or sla.c in the included avr_make.
>
> You should only put headers on the dependency line.
>
> -----Original Message-----
> From: Michael Hadianto [mailto:address@hidden
> Sent: Thursday, March 27, 2003 8:57 PM
> To: address@hidden
> Subject: [avr-gcc-list] help me
>
>
> hi all,
>
> first i would like to say sorry if this topic already disscused :)
>
> My name is michael, i am new in this milist, Now i am making project
> based on Atmel AVR450 appnote (battery chargers for lion, sla, nicd and
> nimh). i already changed few parameter so it can work with AVR GCC to
> compile (atmel use IAR compiler) then i compiled it using AVRGCC 3.2 and
> AVR studio 3.53, it works, but only for single battery type (nimh only,
> nicd only etc).
> Then i try to combine all the battery into one program,when i compiled it,
> it give me error :
>
> make.exe:***No Rule to make taget 'lio.c', needed by 'bc.o'. Stop.
>
> what's wrong ? i already put all my dependencies in makefile ???
> this is my make file
>
> # Simple Makefile
> # Volker Oth (c) 1999
>
>
> ########### change this lines according to your project ##################
>
> #put the name of the target mcu here (at90s8515, at90s8535, attiny22,
> atmega603 etc.)
> MCU = at90s8535
>
> #put the name of the target file here (without extension)
> TRG = bc
>
> #put your C sourcefiles here
> SRC = $(TRG).c NiCd.c lion.c nimh.c sla.c StdDefs.c
>
> #put additional assembler source file here
> ASRC =
>
> #additional libraries and object files to link
> LIB =
>
> #additional includes to compile
> INC =
>
> #compiler flags
> CPFLAGS = -g -O3 -Wall -Wstrict-prototypes -Wa,-ahlms=$(<:.c=.lst)
> # CPFLAGS = -g -Os -Wall -Wstrict-prototypes -Wa,-ahlms=$(<:.c=.lst)
>
> #linker flags
> LDFLAGS = -Wl,-Map=$(TRG).map,--cref,-lm
>
> ########### you should not need to change the following line #############
> include g:/avrgcc/avrfreaks/avr_make
>
> ###### dependecies, add any dependencies you need here ###################
> $(TRG).o : $(TRG).c bc.h NiCd.c nicd.h nimh.c nimh.h lion.c lion.h sla.c
> sla.h StdDefs.c StdDefs.h
>
>
> please helpme
>
> thanks
>
>
>
>
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://www.avr1.org/mailman/listinfo/avr-gcc-list
>
> _______________________________________________
> avr-gcc-list mailing list
> address@hidden
> http://www.avr1.org/mailman/listinfo/avr-gcc-list
>
Mike "Ob3lix" hadianto