Re: [code] Makefile cleanup... suggestions

From: Mitchell <>
Date: Mon, 19 Feb 2018 15:41:17 -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
> Once that is sorted out, it would be good to continue with other libraries.

I've committed something[1] that should help.



You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Mon 19 Feb 2018 - 15:41:17 EST

This archive was generated by hypermail 2.2.0 : Tue 20 Feb 2018 - 06:28:40 EST