Posted by Brian Levantine on February 06, 2006 at 08:07:49:
In Reply to: Conditional compile posted by Stephen Auerbach on February 06, 2006 at 07:27:51:
How about using two new source filenames that include the original after setting a contol constant.
Example:
Start with 2 (or more as req.) files that do nothing more that set the constants and the original soure. Obviousely, you could initialize more constants/data as req. by your application.
New file: Client1.ibs - Outputs Client1.Obj
Set Client1 = TRUE
#include ClientCode.Ibs
New file: Client2.Ibs - Outputs Client2.Obj
Set Client2 = TRUE
#include ClientCode.Ibs
In your old source you now use the symbolic constants to control which client you're building
Old file: ClineCode.Ibs
.IF Client1
. Build Client 1 code
.EndIf
.ID Client 2
. Build Client 2 code
.EndId