help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is my Makefile okay?


From: Jeffrey Walton
Subject: Re: Is my Makefile okay?
Date: Sun, 8 Jan 2012 22:18:58 -0500

On Sun, Jan 8, 2012 at 9:36 PM, Pelias <address@hidden> wrote:
>
> I'm new to GNU make so I would like to know if I made any mistakes in the way
> I have written my Makefile.
> One thing I'm not sure whether to append -DDEBUG/-DNDEBUG to CPPFLAGS or to
> CFLAGS.
If your make file is using both C and C++ files (and using implicit
rules), you will want to apply DEBUG/NDEBUG to both. Otherwise, use
CFLAGS for C and CPPFLAGS for C++.

Jeff



reply via email to

[Prev in Thread] Current Thread [Next in Thread]