Much to my regret, the text that I have does not supply the reactions for lipid synthesis or sugar synthesis. The lipid reactions I have completely forgotten and will have to ignore. The sugar reactions, I remember a bit more of, and will try to recount what I can. First, I will discuss the biochemistry required for synthesis of the purine bases adenine and guanine. Under conditions postulated to have occurred on primitive earth, all of these reactions have been shown to occur, and the resulting end products are major products of the precursors.
C seem easy enough to make.
Fortunately at least one pathway for pyrimidine synthesis is a bit less complicated than for the purines. For the sake of brevity I will post it here, if you are genuinely curious, you can find all of this in the text cited in the first message. So now we have four bases. The next step is the sugar. To me, this is the biggest problem of the whole thing.