[SATLUG] Writing Makefiles in Linux
othniel at gmail.com
Wed Nov 10 12:43:43 CST 2010
The tool called qmake makes what you want to do totally simple.
You may already have it if you have qt installed on your box.
What you do is to make a file ending in .pro which describes the
dependencies among your source files and include files and the tool does the
rest. You can make a 1 line script to automate the process if you like.
It also supports symbols, so you can define a symbol which expands to name
all your include files in
a certain directory for example. Then by referencing that symbol you dont
have to repeat yourself
Qmake generates a Makefile and runs that automatically as you make changes
to the .pro file
Learn qmake --- its cross-platform.
On Tue, Nov 9, 2010 at 11:03 PM, Christopher Lemire <
christopher.lemire at gmail.com> wrote:
> 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
> 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?
> Christopher Lemire <christopher.lemire at gmail.com>
> Ubuntu 64 bit Linux Raid Level 0
> gpg --recv-keys E13B0909
> Key fingerprint = 3E1A 9103 EF3D 4885 6866 E9DE C69F 18B3 E13B 0909
> SATLUG mailing list
> SATLUG at satlug.org
> http://alamo.satlug.org/mailman/listinfo/satlug to manage/unsubscribe
> Powered by Rackspace (www.rackspace.com)
More information about the SATLUG