fixed Makefile for cygwin build after #23
[smdp.git] / Makefile
index f0cf1ec..46ed432 100644 (file)
--- 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