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