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: Todd Lucas
Subject: RE: [avr-gcc-list] help me
Date: Fri, 28 Mar 2003 12:39:00 -0800

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


reply via email to

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