From 3abe61887adc463e2d00c000012d1e2cff15f56f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michael=20G=C3=B6hler?= Date: Mon, 22 Sep 2014 11:14:22 +0200 Subject: [PATCH] fixed Makefile for cygwin build after #23 --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index f0cf1ec..46ed432 100644 --- a/Makefile +++ b/Makefile @@ -25,11 +25,13 @@ CFLAGS := -O0 -Wall -g LDFLAGS := endif +OSTYPE := $(shell uname -o) +CURSES = ncursesw ifeq (Windows_NT, $(OS)) -CURSES = pdcurses +ifneq (Cygwin, $(OSTYPE)) +CURSES := pdcurses CFLAGS += -DWIN32=1 -else -CURSES = ncursesw +endif endif LDFLAGS = -s -- 2.20.1