From a89c54bed93aebb402cc8cc95efb80c4b023581c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michael=20G=C3=B6hler?= Date: Tue, 23 Sep 2014 21:45:57 +0200 Subject: [PATCH] only check uname if OS is Windows_NT --- Makefile | 2 +- src/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f922b7e..5801f84 100644 --- a/Makefile +++ b/Makefile @@ -18,9 +18,9 @@ # along with this program. If not, see . # -OSTYPE := $(shell uname -o) CURSES = ncursesw ifeq (Windows_NT, $(OS)) +OSTYPE := $(shell uname -o) ifneq (Cygwin, $(OSTYPE)) CURSES := pdcurses endif diff --git a/src/Makefile b/src/Makefile index f0783e9..42d5563 100644 --- a/src/Makefile +++ b/src/Makefile @@ -26,8 +26,8 @@ ifeq ($(DEBUG),1) CFLAGS := -O0 -Wall -g -I../include endif -OSTYPE := $(shell uname -o) ifeq (Windows_NT, $(OS)) +OSTYPE := $(shell uname -o) ifneq (Cygwin, $(OSTYPE)) CFLAGS += -DWIN32=1 endif -- 2.20.1