Hi, I'm not sure why you need this option only for single file. If possible I would recommend to specify this option globally in CFLAGS.
If you really badly need that only a single file will compiled with this, here is a trick:
The OMNET generated makefile uses a pattern rule to compile .cc file to .o. Additionally you can use a "makefrag" file that is automatically inserted in the generated makefile.
The solution is to check the makefile, how the compile rule is written then write a similar rule in your makefrag file (but specify exact filename). That makefrag will be inserted in the generated makefile and your more specific rule will be used during compilation...
Right now the compile rule looks somthing like this:
$O/%.o: %.cc
@$(MKPATH) $(dir $@)
$(CXX) -c $(COPTS) -o $@ $<
and you will need this in your makefrag
$O/myfile.o: myfile.cc
@$(MKPATH) $(dir $@)
$(CXX) -c $(COPTS) -std=c++0x -o $@ $<
Rudolf