Complete resource manages and IP address handling.
gcc -MM can be used to separate them from the system ones. Added automatic generation of dependencies.