Writing Makefiles in Linux

Karl Auer kauer at biplane.com.au
Wed Nov 10 10:49:37 UTC 2010


On Tue, 2010-11-09 at 23:17 -0600, Christopher Lemire wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I've been programming in C a lot lately in the Linux environment. I've
> got projects big now. I need to use and write Makefiles, but neither
> the famous K&R book or the one for my CS class cover them. Has
> anybody read a book that at mentions Makefiles for maybe a chapter he
> or she would suggest me reading? Not a 1k pg book on Makefiles please,
> just a good suggested to the point one. A chapter of Makefiles in a
> programming book is fine. Does anybody know?
> 
Google "how to write a makefile". You'll get a zillion hits, and the
first ten look pretty good. If you really want paper, print out one of
the PDF ones.

The GNU make manual is pretty good.

http://www.gnu.org/software/make/manual/make.html
Make files are not rocket science, though they can have subtleties.
Unless you have very substantial builds, I think you'll get along fine
with the built-in rules.

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)                   +61-2-64957160 (h)
http://www.biplane.com.au/kauer/                   +61-428-957160 (mob)

GPG fingerprint: B386 7819 B227 2961 8301 C5A9 2EBC 754B CD97 0156
Old fingerprint: 07F3 1DF9 9D45 8BCD 7DD5 00CE 4A44 6A03 F43A 7DEF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20101110/af681dc9/attachment.sig>


More information about the ubuntu-users mailing list