1#************************************************************************** 2#* * 3#* OCaml * 4#* * 5#* Xavier Leroy, projet Cristal, INRIA Rocquencourt * 6#* * 7#* Copyright 1999 Institut National de Recherche en Informatique et * 8#* en Automatique. * 9#* * 10#* All rights reserved. This file is distributed under the terms of * 11#* the GNU Lesser General Public License version 2.1, with the * 12#* special exception on linking described in the file LICENSE. * 13#* * 14#************************************************************************** 15 16# Note: since this directory is Windows-specific, it may be good to make sure 17# its content can not be compiled under Unix. 18# This directory could even become a subdirectory of the unix directory. 19 20# Files in this directory 21WIN_FILES = accept.c bind.c channels.c close.c \ 22 close_on.c connect.c createprocess.c dup.c dup2.c errmsg.c \ 23 getpeername.c getpid.c getsockname.c gettimeofday.c \ 24 link.c listen.c lockf.c lseek.c nonblock.c \ 25 mkdir.c open.c pipe.c read.c readlink.c rename.c \ 26 select.c sendrecv.c \ 27 shutdown.c sleep.c socket.c sockopt.c startup.c stat.c \ 28 symlink.c system.c times.c unixsupport.c windir.c winwait.c write.c \ 29 winlist.c winworker.c windbug.c 30 31# Files from the ../unix directory 32UNIX_FILES = access.c addrofstr.c chdir.c chmod.c cst2constr.c \ 33 cstringv.c envir.c execv.c execve.c execvp.c \ 34 exit.c getaddrinfo.c getcwd.c gethost.c gethostname.c \ 35 getnameinfo.c getproto.c \ 36 getserv.c gmtime.c putenv.c rmdir.c \ 37 socketaddr.c strofaddr.c time.c unlink.c utimes.c 38 39UNIX_CAML_FILES = unix.mli unixLabels.mli unixLabels.ml 40 41ALL_FILES=$(WIN_FILES) $(UNIX_FILES) 42WSOCKLIB=$(call SYSLIB,ws2_32) 43ADVAPI32LIB=$(call SYSLIB,advapi32) 44 45LIBNAME=unix 46COBJS=$(ALL_FILES:.c=.$(O)) 47CAMLOBJS=unix.cmo unixLabels.cmo 48LINKOPTS=-cclib $(WSOCKLIB) -cclib $(ADVAPI32LIB) 49LDOPTS=-ldopt $(WSOCKLIB) -ldopt $(ADVAPI32LIB) 50EXTRACAMLFLAGS=-nolabels 51EXTRACFLAGS=-I../unix 52HEADERS=unixsupport.h socketaddr.h 53 54 55include ../Makefile 56 57clean:: 58 rm -f $(UNIX_FILES) $(UNIX_CAML_FILES) 59 60$(UNIX_FILES) $(UNIX_CAML_FILES): %: ../unix/% 61 cp ../unix/$* $* 62 63depend: 64 65$(COBJS): unixsupport.h 66 67include .depend 68