[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] Makefile problem - subst af flere forskellige filformater samtidigt



On Tue, 11 Sep 2007 11:39:24 +0200
Lars Hartmann <sslug@sslug> wrote:

> 2 Måder:
> 
> Du kan dele API_SRC i to variable API_C_SRC og API_CXX_SRC og så bruge
> API_OBJ:=$(API_C_SRC:.c=.o) $(API_CXX_SRC:.cxx=.o)
> 
> eller du kan bruge den generelle substitueringsfunction i GNU make  
> patsubst:
> 
> API_OBJ:=$(patsubst %.c,%.o,$(patsubst %.cxx,%.o,$(API_SRC)))
> 
> Man siden til GNU make kan du finde på:
> 
> http://www.gnu.org/software/make/manual/make.html
> 
> Specielt kapitel 8 er interessant i denne forbindelse.

tak 

-- 
    Kim Schulz       | Blog: http://www.schulz.dk/
Email: sslug@sslug | Work: http://www.devteam.dk/
Phone: +45 5190 4262 | Fun : http://www.chilifan.dk/


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2007-10-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *