2002-06-07 02:49:45 -07:00
|
|
|
include ../support/Makefile.common.nt
|
2000-01-31 21:43:25 -08:00
|
|
|
|
2002-04-26 05:16:26 -07:00
|
|
|
all: $(LIBNAME).cma
|
2000-01-31 21:43:25 -08:00
|
|
|
|
2002-04-26 05:16:26 -07:00
|
|
|
opt: $(LIBNAME).cmxa
|
2000-01-31 21:43:25 -08:00
|
|
|
|
2002-04-26 05:16:26 -07:00
|
|
|
clean:
|
2002-06-07 02:49:45 -07:00
|
|
|
rm -f $(LIBNAME).cma $(LIBNAME).cmxa *.$(A)
|
2000-01-31 21:43:25 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
include ../labltk/modules
|
2002-04-26 05:16:26 -07:00
|
|
|
LABLTKOBJS=tk.cmo $(WIDGETOBJS)
|
2000-01-31 21:43:25 -08:00
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
include ../camltk/modules
|
2002-04-26 05:16:26 -07:00
|
|
|
CAMLTKOBJS=cTk.cmo $(CWIDGETOBJS) labltk.cmo camltk.cmo
|
2000-01-31 21:43:25 -08:00
|
|
|
|
2002-04-26 05:16:26 -07:00
|
|
|
SUPPORT=../support/support.cmo ../support/rawwidget.cmo \
|
|
|
|
../support/widget.cmo ../support/protocol.cmo \
|
|
|
|
../support/textvariable.cmo ../support/timer.cmo \
|
|
|
|
../support/fileevent.cmo ../support/camltkwrap.cmo
|
2000-01-31 21:43:25 -08:00
|
|
|
|
2002-04-26 05:16:26 -07:00
|
|
|
TKOBJS=$(SUPPORT) $(LABLTKOBJS) $(CAMLTKOBJS)
|
2000-01-31 21:43:25 -08:00
|
|
|
|
2002-04-26 05:16:26 -07:00
|
|
|
TOPDEPS = $(TOPDIR)/toplevel/toplevellib.cma $(TOPDIR)/toplevel/topmain.cmo
|
2000-01-31 21:43:25 -08:00
|
|
|
|
2002-07-12 08:31:41 -07:00
|
|
|
UNIXLIB = $(call SYSLIB,wsock32)
|
|
|
|
|
2002-04-26 05:16:26 -07:00
|
|
|
$(LIBNAME).cma: $(SUPPORT)
|
2002-06-07 02:49:45 -07:00
|
|
|
cd ../labltk ; $(MAKEREC)
|
|
|
|
cd ../camltk ; $(MAKEREC)
|
2002-04-26 05:16:26 -07:00
|
|
|
$(CAMLLIBR) -o $(LIBNAME).cma -I ../labltk -I ../camltk $(TKOBJS) \
|
2002-07-12 08:31:41 -07:00
|
|
|
-dllib -l$(LIBNAME) -cclib -l$(LIBNAME) \
|
|
|
|
-cclib "$(TK_LINK)" -cclib $(UNIXLIB)
|
2002-04-26 05:16:26 -07:00
|
|
|
|
|
|
|
$(LIBNAME).cmxa: $(SUPPORT:.cmo=.cmx)
|
|
|
|
cd ../labltk; $(MAKEREC) opt
|
|
|
|
cd ../camltk; $(MAKEREC) opt
|
|
|
|
$(CAMLOPTLIBR) -o $(LIBNAME).cmxa -I ../labltk -I ../camltk \
|
2002-07-12 08:31:41 -07:00
|
|
|
$(TKOBJS:.cmo=.cmx) -cclib -l$(LIBNAME) \
|
|
|
|
-cclib "$(TK_LINK)" -cclib $(UNIXLIB)
|
2002-04-26 05:16:26 -07:00
|
|
|
|
|
|
|
# $(LIBNAME)top$(EXE) : $(TOPDEPS) $(LIBNAME).cma ../support/lib$(LIBNAME).a
|
|
|
|
# $(CAMLC) -linkall -o $(LIBNAME)top$(EXE) -I ../support \
|
|
|
|
# -I $(TOPDIR)/toplevel toplevellib.cma \
|
|
|
|
# -I ../labltk -I ../camltk $(LIBNAME).cma \
|
|
|
|
# -I $(OTHERS)/unix unix.cma \
|
|
|
|
# -I $(OTHERS)/str str.cma \
|
|
|
|
# topmain.cmo
|
|
|
|
#
|
|
|
|
# $(LIBNAME): Makefile $(TOPDIR)/config/Makefile
|
|
|
|
# @echo Generate $@
|
|
|
|
# @echo "#!/bin/sh" > $@
|
|
|
|
# @echo 'exec $(INSTALLDIR)/$(LIBNAME)top$(EXE) -I $(INSTALLDIR) $$*' >> $@
|
|
|
|
|
|
|
|
install: all
|
2002-06-07 02:49:45 -07:00
|
|
|
mkdir -p $(INSTALLDIR)
|
2002-04-26 05:16:26 -07:00
|
|
|
cp $(LIBNAME).cma $(INSTALLDIR)
|
|
|
|
|
|
|
|
installopt: opt
|
2002-06-07 02:49:45 -07:00
|
|
|
mkdir -p $(INSTALLDIR)
|
|
|
|
cp $(LIBNAME).cmxa $(LIBNAME).$(A) $(INSTALLDIR)
|