What is a make-or-buy decision? What are the relevant variables in a make-or-buy decision?

What is a make-or-buy decision? What are the relevant variables in a make-or-buy decision?