workaround for cygwin WEOF, #78
[smdp.git] / src / Makefile
index 333ed8d..8b75f8f 100644 (file)
@@ -33,12 +33,14 @@ endif
 ifeq ($(OS),Windows_NT)
        ifeq (,$(findstring CYGWIN,$(UNAME_S)))
                CPPFLAGS += -DWIN32
+       else
+               CPPFLAGS += -DCYGWIN
        endif
 endif
 
 ifeq ($(UNAME_S),Linux)
        LSB_RELEASE := $(shell lsb_release -si 2>/dev/null || echo not)
-       ifneq ($(filter $(LSB_RELEASE),Debian Ubuntu LinuxMint),)
+       ifneq ($(filter $(LSB_RELEASE),Debian Ubuntu LinuxMint CrunchBang),)
                CPPFLAGS += -I/usr/include/ncursesw
        endif
 endif