avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] help me


From: Vaclav Carnogursky
Subject: Re: [avr-gcc-list] help me
Date: 31 Mar 2003 14:15:00 +0200

Dňa Pi, 2003-03-28 at 05:57, Michael Hadianto napísal:

Hi,

your dependency list should look rather like this :

###### dependecies, add any dependencies you need here ##############
$(TRG).o : $(TRG).c $(TRG).h
NiCd.o   : NiCd.c nicd.h 
nimh.o   : nimh.c nimh.h 
lion.o   : lion.c lion.h 
sla.o    : sla.c sla.h 
StdDefs.o : StdDefs.c StdDefs.h 

and so on..

> 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
-- 
Vaclav Carnogursky <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]