compiles single file into header and source files