1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
include ../Makefile.config
COMPFLAGS= -I ../support
TKLINKOPT=$(STATIC) \
-ccopt -L../support -cclib -lcamltk41 \
$(TKLIBS) $(X11_LIBS)
SUPPORT=../support/hashtblc.cmo \
../support/support.cmo ../support/widget.cmo ../support/protocol.cmo \
../support/textvariable.cmo ../support/timer.cmo \
../support/fileevent.cmo
all : tk41.cma ocamltktop
include ./modules
tk41.cma : $(SUPPORT) $(WIDGETOBJS) tk.cmo
$(CAMLLIBR) -o tk41.cma $(SUPPORT) tk.cmo $(WIDGETOBJS)
## Until ocamltktop is fixed (next release), we in-line it
## (otherwise our trick with -ccopt is broken)
ocamltktop : $(WIDGETOBJS) $(SUPPORT)
$(CAMLC) -custom -linkall -o ocamltktop -I ../support $(TKLINKOPT) \
toplevellib.cma tk41.cma topmain.cmo
# All .{ml,mli} files are generated in this directory
clean :
rm -f *.cm* *.ml *.mli tk41.cmo ocamltktop
install: tk41.cma ocamltktop
if test -d $(INSTALLDIR); then : ; else mkdir $(INSTALLDIR); fi
cp *.cmi *.mli tk41.cma ocamltktop $(INSTALLDIR)
chmod 644 $(INSTALLDIR)/*.cmi
chmod 644 $(INSTALLDIR)/*.mli
chmod 644 $(INSTALLDIR)/tk41.cma
chmod 755 $(INSTALLDIR)/ocamltktop
.SUFFIXES :
.SUFFIXES : .mli .ml .cmi .cmo .mlp
.mli.cmi:
$(CAMLCOMP) $(COMPFLAGS) $<
.ml.cmo:
$(CAMLCOMP) $(COMPFLAGS) $<
include .depend
|