delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/02/26/07:45:22

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
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: <c1kpd5$o1f$2@nets3.rz.RWTH-Aachen.DE>
References: <c1kne5$3p$1 AT alpha2 DOT radio-msu DOT net>
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 <akantsel AT integra DOT rmt DOT ru> 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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019