www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/03/26/15:45:47

Date: Mon, 26 Mar 2001 22:42:44 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk>
Message-Id: <2110-Mon26Mar2001224243+0200-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6
CC: djgpp AT delorie DOT com
In-reply-to: <0r5vbt0elvarhhoq5it2dk6n2esi5ufr1i@4ax.com> (message from Jason
Green on Mon, 26 Mar 2001 20:51:29 +0100)
Subject: Re: Trying to figure out makefiles
References: <0apv6.10280$P4 DOT 869113 AT newsread1 DOT prod DOT itd DOT earthlink DOT net> <9003-Sun25Mar2001201444+0200-eliz AT is DOT elta DOT co DOT il> <32rv6.10684$P4 DOT 890158 AT newsread1 DOT prod DOT itd DOT earthlink DOT net> <99nb94$j9k$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <0r5vbt0elvarhhoq5it2dk6n2esi5ufr1i AT 4ax DOT com>
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

> From: Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk>
> Newsgroups: comp.os.msdos.djgpp
> Date: Mon, 26 Mar 2001 20:51:29 +0100
> 
> Of course, make can do more than this, and I can't help but point out too
> that Brian probably wants to turn warnings on since this so easy to do in
> a makefile.  Here's a slightly more advanced version (but not more
> advanced than a beginner could cope with after browsing the info pages, I
> think):
> 
> CFLAGS = -Wall
> 
> proj13.exe: video.o testmain13.o
> 	gcc -o $@ $^

The last line should have probably used $(CC) instead of a hard-wired
"gcc".

But why do you say this is too much for someone who looked in the
manual?  There's a special section there, called "Catalogue of Rules",
which lists all the important built-in rules.  (If someone wants _all_
the rules, they can invoke Make with the -p option and have them all.)

- Raw text -


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