only check uname if OS is Windows_NT
[smdp.git] / src / Makefile
index f0783e9..42d5563 100644 (file)
@@ -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