X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Message-ID: <3C8ADF0D.D2CFCBD4@yahoo.com> From: CBFalconer Organization: Ched Research X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: make troubles References: <3C8AD717 DOT 7080504 AT vif DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 35 Date: Sun, 10 Mar 2002 12:12:49 GMT NNTP-Posting-Host: 12.90.169.83 X-Complaints-To: abuse AT worldnet DOT att DOT net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1015762369 12.90.169.83 (Sun, 10 Mar 2002 12:12:49 GMT) NNTP-Posting-Date: Sun, 10 Mar 2002 12:12:49 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Sahab Yazdani wrote: > > okay i have this little trouble with my makefile, which I hope people > will be able to help me with. > > i have defined a variable called RELEASE like this: > > RELEASE=n > > which is then checked against to set some flags so that the program will > compile either as a RELEASE program or a DEBUG program: > > ifeq ($(RELEASE),y) then > # define release variables > else > # define debug variables > endif > > NOW, i want to be able to change this variable without coming into the > makefile everytime i want to switch the mode of the program. > > MAKE allows me to change variables via the command line like this: > > make RELEASE='y' > > but for some reason, this still compiles as a DEBUG program. try "make -DRELEASE=y ...." -- Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT XXXXworldnet DOT att DOT net) Available for consulting/temporary embedded and systems. (Remove "XXXX" from reply address. yahoo works unmodified) mailto:uce AT ftc DOT gov (for spambots to harvest)