social security for non working spouse

I have been working for 15 yrs and have 40 work credits in my social security. My wife doesn’t work. So I’m assume she doesn’t have any credits. We have been filing joint returns in past 2 yrs.

 

how can she get work credits? Can I give her 1099 from my business so that she gets some credits? Or will w2 give her credits