delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/07/31/18:55:31

Date: Mon, 31 Jul 2000 21:38:53 +0600 (LKT)
From: Kalum Somaratna aka Grendel <kalum AT lintux DOT cx>
X-Sender: kalum AT roadrunner DOT grendel DOT net
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
cc: Vikas Yadav <amitvikas AT yahoo DOT com>, DJGPP <djgpp AT delorie DOT com>
Subject: Re: Makefiles
In-Reply-To: <Pine.SUN.3.91.1000731095049.2256M-100000@is>
Message-ID: <Pine.LNX.4.21.0007312135330.1728-100000@roadrunner.grendel.net>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 31 Jul 2000, Eli Zaretskii spoke the following immortal words,

> 
> On Mon, 31 Jul 2000, Vikas Yadav wrote:
> 
> > Is there a tool that can help in creating makefiles,
> > like calculating dependancies etc. other than RHIDE.
> 
> Read about the GCC command-line option -MM.  The node "Automatic 
> Prerequisites" in the Make manual explains how to use it for automatic 
> dependency computations.

Better still IMHO of course, would be GNU automake.

Here is all I have to do to get automake to create a fully functional
makefile with all the dependencies.

bin_PROGRAMS    = hello
proz_SOURCES    = curses.c misc.c url.c
INCLUDES        = -I. -I.. -I AT includedir@
CFLAGS          = @CFLAGS@ @GLIB_CFLAGS@ @GTK_CFLAGS@ -D_REENTRANT -Wall
LDADD           = -L AT libdir@
LIBS            = @LIBS@ @GTK_LIBS@ 
DEFS            = @DEFS@


So if you plan to use Autoconf, Automake is your best and easiest bet
IMHO.

Grendel

Hi, I'm a signature virus. plz set me as your signature and help me spread
:)

- Raw text -


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