X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: How can I create a makefile automatically? Date: 26 Feb 2004 12:39:01 GMT Organization: Aachen University of Technology (RWTH) Lines: 18 Message-ID: References: NNTP-Posting-Host: ac3b07.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 1077799141 24623 137.226.33.205 (26 Feb 2004 12:39:01 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 26 Feb 2004 12:39:01 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Anthony wrote: > Hello > When I create a project which has several source files, libs etc, is there > an easy way to generate a makefile for it? Not really. In the end of the day, makefile writing is an integral part of the job of creating a big multi-source program in C or C++. But there are tools that can help. GNU automake and autoconf, e.g., are especially useful if you're planning to build that program on anything else but DJGPP (or even GCC), later. But they have merit even if you don't. A Makefile.am is a good deal easier to write than an actual makefile. And it'll generate code that handles all the pesky details of dependency tracking for you, too. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.