summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--otherlibs/win32unix/Makefile.nt20
-rw-r--r--otherlibs/win32unix/unixsupport.h2
2 files changed, 8 insertions, 14 deletions
diff --git a/otherlibs/win32unix/Makefile.nt b/otherlibs/win32unix/Makefile.nt
index edb8edc14..c59cef290 100644
--- a/otherlibs/win32unix/Makefile.nt
+++ b/otherlibs/win32unix/Makefile.nt
@@ -49,24 +49,19 @@ LIBS=$(call SYSLIB,wsock32)
CAML_OBJS=unix.cmo unixLabels.cmo
CAMLOPT_OBJS=$(CAML_OBJS:.cmo=.cmx)
+UNIX_CAML_FILES = unix.mli unixLabels.mli unixLabels.ml
+
all: dllunix.dll libunix.$(A) unix.cma
allopt: libunix.$(A) unix.cmxa
-dllunix.dll: io.h $(DOBJS)
+dllunix.dll: $(DOBJS)
$(call MKDLL,dllunix.dll,tmp.$(A),$(DOBJS) ../../byterun/ocamlrun.$(A) $(LIBS))
rm tmp.*
-libunix.$(A): io.h $(SOBJS)
+libunix.$(A): $(SOBJS)
$(call MKLIB,libunix.$(A),$(SOBJS))
-#copy_unix_files:
-# @cd ../unix; cp -p -u $(UNIX_FILES) ../win32unix
-# @cp ../unix/unix.mli ../unix/unixLabels.ml* .
-
-io.h: $(SYSTEM_INCLUDES)/io.h
- cp "$(SYSTEM_INCLUDES)/io.h" io.h
-
$(DOBJS) $(SOBJS): unixsupport.h
unix.cma: $(CAML_OBJS)
@@ -82,8 +77,7 @@ partialclean:
clean: partialclean
rm -f *.$(A) *.dll *.$(O)
- rm -f $(UNIX_FILES)
- rm -f io.h
+ rm -f $(UNIX_FILES) $(UNIX_CAML_FILES)
install:
cp dllunix.dll $(LIBDIR)/dllunix.dll
@@ -99,8 +93,8 @@ unixLabels.cmo: unixLabels.ml
unixLabels.cmx: unixLabels.ml
$(CAMLOPT) -c $(COMPFLAGS) -nolabels unixLabels.ml
-$(UNIX_FILES): %.c: ../unix/%.c
- cp ../unix/$*.c $*.c
+$(UNIX_FILES) $(UNIX_CAML_FILES): %: ../unix/%
+ cp ../unix/$* $*
.SUFFIXES: .ml .mli .cmo .cmi .cmx .$(DO) .$(SO)
diff --git a/otherlibs/win32unix/unixsupport.h b/otherlibs/win32unix/unixsupport.h
index a14731f40..8dcb45ae3 100644
--- a/otherlibs/win32unix/unixsupport.h
+++ b/otherlibs/win32unix/unixsupport.h
@@ -18,7 +18,7 @@
#include <stdlib.h>
/* Include io.h in current dir, which is a copy of the system's io.h,
not io.h from ../../byterun */
-#include "io.h"
+/*#include "io.h"*/
#include <direct.h>
#include <process.h>
#include <sys/types.h>