help-make
[Top][All Lists]
Advanced

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

compling intermediate files


From: nature
Subject: compling intermediate files
Date: Wed, 28 Apr 2010 06:08:19 -0700 (PDT)

Hi,

How do we build the intermediate source files.

Assembly code .s is converted to .is format before .o file is generated.

How to write make file for this? I tried writting the below code, but it
doesn't work.

Object files are listed in a seperate files and included in the make file.
.c files works fine.I am unable to
compile the intermediate file properly. 

$(OBJ):%.o:%.c
        $(CC) -c $< -o $(OBJDIR)/$@ -via b.txt 


$(OBJ1):%.o:%.s $(OBJ2)                
        $(AS) $< -o $(OBJDIR)/$@ -via b1.txt


$(OBJ2):%.is:%.s 
        
        $(CPP) -E $< >$(OBJDIR)/$@ -via b.txt

What is going wrong here?
Any suggestions ?

Regards,
Anil


-- 
View this message in context: 
http://old.nabble.com/compling-intermediate-files-tp28387767p28387767.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]