[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
 

Makefile problem - subst af flere forskellige filformater samtidigt




hejsa,

Jeg har en variabel i en makefile ala:

API_SRC +=   somecode.c \
             morecode.cxx \
             foobar.c \
             barbaz.cxx

Jeg har normalt kun haft .c filer men nu er der kommet en flok cxx filer
ind som
der nu ikke bliver laver .o filer ud af. 
"problembarnet" er følgende linje:
API_OBJ   := $(addprefix $(OBJ_PATH)/,$($(API_SRC:.cxx=.o):.c=.o))

Denne retter kun .c til .o så mine .cxx filer i API_SRC bliver bare sendt
direkte igennem til API_OBJ.

Nogen der har en ide til hvordan jeg kan lave ovenstående så den kan
supportere
både c og cxx filer?
 


-- 
Kim Schulz



 
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] *