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: 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 Merton College, Oxford.