Arduino .h files and trying to use them on a bare bones atmega1284?

The things you wrote don't make any sense. You can't flash a .h file. You can compile a program that #includes a .h file, but the .h file itself is not a program.

Please provide a detailed description of what you are trying to accomplish, as well as links to any code or tutorials you might be using.