split one source file to source and header files