What compiler are you using?
If you wanna include a separate file in your main source code,
if you are using CCS compiler,you can include some header files with extension "h"
file.h, but you can't have more then one C source using the CCS compiler.
If you go for PIC18 series and use C18 compiler, then you can have number of C sources and split your code in different files
#define wake 0
it's just a macro for the compiler. Whenever the compiler see's 'wake' in your source code, it substitutes 0. wake is not a variable! you wont be able to see it in your debugger. If you need to see it in your debugger as a variable, you need,
const unsigned char wake = 0;