3 Feb 2000 16:54
Compiling Debug and Product targets in the same Jamfile.
Koloseike, Jason <Jason.Koloseike <at> Cognos.COM>
2000-02-03 15:54:07 GMT
2000-02-03 15:54:07 GMT
We're in the process of migrating to JAM, with some difficulty I might add.
In the old environment, we recursively called the same makefile to generate
product(non debug) and debug variants of the objects, libraries and
executables.
The different variants had their own destination directories so that the
could
coexist in harmony.
With JAM I tried creating ProdApp and DebugApp rules. I was expecting the
both the debug objects and executable to end up in a bin/debug directory
while
the product objects and executable to end up in a bin/prod directory.
rule ProdApp {
LOCATE_TARGET = $(TARGET_PROD) ;
DEPENDS $(<) : $(>) ;
Main $(<) : $(>) ;
}
rule DebugApp {
LOCATE_TARGET = $(TARGET_DEBUG) ;
DEPENDS $(<) : $(>) ;
Main $(<) : $(>) ;
}
.
.
.
(Continue reading)
RSS Feed