Thread: [A-a-p-user] how do I change compilation flags for selected targets?
Brought to you by:
vimboss
From: Joerg B. <j....@we...> - 2003-11-05 09:52:52
|
Dear Listreader, how do I change compilations flags for a selected target=3F In my example I have this receipe: ---------------------------------- SOURCES =3D=B7 main.cpp ext.cpp OPTIMIZE=3D1 all: hello=5Fworld :program hello=5Fworld : $SOURCES ---------------------------------- now I want to compile main.cpp with -O1 (which is OPTIMIZE=3D1) and ext.cpp with -O2 (which is OPTIMIZE=3D2).=20 How can I do this=3F What would be the easiest / cleanest receipe for my example=3F thanks Joerg |
From: Adriaan de G. <ad...@cs...> - 2003-11-05 09:58:58
|
On Wed, 5 Nov 2003, Joerg Beyer wrote: > ---------------------------------- > SOURCES =3D=B7 > main.cpp > ext.cpp My approach (not clean AAP, and not stamped with the Seal of Bram's Approval) would be to SOURCES =3D main.cpp { add_CFLAGS =3D -O1 } ext.cpp { add_CFLAGS =3D -O2 } and use that. This is off the top of my head, I don't even know if it really works. --=20 Adriaan de Groot ad...@cs... Kamer A6020 024-3652272 GPG Key Fingerprint 934E 31AA 80A7 723F 54F9 50ED 76AC EE01 FEA2 A3FE http://www.cs.kun.nl/~adridg/research/ |