[quake2] revamped build system
Thomas J Fogal
tfogal at pascal.unh.edu
Sun Sep 19 12:41:52 EDT 2004
<0498F2E8-09D0-11D9-83EF-0003931E5EDC at comcast.net>Brendan Burns writes:
<snip>
> I think a first step in cleaning the build system would be to split up
> the Makefile and add in suffix rules. I'm not sure there's a real good
Thats exactly what I've done; each 'module' (linux, common, client,
etc.) gets its own makefile which utilizes suffix rules to make it
small and concise.
> reason for building static libraries which are then only used to link a
> single executable.
Hrm, you are probably right. It just makes the final link line so much
cleaner =). I will attempt just using the object files directly when I
get some time.
> Obviously, I'd be eager to see any improvements to the build system.
Okay, I will put forth some effort to make it support everything the
old build system does.
-tom
> On Sep 18, 2004, at 2:40 PM, tom fogal wrote:
<snip>
> > I'm trying to make each directory into its own module of sorts,
> > archived into a static library and then linked in when appropriate.
> > I've pruned the archives so they only have the objects specified in the
> > above commandline, but when I used a line such as:
> >
> > gcc -g -Wall -pipe -DQMAX -DLINUX_VERSION="\"3.21+\"" -Lclient/ \
> > -Llinux/ -Lqcommon/ -Lserver/ -llinux -lclient -lserver -lqcommon -lm \
> > -ldl -Wl,-rpath,/usr/lib -lSDL -lpthread
> >
> > I get a lot of undefined references to VectorMA and some other vector
> > functions or globals.
<snip>
More information about the quake2
mailing list