2002-04-26 05:16:26 -07:00
|
|
|
include ../support/Makefile.common
|
|
|
|
|
|
|
|
all: cTk.ml camltk.ml .depend
|
|
|
|
|
|
|
|
_tkgen.ml: ../Widgets.src ../compiler/tkcompiler
|
2004-07-13 05:25:21 -07:00
|
|
|
cd ..; $(CAMLRUNGEN) compiler/tkcompiler -camltk -outdir camltk
|
2002-04-26 05:16:26 -07:00
|
|
|
|
|
|
|
cTk.ml camltk.ml .depend: _tkgen.ml ../builtin/report.ml ../compiler/pp #../builtin/builtin_*.ml
|
|
|
|
(echo '##define CAMLTK'; \
|
|
|
|
echo 'include Camltkwrap'; \
|
|
|
|
echo 'open Widget'; \
|
|
|
|
echo 'open Protocol'; \
|
|
|
|
echo 'open Textvariable'; \
|
|
|
|
echo ; \
|
|
|
|
cat ../builtin/report.ml; \
|
|
|
|
echo ; \
|
|
|
|
cat ../builtin/builtin_*.ml; \
|
|
|
|
echo ; \
|
|
|
|
cat _tkgen.ml; \
|
|
|
|
echo ; \
|
|
|
|
echo ; \
|
|
|
|
echo 'module Tkintf = struct'; \
|
|
|
|
cat ../builtin/builtini_*.ml; \
|
|
|
|
cat _tkigen.ml; \
|
|
|
|
echo 'end (* module Tkintf *)'; \
|
|
|
|
echo ; \
|
|
|
|
echo ; \
|
|
|
|
echo 'open Tkintf' ;\
|
|
|
|
echo ; \
|
|
|
|
echo ; \
|
|
|
|
cat ../builtin/builtinf_*.ml; \
|
|
|
|
cat _tkfgen.ml; \
|
|
|
|
echo ; \
|
|
|
|
) > _cTk.ml
|
2004-11-01 22:25:03 -08:00
|
|
|
$(CAMLRUN) ../compiler/pp < _cTk.ml > cTk.ml
|
2002-04-26 05:16:26 -07:00
|
|
|
rm -f _cTk.ml
|
|
|
|
$(CAMLDEP) -I ../support [a-z]*.mli [a-z]*.ml > .depend
|
|
|
|
|
|
|
|
../compiler/pp:
|
|
|
|
cd ../compiler; $(MAKE) pp
|
|
|
|
|
2002-04-26 06:58:17 -07:00
|
|
|
# All .{ml,mli} files are generated in this directory
|
2002-04-26 05:16:26 -07:00
|
|
|
clean:
|
2003-08-29 07:08:21 -07:00
|
|
|
rm -f *.cm* *.ml *.mli *.o *.a .depend
|
2002-04-26 06:58:17 -07:00
|
|
|
|
2003-08-29 07:08:21 -07:00
|
|
|
# rm -f modules
|