split .h and .xc output files