Hey how to write a Makefile that is generic that works for any file and
take command line arguments to add extra flag information. Also how to
access Makefile from anywhere?

1 Answer 1


I'll answer this in the context of CS50.

The instructions to pset3 introduce Makefiles. They give a good, basic overview of how to write, read, and understand a simple Makefile. For the remaining C psets, you will continue to see them appear with the distribution code.

For a more general overview of Makefiles, Stack Overflow would be the place to look.

  • Then how does cs50 appliance allows you to use make command from any place in the directory. May 31, 2017 at 1:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .