@yf225: There should be no need for separate C files. Just combine the flags using an integer variable and pass that to the C driver function.