www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/23/07:05:19

From: gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk (George Foot)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: makefile help
Date: 23 Feb 1997 11:22:08 GMT
Organization: Oxford University
Lines: 24
Message-ID: <5ep990$kgq@news.ox.ac.uk>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 970223120410 DOT 1447F-100000 AT is>
NNTP-Posting-Host: mc31.merton.ox.ac.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Eli Zaretskii (eliz AT is DOT elta DOT co DOT il) wrote:

: On 20 Feb 1997, George Foot wrote:

: > If you're only linking one file, you can just use:
: > 
: > gxx -o foo.exe -Wall -O2 -c foo.cc -lalleg
:       ^^^^^^^^^^           ^^
: Either -o foo.exe or -c, but not both!  If you want to link, leave out
: -c, and it will work.

Oops...

: Hey, that's GNU Make we are using, remember?  It doesn't need to be
: told all these trivia, it already knows about them.  All you need is
: to tell it something it *doesn't* know.  Observe:

Is this reliable, though? I would have thought the assumptions about
what make does or doesn't know would be more susceptible to breaking
on some users' systems. How universal is this stuff? 

-- 
George Foot <gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk>
Merton College, Oxford.

- Raw text -


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