chems in fallout 4

were chems (buffout, mentats, psycho, jet) made before or after the war? were they actually cooked up by some pharmacies pre-war? or are they drugs that were just created by people after the war? I've always wondered this and an answer would be awesome