In this paper, we address the problem of energy efficient routing in homogeneous and heterogeneous wireless ad hoc networks aiming at maximize the network lifetime. We define the network lifetime as the number of transmissions the node can perform until the first node fails due to battery exhaustion. In static networks we find a routing (spanning) tree which maximizes the network lifetime without tree update. We have proposed a Global weighted incremental power model and Global weighted post sweep for extending the life time of heterogeneous wireless ad hoc wireless network that gives better performance than the WBIP(Weighted Broadcast Incremental Protocol) implementation. We consider the amount of energy the node has compared to the maximum energy in network as the parameter in the cost metric function for constructing a efficient routing tree.