This question already has an answer here:
I have been trying to find out what this film was called - I saw it years ago. It was about a man who was the last man on earth, but then found another 2 people. I can't remember the rest until the end where he wakes up on a beach then a huge ringed planet rises above the ocean. I think it was an Australian film but cannot say for certain. If anyone can name it I would be very grateful.
EDIT: I think it was sometime in the 1980s