Yes Faye... "loving" someone just so you aren't "alone" is codependent and not healthy. Good on ya for figuring that out.
Love is something that grows out of friendship.
Shared interests, similar lifestyles, similar ways of thinking and humor, are all things that frequently spark friendship. Both you and the other person become better people for your interactions with each other. You enjoy each others company, you learn from each other and your interactions lead you to seriously consider your opinions, ethics and morals in a more rounded fashion since you now have more than one view point to work from. You may possibly even change those opinions if the other person brings up good means to do so (and if you can be honest with yourself.)
At some point the friendship will start turning into love. Love happens when, after all your interactions, you can finally see the other person as someone who is in all honesty, just as important as yourself. A "second self" almost. You see their needs as important as yours, you care for them the same way you care for yourself. If both of you needed ItemX and there was only 1 ItemX, the idea of taking it for yourself is incomprehensible. You simply don't understand it, because you think of each other in terms of a unit and not two separate entities. The idea of the other person "going without" is as problematic as you going without and needs prompt solving.
That doesn't mean that you won't be frustrated or angry on occasion, since it is completely normal to be frustrated or angry with yourself too, after all. But you will still love them even when you feel like this, the same way you don't hate yourself when you are angry.
Beyond this, you may find in the end, that you take even better care of them than you do for yourself, as a way of thanking them for all they bring into your life.