[omnetpp] Generating directory-specific compiler switches when creating INET makefiles?

1 view
Skip to first unread message

Kevin Miles

unread,
May 10, 2007, 3:57:48 PM5/10/07
to omne...@omnetpp.org
When creating the makefiles for INET, I'd like to apply some compiler
switches on a directory-specific basis. (Or, better still, on a
file-specific basis.) I can apply the switches globally by editing the
definition of CFLAGS in inetconfig and inetconfig.vc, but I don't
particularly want to apply them to all cc files, just those in a particular
directory. Does anyone know if there is a way of achieving this, in a
platform-independent fashion?

Thanks,
Kevin.

_______________________________________________
OMNeT++ Mailing List
options: http://lists.omnetpp.org/mailman/listinfo/omnetpp-l
archive: http://www.omnetpp.org/listarchive/index.php

Andras Varga

unread,
May 11, 2007, 5:10:38 AM5/11/07
to OMNeT++ Discussion List
Hi Kevin,

Easiest way is to put a makefrag[.vc] file in that directory. This file will
be textually inserted into the generated makefile, and lets you modify
CFLAGS etc.

Regards,
Andras

Reply all
Reply to author
Forward
0 new messages