19 messages in com.perforce.jamming[jamming] Automatic inclusion of sour...
FromSent OnAttachments
Peter Björklund13 Sep 2003 15:40 
Peter Björklund14 Sep 2003 02:11 
Alen Ladavac14 Sep 2003 04:30 
Peter Björklund14 Sep 2003 05:57 
Matt Armstrong14 Sep 2003 07:51 
Alen Ladavac14 Sep 2003 09:00 
Alen Ladavac14 Sep 2003 09:40 
Alen Ladavac14 Sep 2003 11:00 
Matt Armstrong14 Sep 2003 13:35 
Alen Ladavac14 Sep 2003 14:02 
Matt Armstrong15 Sep 2003 09:41 
Wallace, Richard17 Sep 2003 17:13 
Paul Forgey18 Sep 2003 11:17 
Wallace, Richard19 Sep 2003 13:43 
Paul Forgey19 Sep 2003 14:53 
Wallace, Richard19 Sep 2003 15:13 
Paul Forgey19 Sep 2003 15:30 
Wallace, Richard19 Sep 2003 16:01 
Ingo Weinhold20 Sep 2003 02:56 
Subject:[jamming] Automatic inclusion of source files
From:Wallace, Richard (Rich@specastro.com)
Date:09/17/2003 05:13:11 PM
List:com.perforce.jamming

Hello,

Thank you for the info on the [ GLOB $(SUBDIR) : *.cpp ] bit to get all the
sources in a directory. I successfully get the sources using this method, but
when I try to use them in an Objects line like in the following Jamfile

# begin Jamfile

SubDir TOP Util ;

SRCS = [ GLOB $(SUBDIR) : *.cpp ] ; OBJS = $(SRCS:S=.o) ;

LibraryFromObjects libUtil.a : $(OBJS) ; Objects $(SRCS) ;

# end Jamfile

What I get is jam trying to build like the following:

g++ -c -o Util/Util/Random.o Util/Random.cpp

So, it's trying to compile the proper file but isn't putting it in thhe right
place. I've looked at this over and over and tried using '.' instead of
$(SUBDIR) with no luck.

Any suggestions?

Thanks, Rich