help-make
[Top][All Lists]
Advanced

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

Problem generating dependency files


From: nature
Subject: Problem generating dependency files
Date: Wed, 5 May 2010 02:47:21 -0700 (PDT)


I am trying to generate dependency files.

here is a part of my makefile

###################Dependency file generation##############################     
#$(call make-depend,source-file,object-file,depend-file)
define make-depend
        $(CC) -M "$1" -via b.txt | \
        $(SED) 's,^.*/\([^/]*\.o\) *:,$2\1 $3: ,' > $3.tmp
        $(SED) -e 's/#.*//' \
                   -e 's/^[^:]*: *//' \
                   -e 's/ *\\$$$$//' \
           -e '/^$$$$/ d' \
           -e 's/$$$$/ :/' $3.tmp >> $3.tmp
        $(MV) $3.tmp $3
endef 
############################################################################


ROM_RELEASE.axf : $(OBJ1) $(OBJ2)
        @echo "Linking - generating AXF file"
        
        $(LD) $^ -o $@

$(OBJ1):%.o:%.c
        @echo "Compling $<"
        $(call make-depend,$<,$@,$(subst .o,.d,$@))
        $(CC) -c $< -o $@

Somehow it is unable to generate .d files. When i execute the make file, it
throws the following error
: No such file or directoryh: line 1: aes.d.tmp
c:\WINNT\gmake.exe: *** [aes.o] Error 1

I am unable to figure out what is causing this error..

Can anyone help me identify the problem?

Regards,
Anil



-- 
View this message in context: 
http://old.nabble.com/Problem-generating-dependency-files-tp28458755p28458755.html
Sent from the Gnu - Make - Help mailing list archive at Nabble.com.





reply via email to

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