Every moral code, as far as i know, presuppose indeed, what is commonly labeled as good and evil. It is primarily involved with labeling what is "good and honorable" and what is "not good/Evil and dishonorable". It is a tool or process, on the natural evolution of our known universe towards complexity, such as building human societies. In order to make life more complex, human beings naturally crave for organization. And there it goes, what is good is what fuels this craving, and as expected, evil are acts that primarily goes against the edification of what the moral code is about. This is a rough sketch of what i think. I think human suffering or happiness are not the primary goals of any moral code, sometimes it aims at avoiding some suffering but only the kind of which would help damaging the structure that the moral code is edified to make possible to persist. An example of well being and happiness not being taken as primary goal of a moral code, is the suffering of Africa with poverty and famine. It is the long stand result of war, domination, barbarism, and bad wealth distribution plus any horrors that for example, a system like capitalism and free-market can cause on one of the parts involved in the process, the sucked part, or the weaker part. The moral system of a capitalist society is built upon making sure capitalism can be practiced with almost no restrictions. Well being and suffering in this case for example are being left behind secondarily. This is only an example, im not preaching socialism here, for i know that it is as dangerous as capitalism, but just the other way around. So in my opinion, moral codes are about:
-First and most important: edifying a society, making progressive complexity possible;
-Second and less important: happiness and well being.
As someone said before, nature is beyond good and evil. And as i´m inclined to call everything nature, morals and ethics are not left out nature´s scope. Good and evil are just human judgements. I think even in morals or ethics, nature shows this "beyond good and evil" trait. That´s why no one can explain why humans are always craving domination, expansion and power , in known detriment of the well being of the sucked part. It is clearly craving unbalance. Even if every single human bit of the whole humanity knows that it does generate a huge abyss or unbalance involving suffering, the whole is acting this chaotic way. It is perhaps beyond our control and Will. It simply occurs cuzz it is the process of nature, or the cosmos. Perhaps!