-DESTDIR :=
-PREFIX := /usr/local
-BINDIR := $(PREFIX)/bin
-DATADIR := $(PREFIX)/share
-MANDIR := $(DATADIR)/man
-
-UNAME ?= $(shell uname)
-CYGWIN = $(findstring CYGWIN, $(UNAME))
-MINGW = $(findstring MINGW32, $(UNAME))
-
-CC ?= clang
-CFLAGS += -Wall -Wextra -I. -pedantic-errors
-#turn on tons of warnings if clang is present
-# but also turn off the STUPID ONES
-ifeq ($(CC), clang)
- CFLAGS += \
- -Weverything \
- -Wno-padded \
- -Wno-format-nonliteral \
- -Wno-disabled-macro-expansion \
- -Wno-conversion \
- -Wno-missing-prototypes
+UNAME ?= $(shell uname)
+CYGWIN = $(findstring CYGWIN, $(UNAME))
+MINGW = $(findstring MINGW, $(UNAME))
+
+ifneq ("$(CYGWIN)", "")
+WINDOWS=1