If anope is "make installed" into ~/services then the module source needs to be wget'd into the src directory of anope.
Typically, a user extracts the anope tarball to ~/anope-1.7.21/ where you'd put the module.c into ~/anope-1.7.21/src/modules and nip back to ~/anope-1.7.21 and make modules and make install which would compile, and install the module into ~/services