From: Michael Göhler Date: Mon, 22 Sep 2014 09:14:22 +0000 (+0200) Subject: fixed Makefile for cygwin build after #23 X-Git-Url: https://git.danieliu.xyz/?p=smdp.git;a=commitdiff_plain;h=3abe61887adc463e2d00c000012d1e2cff15f56f fixed Makefile for cygwin build after #23 --- 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