Dave's Brain

Browse - Programming Tips - How can I do target-specific compile flags?

Date: 2015jun10
Product: jam

Q.  How can I do target-specific compile flags?

A.

For C++:

C++FLAGS on mytarget2$(SUFOBJ) = -g -I. -I../shared -I../../someplace2 ;
For C:
CCFLAGS on mytarget3$(SUFOBJ) = -g -I. -I../shared -I../../someplace3 ;
Don't forget the <space> and <semi-colon> after (as is needed for all Jam directives).

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.