pinosaur
/
smdp.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #23 from mattn/win32
[smdp.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
3c1715e
..
f0cf1ec
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-19,16
+19,24
@@
#
CFLAGS = -O3 -Wall
#
CFLAGS = -O3 -Wall
-LDFLAGS = -s
-LDLIBS = -lncursesw
-OBJECTS = cstring.o cstack.o markdown.o parser.o viewer.o mdp.o
-DESTDIR ?= /usr/bin
ifeq ($(DEBUG),1)
ifeq ($(DEBUG),1)
-CFLAGS := -
Wall -g -O0
+CFLAGS := -
O0 -Wall -g
LDFLAGS :=
endif
LDFLAGS :=
endif
+ifeq (Windows_NT, $(OS))
+CURSES = pdcurses
+CFLAGS += -DWIN32=1
+else
+CURSES = ncursesw
+endif
+
+LDFLAGS = -s
+LDLIBS = -l$(CURSES)
+OBJECTS = cstring.o cstack.o markdown.o parser.o viewer.o mdp.o
+DESTDIR = /usr/bin
+
all: mdp
mdp: $(OBJECTS)
all: mdp
mdp: $(OBJECTS)