69 lines
1.6 KiB
Makefile
69 lines
1.6 KiB
Makefile
!include Makefile.common.nt
|
|
|
|
all: support.cmo widget.cmo protocol.cmo \
|
|
textvariable.cmo timer.cmo fileevent.cmo \
|
|
dlllabltk41.dll liblabltk41.lib
|
|
|
|
opt: support.cmx widget.cmx protocol.cmx \
|
|
textvariable.cmx timer.cmx fileevent.cmx \
|
|
liblabltk41.lib
|
|
|
|
COBJS=cltkCaml.obj cltkEval.obj cltkEvent.obj cltkFile.obj cltkMain.obj \
|
|
cltkMisc.obj cltkTimer.obj cltkVar.obj cltkWait.obj
|
|
|
|
CCFLAGS=-I..\..\..\byterun $(TK_DEFS)
|
|
|
|
COMPFLAGS=-I $(OTHERS)/win32unix
|
|
|
|
dlllabltk41.dll : $(COBJS:.obj=.dobj)
|
|
link /nologo /dll /out:dlllabltk41.dll /implib:tmp.lib \
|
|
$(COBJS:.obj=.dobj) ..\..\..\byterun\ocamlrun.lib \
|
|
$(TK_LINK) wsock32.lib
|
|
rm tmp.*
|
|
|
|
liblabltk41.lib : $(COBJS:.obj=.sobj)
|
|
rm -f liblabltk41.lib
|
|
$(MKLIB)liblabltk41.lib $(COBJS:.obj=.sobj)
|
|
|
|
PUB=fileevent.cmi fileevent.mli \
|
|
protocol.cmi protocol.mli \
|
|
textvariable.cmi textvariable.mli \
|
|
timer.cmi timer.mli \
|
|
widget.cmi widget.mli
|
|
|
|
install: dlllabltk41.dll liblabltk41.lib $(PUB)
|
|
@if not exist $(LABLTKDIR) mkdir $(LABLTKDIR)
|
|
cp $(PUB) $(LABLTKDIR)
|
|
cp dlllabltk41.dll liblabltk41.lib $(LABLTKDIR)
|
|
echo $(LABLTKDIR)>> $(LIBDIR)\ld.conf
|
|
|
|
clean :
|
|
rm -f *.cm* *.dobj *.sobj *.dll *.lib
|
|
|
|
.SUFFIXES :
|
|
.SUFFIXES : .mli .ml .cmi .cmo .cmx .mlp .c .dobj .sobj
|
|
|
|
.mli.cmi:
|
|
$(LABLCOMP) $(COMPFLAGS) $<
|
|
|
|
.ml.cmo:
|
|
$(LABLCOMP) $(COMPFLAGS) $<
|
|
|
|
.ml.cmx:
|
|
$(CAMLOPT) -c $(COMPFLAGS) $<
|
|
|
|
.c.dobj:
|
|
$(BYTECC) $(DLLCCCOMPOPTS) $(CCFLAGS) -c $<
|
|
mv $*.obj $*.dobj
|
|
|
|
.c.sobj:
|
|
$(BYTECC) $(BYTECCCOMPOPTS) $(CCFLAGS) -c $<
|
|
mv $*.obj $*.sobj
|
|
|
|
depend:
|
|
$(LABLDEP) *.mli *.ml > .depend
|
|
|
|
$(COBJS): camltk.h
|
|
|
|
!include .depend
|