2002-06-07 02:49:45 -07:00
|
|
|
include Makefile.common.nt
|
2000-01-31 21:43:25 -08:00
|
|
|
|
2002-04-26 05:16:26 -07:00
|
|
|
all: support.cmo rawwidget.cmo widget.cmo protocol.cmo \
|
|
|
|
textvariable.cmo timer.cmo fileevent.cmo camltkwrap.cmo \
|
2002-06-07 02:49:45 -07:00
|
|
|
dll$(LIBNAME).dll lib$(LIBNAME).$(A)
|
2000-01-31 21:43:25 -08:00
|
|
|
|
2002-04-26 05:16:26 -07:00
|
|
|
opt: support.cmx rawwidget.cmx widget.cmx protocol.cmx \
|
|
|
|
textvariable.cmx timer.cmx fileevent.cmx camltkwrap.cmx \
|
2002-06-07 02:49:45 -07:00
|
|
|
lib$(LIBNAME).$(A)
|
2000-01-31 21:43:25 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
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))
|
2000-01-31 21:43:25 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
CCFLAGS=-I../../../byterun -I../../win32unix $(TK_DEFS)
|
2000-01-31 21:43:25 -08:00
|
|
|
|
|
|
|
COMPFLAGS=-I $(OTHERS)/win32unix
|
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
dll$(LIBNAME).dll : $(DCOBJS)
|
|
|
|
$(call MKDLL,dll$(LIBNAME).dll,dll$(LIBNAME).$(A),\
|
|
|
|
$(DCOBJS) ../../../byterun/ocamlrun.$(A) \
|
|
|
|
$(TK_LINK) $(call SYSLIB,wsock32))
|
2001-08-28 07:47:48 -07:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
lib$(LIBNAME).$(A) : $(SCOBJS)
|
|
|
|
$(call MKLIB,lib$(LIBNAME).$(A), $(SCOBJS))
|
2000-01-31 21:43:25 -08:00
|
|
|
|
|
|
|
PUB=fileevent.cmi fileevent.mli \
|
|
|
|
protocol.cmi protocol.mli \
|
|
|
|
textvariable.cmi textvariable.mli \
|
|
|
|
timer.cmi timer.mli \
|
2002-04-26 05:16:26 -07:00
|
|
|
rawwidget.cmi rawwidget.mli \
|
2000-01-31 21:43:25 -08:00
|
|
|
widget.cmi widget.mli
|
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
install:
|
|
|
|
mkdir -p $(INSTALLDIR)
|
2002-04-26 05:16:26 -07:00
|
|
|
cp $(PUB) $(INSTALLDIR)
|
2002-07-03 02:45:44 -07:00
|
|
|
cp dll$(LIBNAME).dll $(STUBLIBDIR)/dll$(LIBNAME).dll
|
2002-06-27 04:36:02 -07:00
|
|
|
cp dll$(LIBNAME).$(A) lib$(LIBNAME).$(A) $(INSTALLDIR)
|
2000-01-31 21:43:25 -08:00
|
|
|
|
|
|
|
clean :
|
2002-06-07 02:49:45 -07:00
|
|
|
rm -f *.cm* *.$(O) *.dll *.$(A) *.exp
|
2000-01-31 21:43:25 -08:00
|
|
|
|
|
|
|
.SUFFIXES :
|
2002-06-07 02:49:45 -07:00
|
|
|
.SUFFIXES : .mli .ml .cmi .cmo .cmx .mlp .c .$(DO) .$(SO)
|
2000-01-31 21:43:25 -08:00
|
|
|
|
|
|
|
.mli.cmi:
|
2002-04-26 05:16:26 -07:00
|
|
|
$(CAMLCOMP) $(COMPFLAGS) $<
|
2000-01-31 21:43:25 -08:00
|
|
|
|
|
|
|
.ml.cmo:
|
2002-04-26 05:16:26 -07:00
|
|
|
$(CAMLCOMP) $(COMPFLAGS) $<
|
2000-01-31 21:43:25 -08:00
|
|
|
|
|
|
|
.ml.cmx:
|
|
|
|
$(CAMLOPT) -c $(COMPFLAGS) $<
|
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
.c.$(DO):
|
2001-08-28 07:47:48 -07:00
|
|
|
$(BYTECC) $(DLLCCCOMPOPTS) $(CCFLAGS) -c $<
|
2002-06-07 02:49:45 -07:00
|
|
|
mv $*.$(O) $*.$(DO)
|
2001-08-28 07:47:48 -07:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
.c.$(SO):
|
2000-04-17 01:55:44 -07:00
|
|
|
$(BYTECC) $(BYTECCCOMPOPTS) $(CCFLAGS) -c $<
|
2002-06-07 02:49:45 -07:00
|
|
|
mv $*.$(O) $*.$(SO)
|
2000-01-31 21:43:25 -08:00
|
|
|
|
|
|
|
depend:
|
2002-04-26 05:16:26 -07:00
|
|
|
$(CAMLDEP) *.mli *.ml > .depend
|
2000-01-31 21:43:25 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
$(DCOBJS) $(SCOBJS): camltk.h
|
2000-04-17 01:55:44 -07:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
include .depend
|