Implemented topological sorting of modules for efficient compilation with single make execution