blob: a93fe155b426d50d4417e34c435e2b82fe8f58fd (
plain)
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
|
include ../support/Makefile.common
all: tk.ml labltk.ml .depend
_tkgen.ml: ../Widgets.src ../compiler/tkcompiler
cd ..; $(CAMLRUNGEN) compiler/tkcompiler -outdir labltk
# dependencies are broken: wouldn't work with gmake 3.77
tk.ml labltk.ml .depend: _tkgen.ml ../builtin/report.ml ../compiler/pp #../builtin/builtin_*.ml
(echo 'open StdLabels'; \
echo 'open Widget'; \
echo 'open Protocol'; \
echo 'open Support'; \
echo 'open Textvariable'; \
cat ../builtin/report.ml; \
cat ../builtin/builtin_*.ml; \
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 ; \
) > _tk.ml
../../../boot/ocamlrun ../compiler/pp < _tk.ml > tk.ml
rm -f _tk.ml
$(CAMLDEP) -I ../support [a-z]*.mli [a-z]*.ml > .depend
../compiler/pp:
cd ../compiler; $(MAKE) pp
# All .{ml,mli} files are generated in this directory
clean:
rm -f *.cm* *.ml *.mli *.o *.a .depend
# rm -f modules
|