Boost logo

Boost-Build :

From: Craig Rodrigues (rodrigc_at_[hidden])
Date: 2005-08-01 17:44:47


Hi,

I have a legacy project where unfortunately
a lot of C++ files are named with a .c extension.
I cannot rename the files for various reasons (not fun!).

I have the following in my Jamroot:

project
: build-dir $(BUILD)
: requirements <toolset>gcc:<cflags>"-x c++"

;

This forces files to be compiled as C++.

I was wondering if there was a way that I can refine this
so that *only* files which end with .c have the flag "-x c++"
applied. The reason for this is because I also
have some assembler files in my project, and for those
files, "-x c++" is no good.....I need "-x assembler-with-cpp".

Thanks.

-- 
Craig Rodrigues 
rodrigc_at_[hidden]
 

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk