Re: [code] Makefile cleanup... suggestions

From: Mitchell <m.att.foicica.com>
Date: Tue, 6 Feb 2018 09:43:48 -0500 (EST)

Hi Pedro,

On Sun, 4 Feb 2018, Pedro Andres Aranda Gutierrez wrote:

> Hi Mitchell
>
> As you know I've been trying to compile the curses version in FreeBSD.
> This has made me go through the compilation flags and I have seen some flags
> that seem to stem from older versions of the curses library. It would be
> good to
> know why the different flags are there. Those that are related with curses
> should
> not be there explicitly, but obtained through "pkg-config --cflags curses"
> The same applies to the linker flags.
>
> As a matter of fact, I'm using a construct in other Makefiles that allows me
> to compile programs with curses and ncurses:
>
> ifeq (1,$(shell pkg-config ncurses && echo 1))
> CFLAGS += pkg-config --cflags ncurses
> LDFLAGS += pkg-config --libs ncurses
> else
> CFLAGS += pkg-config --cflags curses
> LDFLAGS += pkg-config --libs curses
> endif

Okay, thanks for the info. I will look into this.

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Tue 06 Feb 2018 - 09:43:48 EST

This archive was generated by hypermail 2.2.0 : Wed 07 Feb 2018 - 06:25:58 EST