2002-06-07 02:49:45 -07:00
|
|
|
include ../support/Makefile.common.nt
|
2002-04-26 05:16:26 -07:00
|
|
|
|
|
|
|
COMPFLAGS= -I ../support
|
|
|
|
|
|
|
|
all: camltkobjs
|
|
|
|
|
|
|
|
opt: camltkobjsx
|
|
|
|
|
|
|
|
# All .{ml,mli} files are generated in this directory
|
|
|
|
clean :
|
2002-06-07 02:49:45 -07:00
|
|
|
rm -f *.cm* *.ml *.mli *.$(A) *.$(O)
|
2002-04-26 05:16:26 -07:00
|
|
|
$(MAKE) -f Makefile.gen.nt clean
|
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
include ./modules
|
2002-04-26 05:16:26 -07:00
|
|
|
|
|
|
|
CAMLTKOBJS = $(WIDGETOBJS) cTk.cmo camltk.cmo
|
|
|
|
CAMLTKOBJSX = $(CAMLTKOBJS:.cmo=.cmx)
|
|
|
|
|
|
|
|
camltkobjs: $(CAMLTKOBJS)
|
|
|
|
|
|
|
|
camltkobjsx: $(CAMLTKOBJSX)
|
|
|
|
|
|
|
|
install: $(CAMLTKOBJS)
|
2002-06-07 02:49:45 -07:00
|
|
|
mkdir -p $(INSTALLDIR)
|
2002-04-26 05:16:26 -07:00
|
|
|
cp *.cmi [a-z]*.mli $(INSTALLDIR)
|
|
|
|
|
|
|
|
installopt: $(CAMLTKOBJSX)
|
2002-06-07 02:49:45 -07:00
|
|
|
mkdir -p $(INSTALLDIR)
|
2002-04-26 05:16:26 -07:00
|
|
|
cp $(CAMLTKOBJSX) $(INSTALLDIR)
|
|
|
|
|
|
|
|
.SUFFIXES :
|
|
|
|
.SUFFIXES : .mli .ml .cmi .cmx .cmo .mlp
|
|
|
|
|
|
|
|
.mli.cmi:
|
|
|
|
$(CAMLCOMP) $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
.ml.cmo:
|
|
|
|
$(CAMLCOMP) $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
.ml.cmx:
|
|
|
|
$(CAMLOPT) -c $(COMPFLAGS) $<
|
|
|
|
|
2002-06-07 02:49:45 -07:00
|
|
|
include .depend
|