1999-12-07 07:25:56 -08:00
|
|
|
include Makefile.common
|
1999-11-30 06:59:39 -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 \
|
|
|
|
lib$(LIBNAME).a
|
1999-11-30 06:59:39 -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 \
|
|
|
|
lib$(LIBNAME).a
|
1999-11-30 06:59:39 -08:00
|
|
|
|
2002-04-26 05:16:26 -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
|
1999-11-30 06:59:39 -08:00
|
|
|
|
2002-05-29 05:02:54 -07:00
|
|
|
CCFLAGS=-I../../../byterun $(TK_DEFS) $(SHAREDCCCOMPOPTS)
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
COMPFLAGS=-I $(OTHERS)/unix
|
|
|
|
|
2002-04-26 05:16:26 -07:00
|
|
|
lib$(LIBNAME).a : $(COBJS)
|
2002-05-28 20:51:53 -07:00
|
|
|
$(MKLIB) -o $(LIBNAME) $(COBJS) $(TK_LINK)
|
1999-11-30 06:59:39 -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 \
|
1999-11-30 06:59:39 -08:00
|
|
|
widget.cmi widget.mli
|
|
|
|
|
2002-04-26 05:16:26 -07:00
|
|
|
install: lib$(LIBNAME).a $(PUB)
|
|
|
|
if test -d $(INSTALLDIR); then : ; else mkdir $(INSTALLDIR); fi
|
|
|
|
cp $(PUB) lib$(LIBNAME).a $(INSTALLDIR)
|
|
|
|
cd $(INSTALLDIR); $(RANLIB) lib$(LIBNAME).a
|
|
|
|
cd $(INSTALLDIR); chmod 644 $(PUB) lib$(LIBNAME).a
|
|
|
|
if test -f dll$(LIBNAME).so; then \
|
2002-06-27 04:36:02 -07:00
|
|
|
cp dll$(LIBNAME).so $(STUBLIBDIR)/dll$(LIBNAME).so; fi
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
clean :
|
2002-04-26 05:16:26 -07:00
|
|
|
rm -f *.cm* *.o *.a *.so
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
.SUFFIXES :
|
|
|
|
.SUFFIXES : .mli .ml .cmi .cmo .cmx .mlp .c .o
|
|
|
|
|
|
|
|
.mli.cmi:
|
2002-04-26 05:16:26 -07:00
|
|
|
$(CAMLCOMP) $(COMPFLAGS) $<
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
.ml.cmo:
|
2002-04-26 05:16:26 -07:00
|
|
|
$(CAMLCOMP) $(COMPFLAGS) $<
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
.ml.cmx:
|
|
|
|
$(CAMLOPT) -c $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
.c.o:
|
2000-04-17 01:55:44 -07:00
|
|
|
$(BYTECC) $(BYTECCCOMPOPTS) $(CCFLAGS) -c $<
|
1999-11-30 06:59:39 -08:00
|
|
|
|
|
|
|
depend:
|
2002-04-26 05:16:26 -07:00
|
|
|
$(CAMLDEP) *.mli *.ml > .depend
|
1999-11-30 06:59:39 -08:00
|
|
|
|
2000-04-17 01:55:44 -07:00
|
|
|
$(COBJS): $(TOPDIR)/config/Makefile camltk.h
|
2000-02-14 23:25:10 -08:00
|
|
|
|
1999-11-30 06:59:39 -08:00
|
|
|
include .depend
|