1999-11-17 10:59:06 -08:00
|
|
|
#########################################################################
|
|
|
|
# #
|
2011-07-27 07:17:02 -07:00
|
|
|
# OCaml #
|
1999-11-17 10:59:06 -08:00
|
|
|
# #
|
|
|
|
# Xavier Leroy, projet Cristal, INRIA Rocquencourt #
|
|
|
|
# #
|
|
|
|
# Copyright 1999 Institut National de Recherche en Informatique et #
|
|
|
|
# en Automatique. All rights reserved. This file is distributed #
|
2001-12-07 05:41:02 -08:00
|
|
|
# under the terms of the GNU Library General Public License, with #
|
|
|
|
# the special exception on linking described in file ../../LICENSE. #
|
1999-11-17 10:59:06 -08:00
|
|
|
# #
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# $Id$
|
|
|
|
|
1996-09-04 07:17:43 -07:00
|
|
|
# Files in this directory
|
2002-06-07 02:49:45 -07:00
|
|
|
WIN_FILES = accept.c bind.c channels.c close.c \
|
|
|
|
close_on.c connect.c createprocess.c dup.c dup2.c errmsg.c \
|
|
|
|
getpeername.c getpid.c getsockname.c gettimeofday.c \
|
2003-01-06 08:44:21 -08:00
|
|
|
link.c listen.c lockf.c lseek.c nonblock.c \
|
2002-06-07 02:49:45 -07:00
|
|
|
mkdir.c open.c pipe.c read.c rename.c \
|
|
|
|
select.c sendrecv.c \
|
|
|
|
shutdown.c sleep.c socket.c sockopt.c startup.c stat.c \
|
2011-12-21 01:43:13 -08:00
|
|
|
system.c times.c unixsupport.c windir.c winwait.c write.c \
|
2008-07-29 01:31:41 -07:00
|
|
|
winlist.c winworker.c windbug.c
|
2002-06-07 02:49:45 -07:00
|
|
|
|
|
|
|
# Files from the ../unix directory
|
1999-08-19 06:53:20 -07:00
|
|
|
UNIX_FILES = access.c addrofstr.c chdir.c chmod.c cst2constr.c \
|
2001-08-28 07:47:48 -07:00
|
|
|
cstringv.c envir.c execv.c execve.c execvp.c \
|
2012-07-13 05:15:57 -07:00
|
|
|
exit.c getaddrinfo.c getcwd.c gethost.c gethostname.c \
|
|
|
|
getnameinfo.c getproto.c \
|
2002-04-30 08:00:48 -07:00
|
|
|
getserv.c gmtime.c putenv.c rmdir.c \
|
2002-03-06 08:55:20 -08:00
|
|
|
socketaddr.c strofaddr.c time.c unlink.c utimes.c
|
1996-09-05 06:32:25 -07:00
|
|
|
|
2002-06-18 06:01:36 -07:00
|
|
|
UNIX_CAML_FILES = unix.mli unixLabels.mli unixLabels.ml
|
|
|
|
|
2007-11-06 07:16:56 -08:00
|
|
|
ALL_FILES=$(WIN_FILES) $(UNIX_FILES)
|
2008-07-29 01:31:41 -07:00
|
|
|
WSOCKLIB=$(call SYSLIB,ws2_32)
|
2002-04-30 08:00:48 -07:00
|
|
|
|
2007-11-06 07:16:56 -08:00
|
|
|
LIBNAME=unix
|
|
|
|
COBJS=$(ALL_FILES:.c=.$(O))
|
|
|
|
CAMLOBJS=unix.cmo unixLabels.cmo
|
|
|
|
LINKOPTS=-cclib $(WSOCKLIB)
|
|
|
|
LDOPTS=-ldopt $(WSOCKLIB)
|
|
|
|
EXTRACAMLFLAGS=-nolabels
|
|
|
|
EXTRACFLAGS=-I../unix
|
2010-05-20 02:40:41 -07:00
|
|
|
HEADERS=unixsupport.h socketaddr.h
|
1996-09-04 07:17:43 -07:00
|
|
|
|
1996-10-29 06:51:58 -08:00
|
|
|
|
2007-11-06 07:16:56 -08:00
|
|
|
include ../Makefile.nt
|
1996-09-04 07:17:43 -07:00
|
|
|
|
2007-11-06 07:16:56 -08:00
|
|
|
clean::
|
2002-06-18 06:01:36 -07:00
|
|
|
rm -f $(UNIX_FILES) $(UNIX_CAML_FILES)
|
1996-09-04 07:17:43 -07:00
|
|
|
|
2002-06-18 06:01:36 -07:00
|
|
|
$(UNIX_FILES) $(UNIX_CAML_FILES): %: ../unix/%
|
|
|
|
cp ../unix/$* $*
|
2002-06-07 02:49:45 -07:00
|
|
|
|
1996-09-04 07:17:43 -07:00
|
|
|
depend:
|
|
|
|
|
2007-11-06 07:16:56 -08:00
|
|
|
$(COBJS): unixsupport.h
|
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
include .depend
|