include Makefile.common.nt all: support.cmo rawwidget.cmo widget.cmo protocol.cmo \ textvariable.cmo timer.cmo fileevent.cmo camltkwrap.cmo \ dll$(LIBNAME).dll lib$(LIBNAME).$(A) opt: support.cmx rawwidget.cmx widget.cmx protocol.cmx \ textvariable.cmx timer.cmx fileevent.cmx camltkwrap.cmx \ lib$(LIBNAME).$(A) COBJS=cltkCaml.o cltkUtf.o cltkEval.o cltkEvent.o cltkFile.o \ cltkMain.o cltkMisc.o cltkTimer.o cltkVar.o cltkWait.o cltkImg.o DCOBJS=$(COBJS:.o=.$(DO)) SCOBJS=$(COBJS:.o=.$(SO)) CCFLAGS=-I../../../byterun -I../../win32unix $(TK_DEFS) COMPFLAGS=-I $(OTHERS)/win32unix dll$(LIBNAME).dll : $(DCOBJS) $(call MKDLL,dll$(LIBNAME).dll,dll$(LIBNAME).$(A),\ $(DCOBJS) ../../../byterun/ocamlrun.$(A) \ $(TK_LINK) $(call SYSLIB,wsock32)) lib$(LIBNAME).$(A) : $(SCOBJS) $(call MKLIB,lib$(LIBNAME).$(A), $(SCOBJS)) PUB=fileevent.cmi fileevent.mli \ protocol.cmi protocol.mli \ textvariable.cmi textvariable.mli \ timer.cmi timer.mli \ rawwidget.cmi rawwidget.mli \ widget.cmi widget.mli install: mkdir -p $(INSTALLDIR) cp $(PUB) $(INSTALLDIR) cp dll$(LIBNAME).dll $(STUBLIBDIR)/dll$(LIBNAME).dll cp dll$(LIBNAME).$(A) lib$(LIBNAME).$(A) $(INSTALLDIR) clean : rm -f *.cm* *.$(O) *.dll *.$(A) *.exp .SUFFIXES : .SUFFIXES : .mli .ml .cmi .cmo .cmx .mlp .c .$(DO) .$(SO) .mli.cmi: $(CAMLCOMP) $(COMPFLAGS) $< .ml.cmo: $(CAMLCOMP) $(COMPFLAGS) $< .ml.cmx: $(CAMLOPT) -c $(COMPFLAGS) $< .c.$(DO): $(BYTECC) $(DLLCCCOMPOPTS) $(CCFLAGS) -c $< mv $*.$(O) $*.$(DO) .c.$(SO): $(BYTECC) $(BYTECCCOMPOPTS) $(CCFLAGS) -c $< mv $*.$(O) $*.$(SO) depend: $(CAMLDEP) *.mli *.ml > .depend $(DCOBJS) $(SCOBJS): camltk.h include .depend