Subscribe to Tom9729's Blog        RSS Feed
-----

Custom Make-build System

Icon Leave Comment
The dagger3d-0.1-make branch now builds properly on Linux.

I've written a basic clone of the GNU configure script, and my Makefile probably works differently internally, but the commands are still the same.

To compile Dagger3D:
midnight% ./configure
midnight% make


Woo hoo, only two commands! We now have a static and a shared-object version of Dagger3D. B)

Best of all, no more headaches from playing with Automake!

I'll need to write up a tutorial on this, but basically you can override variables by doing something like:
./configure DEFS="-DHAVE_AWESOME" CFLAGS="-g3 -O0"

Working on some kind of templates system too, because I've noticed a lot of my source files are structured similarly. I know a couple of solutions already exist, but I would like to use it as an excuse to learn Perl.

0 Comments On This Entry

 

Search My Blog

0 user(s) viewing

0 Guests
0 member(s)
0 anonymous member(s)