F
Frankie Montenegro
Hi
I am trying to understand separate compilation and how to set up
simple Makefiles. This is my question:
Say I have a simple 'nonmain' sourcefile. Just a couple of functions, not
longer than 10 lines alltogether. I wondered if it's possible to combine
this source file with its header file into a single file (nonmain.h).
Is this "bad practice"? For some reason, having a
separate header for such a simple source file seems like an overkill.
Thnkas for your help.
I am trying to understand separate compilation and how to set up
simple Makefiles. This is my question:
Say I have a simple 'nonmain' sourcefile. Just a couple of functions, not
longer than 10 lines alltogether. I wondered if it's possible to combine
this source file with its header file into a single file (nonmain.h).
Is this "bad practice"? For some reason, having a
separate header for such a simple source file seems like an overkill.
Thnkas for your help.