Mail Archives: djgpp/2002/03/10/01:17:41
On Sun, 10 Mar 2002, Sahab Yazdani wrote:
> 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 RELEASE=y
- Raw text -