I am very new to C and UNIX systems programming. I know what to put in a basic makefile (the c files, the dependencies and the commands) but how do I actually create a makefile? Is it a text file? What kind of extension is a makefile? I am using Mac OSX, here is my current error
$ make -f Makefile.txt
lint pr2.2.c
make: lint: Command not found
make: *** [pr2-lint] Error 127
Thanks in advance!
makefiles are text files. They typically don’t have an extension. The most common name is Makefile with a capital M. You can use any text editor to create one.