Re: Avoid 'ifdef USE_GTK' in code with more clever Makefile?

Renaud Deraison <[email protected]> Thu, 7 Oct 2004 08:36:41 -0400
Newsgroups gmane.comp.security.nessus.devel
Message-ID <[email protected]>
On Thu, Oct 07, 2004 at 12:24:12PM +0200, Jan-Oliver Wagner wrote:

Hi,

> I wonder whether it would be OK to avoid a number
> of ifdef USE_GTK in the code in nessus-core/nessus
> by already detecting in the Makefile which
> modules are to be included depending on whether
> GTK is opted or not.
> 
> Also, the modules would not even be linked
> anymore if nessus is build without GTK.
> 
> A sample patch is attached.

Your patch is correct. However some files will still require USE_GTK
(ie: sslui.c)



				-- Renaud
_______________________________________________
Nessus-devel mailing list
[email protected]
http://mail.nessus.org/mailman/listinfo/nessus-devel