From: Michael Göhler Date: Tue, 23 Sep 2014 19:45:57 +0000 (+0200) Subject: only check uname if OS is Windows_NT X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=a89c54bed93aebb402cc8cc95efb80c4b023581c;p=smdp.git only check uname if OS is Windows_NT --- 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