+OSTYPE := $(shell uname -o)
+CURSES = ncursesw
+ifeq (Windows_NT, $(OS))
+ifneq (Cygwin, $(OSTYPE))
+CURSES := pdcurses
+endif
+endif
+
+LDFLAGS = -s
+LDLIBS = -l$(CURSES)
+SOURCES = $(wildcard src/*.c)
+OBJECTS = $(SOURCES:.c=.o)
+TARGET = mdp
+DESTDIR = /usr/bin