1 Split up the all and opt (native code) rules, and allow the curses
2 library to be specified explicitly.
4 diff -ur mingw32-ocaml-curses-20020319.orig/curses/Makefile mingw32-ocaml-curses-20020319.mingw/curses/Makefile
5 --- mingw32-ocaml-curses-20020319.orig/curses/Makefile 2002-03-19 13:07:47.000000000 +0000
6 +++ mingw32-ocaml-curses-20020319.mingw/curses/Makefile 2008-11-15 23:03:35.000000000 +0000
14 -all: libmlcurses.a mlcurses.cma mlcurses.cmxa
15 +all: libmlcurses.a mlcurses.cma
17 +opt: libmlcurses.a mlcurses.cmxa
19 ml_curses.o: ml_curses.c functions.c
20 $(OCAMLC) -ccopt "$(CFLAGS)" -c $<
22 libmlcurses.a: ml_curses.o
23 - $(OCAMLMKLIB) -o mlcurses $< -l$(CURSES)
24 + $(OCAMLMKLIB) -o mlcurses $< $(CURSES)
26 mlcurses.cma: curses.cmo
27 $(OCAMLMKLIB) -o mlcurses -linkall $^