Makeup isn't going to suddenly turn flaky skin into a smooth and silky canvas. You need to begin with your skincare products. And more than likely, you probably need to invest in a nice exfoliator (face scrubs, etc) and maybe, if it's that bad maybe even in an at home microdermabrasion kit. To me, it just sounds like you need to exfoliate and adequately moisturize your skin.
If you are using an exfoliant of some kind, look into using a makeup primer before you apply your foundation, powder, whatever face products you use. They contain ingredients that "turn" the face into a smooth canvas, allowing your makeup to glide on easier. As well as, in some primers, shrink pore size and mattify oil/shine in certain areas.