Suppression de la dependance sur io.h

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4932 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Xavier Leroy 2002-06-18 13:01:36 +00:00
parent 51e7c409ef
commit a64d03d619
2 changed files with 8 additions and 14 deletions

View File

@ -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)

View File

@ -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>