]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/ocaml/contrib/otherlibs/labltk/Makefile
Inital import
[l4.git] / l4 / pkg / ocaml / contrib / otherlibs / labltk / Makefile
1 # Top Makefile for mlTk
2
3 SUBDIRS=compiler support lib jpf frx tkanim examples_labltk \
4         examples_camltk browser
5 SUBDIRS_GENERATED=camltk labltk
6
7
8 all:
9         cd support; $(MAKE)
10         cd compiler; $(MAKE)
11         cd labltk; $(MAKE) -f Makefile.gen
12         cd labltk; $(MAKE)
13         cd camltk; $(MAKE) -f Makefile.gen
14         cd camltk; $(MAKE)
15         cd lib; $(MAKE)
16         cd jpf; $(MAKE)
17         cd frx; $(MAKE)
18         cd tkanim; $(MAKE)
19         cd browser; $(MAKE)
20
21 allopt:
22         cd support; $(MAKE) opt
23         cd labltk; $(MAKE) -f Makefile.gen
24         cd labltk; $(MAKE) opt
25         cd camltk; $(MAKE) -f Makefile.gen
26         cd camltk; $(MAKE) opt
27         cd lib; $(MAKE) opt
28         cd jpf; $(MAKE) opt
29         cd frx; $(MAKE) opt
30         cd tkanim; $(MAKE) opt
31
32 byte: all
33 opt: allopt
34
35 .PHONY: all allopt byte opt
36 .PHONY: labltk camltk examples examples_labltk examples_camltk
37 .PHONY: install installopt partialclean clean depend
38
39 labltk: Widgets.src
40         compiler/tkcompiler -outdir labltk
41         cd labltk; $(MAKE)
42
43 camltk: Widgets.src
44         compiler/tkcompiler -camltk -outdir camltk
45         cd camltk; $(MAKE)
46
47 examples: examples_labltk examples_camltk
48
49 examples_labltk:
50         cd examples_labltk; $(MAKE) all
51
52 examples_camltk:
53         cd examples_camltk; $(MAKE) all
54
55 install: 
56         cd support; $(MAKE) install
57         cd lib; $(MAKE) install
58         cd labltk; $(MAKE) install
59         cd camltk; $(MAKE) install
60         cd compiler; $(MAKE) install
61         cd jpf; $(MAKE) install
62         cd frx; $(MAKE) install
63         cd tkanim; $(MAKE) install
64         cd browser; $(MAKE) install
65
66 installopt:
67         cd support; $(MAKE) installopt
68         cd lib; $(MAKE) installopt
69         cd labltk; $(MAKE) installopt
70         cd camltk; $(MAKE) installopt
71         cd jpf; $(MAKE) installopt
72         cd frx; $(MAKE) installopt
73         cd tkanim; $(MAKE) installopt
74
75 partialclean clean: 
76         for d in $(SUBDIRS); do \
77             cd $$d; $(MAKE) -f Makefile clean; cd ..; \
78         done
79         for d in $(SUBDIRS_GENERATED); do \
80             cd $$d; $(MAKE) -f Makefile.gen clean; cd ..; \
81         done
82
83 depend: