From 8fd813163c03d7bfbc2ffd8b6aeb2d1c576db1e4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michael=20G=C3=B6hler?= Date: Thu, 16 Oct 2014 01:30:22 +0200 Subject: [PATCH 1/1] corrected include path for Debian derivatives (closes #46) --- src/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index f41e99a..6615a0f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,5 +1,5 @@ -# -# 1 # Makefile +# +# Makefile # Copyright (C) 2014 Michael Goehler # # This file is part of mdp. @@ -34,6 +34,13 @@ ifeq ($(OS),Windows_NT) endif endif +ifeq ($(UNAME_S),Linux) + LSB_RELEASE := $(shell lsb_release -si 2>/dev/null || echo not) + ifneq ($(filter $(LSB_RELEASE),Debian Ubuntu LinuxMint),) + CFLAGS += -I/usr/include/ncursesw + endif +endif + all: $(OBJECTS) clean: -- 2.20.1