Tutorial :how do you make a makefile



Question:

I would like to know how to makefile for Unix.


Solution:1

Here's a good Makefile Tutorial (first result on Google after searching "how to create a makefile").


Solution:2

Because (g)make has many non-intuitive aspects, e.g. its backward chaining, I'd highly recommend having a look at Robert Mecklenburg's book Managing Projects with GNU Make.

Or even better is Andrew Talbot's Managing Projects with Make (second edition), which I feel has the better introduction to make. (IMHO naturally).


Solution:3

http://www.opussoftware.com/tutorial/TutMakefile.htm


Solution:4

Run make. ;)

Though you'd be better served by reading the make documentation. Do this by typing 'man make' from the command line. It should be enough to get you started and confused, at which point a Google search will help a lot.


Solution:5

can check out documentation on automake (which most unix-y projects use) as well


Solution:6

The Gnu make manual would be a good place to look.


Solution:7

I have compiled some notes here: http://ustunozgur.blogspot.com/2008/04/sample-makefile.html


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »