sup
sup

Reputation:

how do you make a makefile

I would like to know how to makefile for Unix.

Upvotes: 3

Views: 659

Answers (7)

Rob Wells
Rob Wells

Reputation: 37103

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).

Upvotes: 3

Dave
Dave

Reputation: 1587

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

Upvotes: 5

ustun
ustun

Reputation: 7021

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

Upvotes: 1

T.E.D.
T.E.D.

Reputation: 44804

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

Upvotes: 1

Matt Briggs
Matt Briggs

Reputation: 42178

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

Upvotes: 0

foobarfuzzbizz
foobarfuzzbizz

Reputation: 58637

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.

Upvotes: 1

Related Questions