delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/10/17:49:52

From: Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: makefile
Date: Mon, 10 Apr 2000 21:48:20 +0100
Organization: Customer of Planet Online
Lines: 25
Message-ID: <1be4fssggvha8u5i01i6vu0j0ff1mjv11j@4ax.com>
References: <s71I4.12862$2D6 DOT 284855 AT news20 DOT bellglobal DOT com>
NNTP-Posting-Host: modem-75.altace.dialup.pol.co.uk
Mime-Version: 1.0
X-Trace: news5.svr.pol.co.uk 955400423 7087 62.136.76.203 (10 Apr 2000 21:00:23 GMT)
NNTP-Posting-Date: 10 Apr 2000 21:00:23 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Forte Agent 1.7/32.534
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Robert L." <vlad3 AT sympatico DOT ca> wrote:

> i want to learn how to make the makefile.

Best way to do that is to read the docs. ;-)

Type 'info make' at the dos prompt for a full guide.  There is also a
make tutorial on www.delorie.com

> prog.obj : prog.cpp
>     gxx -c -o prog.obj prog.cpp
> # link time, how to make it.

prog : prog.o
	gxx prog.o -o prog

prog.o : prog.cpp
	gxx -c -o prog.o prog.cpp


The above will achieve what you want, but there is much more to make
than can be explained here (enough to write a book in fact ;-).  

I suggest to start by RTFM, and spend some time looking at other
user's makefiles.

- Raw text -


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