X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=Makefile;h=46ed432bd48bc76a0d0b2a5714ebd190bcf2481d;hb=3abe61887adc463e2d00c000012d1e2cff15f56f;hp=f0cf1ec3c3ca31a3f948d0053397cd5c9e928170;hpb=1137e63ffbb08abc0daea19e32aa37e96afb0770;p=smdp.git diff --git a/Makefile b/Makefile index f0cf1ec..46ed432 100644 --- 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