1996-09-04 07:17:43 -07:00
|
|
|
include ../../config/Makefile.nt
|
|
|
|
|
|
|
|
# Compilation options
|
|
|
|
CC=$(BYTECC)
|
1996-09-05 06:32:25 -07:00
|
|
|
CFLAGS=-I..\..\byterun $(BYTECCCOMPOPTS)
|
1996-09-09 08:02:04 -07:00
|
|
|
CAMLC=..\..\boot\ocamlrun ..\..\boot\ocamlc -I ..\..\stdlib -I ..\win32unix
|
|
|
|
CPPFLAGS=/DWIN32
|
1996-09-05 06:32:25 -07:00
|
|
|
C_OBJS=win32.obj
|
1996-09-04 07:17:43 -07:00
|
|
|
|
1996-09-09 05:25:20 -07:00
|
|
|
LIB=..\..\stdlib
|
|
|
|
|
|
|
|
LIB_OBJS=mutex.cmo iolock.cmo pervasives.cmo \
|
1996-10-31 08:05:15 -08:00
|
|
|
$(LIB)\list.cmo $(LIB)\char.cmo $(LIB)\string.cmo \
|
1996-09-09 05:25:20 -07:00
|
|
|
$(LIB)\array.cmo $(LIB)\sys.cmo $(LIB)\hashtbl.cmo $(LIB)\sort.cmo \
|
|
|
|
$(LIB)\filename.cmo $(LIB)\obj.cmo $(LIB)\lexing.cmo $(LIB)\parsing.cmo \
|
|
|
|
$(LIB)\set.cmo $(LIB)\map.cmo $(LIB)\stack.cmo $(LIB)\queue.cmo \
|
|
|
|
$(LIB)\stream.cmo $(LIB)\printf.cmo $(LIB)\format.cmo $(LIB)\arg.cmo \
|
|
|
|
$(LIB)\printexc.cmo $(LIB)\gc.cmo $(LIB)\digest.cmo $(LIB)\random.cmo \
|
1997-03-21 05:40:47 -08:00
|
|
|
$(LIB)\oo.cmo $(LIB)\genlex.cmo $(LIB)\callback.cmo $(LIB)\weak.cmo
|
1996-09-09 05:25:20 -07:00
|
|
|
|
|
|
|
THREAD_OBJS=thread.cmo condition.cmo event.cmo threadUnix.cmo
|
|
|
|
|
|
|
|
GENFILES=pervasives.mli thread.ml condition.ml
|
|
|
|
|
|
|
|
all: libthreads.lib threads.cma stdlib.cma
|
1996-09-04 07:17:43 -07:00
|
|
|
|
|
|
|
allopt:
|
|
|
|
|
|
|
|
libthreads.lib: $(C_OBJS)
|
|
|
|
rm -f libthreads.lib
|
|
|
|
$(MKLIB)libthreads.lib $(C_OBJS)
|
|
|
|
|
1996-09-09 05:25:20 -07:00
|
|
|
threads.cma: $(THREAD_OBJS)
|
|
|
|
$(CAMLC) -a -o threads.cma $(THREAD_OBJS)
|
|
|
|
|
|
|
|
stdlib.cma: $(LIB_OBJS)
|
|
|
|
$(CAMLC) -a -o stdlib.cma $(LIB_OBJS)
|
|
|
|
|
|
|
|
pervasives.cmo: pervasives.mli pervasives.cmi pervasives.ml
|
|
|
|
$(CAMLC) -nopervasives -c pervasives.ml
|
|
|
|
|
|
|
|
pervasives.mli: $(LIB)\pervasives.mli
|
|
|
|
cp $(LIB)/pervasives.mli pervasives.mli
|
|
|
|
|
|
|
|
pervasives.cmi: $(LIB)\pervasives.cmi
|
|
|
|
cp $(LIB)/pervasives.cmi pervasives.cmi
|
|
|
|
|
|
|
|
iolock.cmo: iolock.ml
|
|
|
|
$(CAMLC) -nopervasives -c iolock.ml
|
|
|
|
|
|
|
|
iolock.cmi: iolock.mli
|
|
|
|
$(CAMLC) -nopervasives -c iolock.mli
|
1996-09-04 07:17:43 -07:00
|
|
|
|
1997-02-16 05:36:42 -08:00
|
|
|
partialclean:
|
|
|
|
rm -f *.cm*
|
|
|
|
|
1997-03-05 02:48:39 -08:00
|
|
|
clean: partialclean
|
1996-09-09 05:25:20 -07:00
|
|
|
rm -f libthreads.a *.o *.cm*
|
|
|
|
rm -f $(GENFILES)
|
1996-09-04 07:17:43 -07:00
|
|
|
|
|
|
|
install:
|
|
|
|
cp libthreads.lib $(LIBDIR)/libthreads.lib
|
1996-09-09 05:25:20 -07:00
|
|
|
if not exist $(LIBDIR)\threads mkdir $(LIBDIR)\threads
|
|
|
|
cp thread.cmi mutex.cmi condition.cmi event.cmi threadUnix.cmi threads.cma stdlib.cma $(LIBDIR)/threads
|
1996-09-04 07:17:43 -07:00
|
|
|
|
|
|
|
installopt:
|
|
|
|
|
1996-09-09 05:25:20 -07:00
|
|
|
.SUFFIXES: .ml .mli .mlp .cmo .cmi .cmx
|
1996-09-04 07:17:43 -07:00
|
|
|
|
|
|
|
.mli.cmi:
|
|
|
|
$(CAMLC) -c $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
.ml.cmo:
|
|
|
|
$(CAMLC) -c $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
.ml.cmx:
|
|
|
|
$(CAMLOPT) -c $(COMPFLAGS) $<
|
|
|
|
|
1996-09-09 05:25:20 -07:00
|
|
|
.mlp.ml:
|
|
|
|
@rm -f $*.ml
|
|
|
|
$(CPP) $(CPPFLAGS) $*.mlp > $*.ml
|
|
|
|
@attrib +r $*.ml
|
|
|
|
|
|
|
|
thread.ml: thread.mlp
|
|
|
|
condition.ml: condition.mlp
|
|
|
|
|
1996-09-04 07:17:43 -07:00
|
|
|
depend:
|
1996-09-05 06:32:25 -07:00
|
|
|
# gcc -MM -I../../byterun *.c > .depend
|
|
|
|
..\..\boot\ocamlrun ../../tools/ocamldep *.mli *.ml >> .depend
|
1996-09-04 07:17:43 -07:00
|
|
|
|
|
|
|
include .depend
|