From: Jason Green 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: NNTP-Posting-Host: modem-75.altace.dialup.pol.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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." 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.