2002-06-07 02:49:45 -07:00
|
|
|
include ../support/Makefile.common.nt
|
2002-04-26 05:16:26 -07:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
CCFLAGS=-I../support -I../../../byterun $(TK_DEFS)
|
2002-04-26 05:16:26 -07:00
|
|
|
|
|
|
|
COMPFLAGS=-I $(OTHERS)/win32unix -I ../support -I ../camltk
|
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
all: tkanim.cma dlltkanim.dll libtkanim.$(A)
|
|
|
|
opt: tkanim.cmxa libtkanim.$(A)
|
2002-04-26 05:16:26 -07:00
|
|
|
example: gifanimtest.exe
|
|
|
|
|
|
|
|
OBJS=tkanim.cmo
|
|
|
|
COBJS= cltkaniminit.obj tkAnimGIF.obj
|
2002-06-07 02:49:45 -07:00
|
|
|
DCOBJS=$(COBJS:.obj=.$(DO))
|
|
|
|
SCOBJS=$(COBJS:.obj=.$(SO))
|
2002-04-26 05:16:26 -07:00
|
|
|
|
|
|
|
tkanim.cma: $(OBJS)
|
|
|
|
$(CAMLLIBR) -o tkanim.cma $(OBJS) \
|
2002-06-07 02:49:45 -07:00
|
|
|
-dllib -ltkanim -cclib -ltkanim -cclib "$(TK_LINK)"
|
2002-04-26 05:16:26 -07:00
|
|
|
|
|
|
|
tkanim.cmxa: $(OBJS:.cmo=.cmx)
|
|
|
|
$(CAMLOPTLIBR) -o tkanim.cmxa $(OBJS:.cmo=.cmx) \
|
2002-06-07 02:49:45 -07:00
|
|
|
-cclib -ltkanim -cclib "$(TK_LINK)"
|
2002-04-26 05:16:26 -07:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
libtkanim.$(A): $(SCOBJS)
|
|
|
|
$(call MKLIB,libtkanim.$(A), $(SCOBJS))
|
2002-04-26 05:16:26 -07:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
dlltkanim.dll: $(DCOBJS)
|
|
|
|
$(call MKDLL,dlltkanim.dll,tmp.$(A), \
|
|
|
|
$(DCOBJS) ../support/dll$(LIBNAME).$(A) \
|
|
|
|
../../../byterun/ocamlrun.$(A) \
|
|
|
|
$(TK_LINK) $(call SYSLIB,wsock32))
|
2002-04-26 05:16:26 -07:00
|
|
|
rm tmp.*
|
|
|
|
|
|
|
|
gifanimtest.exe: all gifanimtest.cmo
|
|
|
|
$(CAMLC) -custom -o $@ -I ../lib -I ../camltk -I ../support unix.cma $(LIBNAME).cma tkanim.cma gifanimtest.cmo
|
|
|
|
|
|
|
|
# animwish: $(TKANIM_LIB) tkAppInit.o
|
|
|
|
# $(CC) -o $@ tkAppInit.o $(TK_LINK) $(X11_LINK) \
|
|
|
|
# -L. -ltkanim $(LIBS)
|
|
|
|
|
|
|
|
clean:
|
2002-06-07 02:49:45 -07:00
|
|
|
rm -f *.cm* *.$(O) *.$(A) *.dll gifanimtest.exe
|
2002-04-26 05:16:26 -07:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
$(OBJS) $(OBJS:.cmo=.cmi): ../lib/$(LIBNAME).cma
|
2002-04-26 05:16:26 -07:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
$(OBJS:.cmo=.cmx): ../lib/$(LIBNAME).cmxa
|
2002-04-26 05:16:26 -07:00
|
|
|
|
|
|
|
.SUFFIXES :
|
2002-06-07 02:49:45 -07:00
|
|
|
.SUFFIXES : .mli .ml .cmi .cmo .mlp .cmx .c .$(DO) .$(SO)
|
2002-04-26 05:16:26 -07:00
|
|
|
|
|
|
|
.mli.cmi:
|
|
|
|
$(CAMLCOMP) $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
.ml.cmo:
|
|
|
|
$(CAMLCOMP) $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
.ml.cmx:
|
|
|
|
$(CAMLOPT) -c $(COMPFLAGS) $<
|
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
.c.$(DO):
|
2002-04-26 05:16:26 -07:00
|
|
|
$(BYTECC) $(DLLCCCOMPOPTS) $(CCFLAGS) -c $<
|
2002-06-07 02:49:45 -07:00
|
|
|
mv $*.$(O) $*.$(DO)
|
2002-04-26 05:16:26 -07:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
.c.$(SO):
|
2002-04-26 05:16:26 -07:00
|
|
|
$(BYTECC) $(BYTECCCOMPOPTS) $(CCFLAGS) -c $<
|
2002-06-07 02:49:45 -07:00
|
|
|
mv $*.$(O) $*.$(SO)
|
2002-04-26 05:16:26 -07:00
|
|
|
|
|
|
|
install: tkanim.cma
|
2002-06-27 04:36:02 -07:00
|
|
|
cp dlltkanim.dll $(STUBLIBDIR)/dlltkanim.dll
|
|
|
|
cp tkanim.cma *.cmi *.mli libtkanim.$(A) $(INSTALLDIR)
|
2002-04-26 05:16:26 -07:00
|
|
|
|
|
|
|
installopt: tkanim.cmxa
|
2002-06-07 02:49:45 -07:00
|
|
|
cp tkanim.cmxa tkanim.$(A) $(INSTALLDIR)
|
2002-04-26 05:16:26 -07:00
|
|
|
|
|
|
|
depend: tkanim.ml
|
|
|
|
$(CAMLDEP) *.mli *.ml > .depend
|
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
include .depend
|