######################################################################### # # # Objective Caml # # # # Xavier Leroy, projet Cristal, INRIA Rocquencourt # # # # Copyright 1999 Institut National de Recherche en Informatique et # # en Automatique. All rights reserved. This file is distributed # # under the terms of the GNU Library General Public License, with # # the special exception on linking described in file ../../LICENSE. # # # ######################################################################### # $Id$ include ../../config/Makefile.nt # Compilation options CAMLC=..\..\boot\ocamlrun ..\..\ocamlc -I ..\..\stdlib -I ..\win32unix CAMLOPT=..\..\boot\ocamlrun ..\..\ocamlopt -I ..\..\stdlib -I ..\win32unix THREAD_OBJS=thread.cmo mutex.cmo condition.cmo event.cmo threadUnix.cmo GENFILES=thread.ml all: dllthreads.dll libthreads.lib threads.cma allopt: libthreadsnat.lib threads.cmxa dllthreads.dll: win32_b.dobj link /nologo /dll /out:dllthreads.dll /implib:tmp.lib \ win32_b.dobj ..\..\byterun\ocamlrun.lib rm tmp.* libthreads.lib: win32_b.sobj rm -f libthreads.lib $(MKLIB)libthreads.lib win32_b.sobj win32_b.dobj: win32.c $(BYTECC) -I..\..\byterun $(DLLCCCOMPOPTS) -c win32.c mv win32.obj win32_b.dobj win32_b.sobj: win32.c $(BYTECC) -I..\..\byterun $(BYTECCCOMPOPTS) -c win32.c mv win32.obj win32_b.sobj libthreadsnat.lib: win32_n.obj rm -f libthreadsnat.lib $(MKLIB)libthreadsnat.lib win32_n.obj win32_n.obj: win32.c $(NATIVECC) -DNATIVE_CODE -O -I..\..\asmrun -I..\..\byterun $(NATIVECCCOMPOPTS) -c win32.c mv win32.obj win32_n.obj threads.cma: $(THREAD_OBJS) $(CAMLC) -a -o threads.cma $(THREAD_OBJS) \ -dllib -lthreads -cclib -lthreads threads.cmxa: $(THREAD_OBJS:.cmo=.cmx) $(CAMLOPT) -a -o threads.cmxa $(THREAD_OBJS:.cmo=.cmx) \ -cclib -lthreadsnat $(THREAD_OBJS:.cmo=.cmx): ..\..\ocamlopt thread.ml: thread_win32.ml cp thread_win32.ml thread.ml partialclean: rm -f *.cm* clean: partialclean rm -f *.dll *.lib *.obj *.dobj *.sobj rm -f $(GENFILES) install: cp dllthreads.dll $(LIBDIR)/dllthreads.dll cp libthreads.lib $(LIBDIR)/libthreads.lib if not exist $(LIBDIR)\threads mkdir $(LIBDIR)\threads cp $(THREAD_OBJS:.cmo=.cmi) threads.cma $(LIBDIR)/threads rm -f $(LIBDIR)/threads/stdlib.cma installopt: cp libthreadsnat.lib $(LIBDIR)/libthreadsnat.lib cp $(THREAD_OBJS:.cmo=.cmx) threads.cmxa threads.lib $(LIBDIR)/threads .SUFFIXES: .ml .mli .cmo .cmi .cmx .mli.cmi: $(CAMLC) -c $(COMPFLAGS) $< .ml.cmo: $(CAMLC) -c -g $(COMPFLAGS) $< .ml.cmx: $(CAMLOPT) -c $(COMPFLAGS) $< depend: include .depend