Compiling multiple files

Hey there,hope you are all well.

Actually i am trying to compile two .c files with gcc in unix and i also have one .txt and one .h..How do i compine them alltogether in order for my program to run?
I will have to do gcc -o myprog myprog1.c myprog2.c and then how i will use myprog with the .txt and the .h?:S

Thanks in advance!

Well, .h is pulled in by #include, you have the .c files on the command line, hopefully in the right order, and what is in a .txt file that relates to this? Should it be renamed .c and put on the command line?