48 lines
995 B
Makefile
48 lines
995 B
Makefile
|
include ../support/Makefile.common
|
||
|
|
||
|
COMPFLAGS= -I ../support
|
||
|
|
||
|
TOPDEPS = $(TOPDIR)/toplevel/toplevellib.cma $(TOPDIR)/toplevel/topmain.cmo
|
||
|
|
||
|
all: camltkobjs
|
||
|
|
||
|
opt: camltkobjsx
|
||
|
|
||
|
include ./modules
|
||
|
|
||
|
CAMLTKOBJS= $(CWIDGETOBJS) cTk.cmo camltk.cmo
|
||
|
CAMLTKOBJSX = $(CAMLTKOBJS:.cmo=.cmx)
|
||
|
|
||
|
camltkobjs: $(CAMLTKOBJS)
|
||
|
|
||
|
camltkobjsx: $(CAMLTKOBJSX)
|
||
|
|
||
|
# All .{ml,mli} files are generated in this directory
|
||
|
clean:
|
||
|
rm -f *.cm* *.ml *.mli *.o *.a
|
||
|
$(MAKE) -f Makefile.gen clean
|
||
|
|
||
|
install: $(CAMLTKOBJS)
|
||
|
if test -d $(INSTALLDIR); then : ; else mkdir $(INSTALLDIR); fi
|
||
|
cp $(CAMLTKOBJS:.cmo=.cmi) $(CWIDGETOBJS:.cmo=.mli) $(INSTALLDIR)
|
||
|
chmod 644 $(INSTALLDIR)/*.cmi
|
||
|
|
||
|
installopt: $(CAMLTKOBJSX)
|
||
|
@if test -d $(INSTALLDIR); then : ; else mkdir $(INSTALLDIR); fi
|
||
|
cp $(CAMLTKOBJSX) $(INSTALLDIR)
|
||
|
chmod 644 $(INSTALLDIR)/*.cmx
|
||
|
|
||
|
.SUFFIXES :
|
||
|
.SUFFIXES : .mli .ml .cmi .cmx .cmo .mlp
|
||
|
|
||
|
.mli.cmi:
|
||
|
$(CAMLCOMP) $(COMPFLAGS) $<
|
||
|
|
||
|
.ml.cmo:
|
||
|
$(CAMLCOMP) $(COMPFLAGS) $<
|
||
|
|
||
|
.ml.cmx:
|
||
|
$(CAMLOPT) -c $(COMPFLAGS) $<
|
||
|
|
||
|
include .depend
|