2011-07-27 07:17:02 -07:00
|
|
|
#######################################################################
|
|
|
|
# #
|
|
|
|
# MLTk, Tcl/Tk interface of OCaml #
|
|
|
|
# #
|
|
|
|
# Francois Rouaix, Francois Pessaux, Jun Furuse and Pierre Weis #
|
|
|
|
# projet Cristal, INRIA Rocquencourt #
|
|
|
|
# Jacques Garrigue, Kyoto University RIMS #
|
|
|
|
# #
|
|
|
|
# Copyright 1999 Institut National de Recherche en Informatique et #
|
|
|
|
# en Automatique and Kyoto University. All rights reserved. #
|
|
|
|
# This file is distributed under the terms of the GNU Library #
|
|
|
|
# General Public License, with the special exception on linking #
|
|
|
|
# described in file LICENSE found in the OCaml source tree. #
|
|
|
|
# #
|
|
|
|
#######################################################################
|
|
|
|
|
2002-04-26 05:16:26 -07:00
|
|
|
# Top Makefile for mlTk
|
1999-11-30 06:59:39 -08:00
|
|
|
|
2010-04-02 23:43:51 -07:00
|
|
|
SUBDIRS=compiler support lib jpf frx examples_labltk \
|
2003-08-29 07:08:21 -07:00
|
|
|
examples_camltk browser
|
|
|
|
SUBDIRS_GENERATED=camltk labltk
|
|
|
|
|
2002-05-03 05:56:42 -07:00
|
|
|
|
1999-11-30 06:59:39 -08:00
|
|
|
all:
|
|
|
|
cd support; $(MAKE)
|
|
|
|
cd compiler; $(MAKE)
|
2002-04-26 05:16:26 -07:00
|
|
|
cd labltk; $(MAKE) -f Makefile.gen
|
|
|
|
cd labltk; $(MAKE)
|
|
|
|
cd camltk; $(MAKE) -f Makefile.gen
|
|
|
|
cd camltk; $(MAKE)
|
|
|
|
cd lib; $(MAKE)
|
1999-11-30 06:59:39 -08:00
|
|
|
cd jpf; $(MAKE)
|
2002-04-26 05:16:26 -07:00
|
|
|
cd frx; $(MAKE)
|
1999-11-30 06:59:39 -08:00
|
|
|
cd browser; $(MAKE)
|
|
|
|
|
|
|
|
allopt:
|
|
|
|
cd support; $(MAKE) opt
|
2002-04-26 05:16:26 -07:00
|
|
|
cd labltk; $(MAKE) -f Makefile.gen
|
|
|
|
cd labltk; $(MAKE) opt
|
|
|
|
cd camltk; $(MAKE) -f Makefile.gen
|
|
|
|
cd camltk; $(MAKE) opt
|
|
|
|
cd lib; $(MAKE) opt
|
1999-11-30 06:59:39 -08:00
|
|
|
cd jpf; $(MAKE) opt
|
2002-04-26 05:16:26 -07:00
|
|
|
cd frx; $(MAKE) opt
|
1999-11-30 06:59:39 -08:00
|
|
|
|
2002-04-26 05:16:26 -07:00
|
|
|
byte: all
|
|
|
|
opt: allopt
|
|
|
|
|
2007-11-23 02:54:26 -08:00
|
|
|
.PHONY: all allopt byte opt
|
|
|
|
.PHONY: labltk camltk examples examples_labltk examples_camltk
|
|
|
|
.PHONY: install installopt partialclean clean depend
|
2007-11-08 01:53:35 -08:00
|
|
|
|
|
|
|
labltk: Widgets.src
|
|
|
|
compiler/tkcompiler -outdir labltk
|
|
|
|
cd labltk; $(MAKE)
|
|
|
|
|
|
|
|
camltk: Widgets.src
|
|
|
|
compiler/tkcompiler -camltk -outdir camltk
|
|
|
|
cd camltk; $(MAKE)
|
2002-04-26 05:16:26 -07:00
|
|
|
|
|
|
|
examples: examples_labltk examples_camltk
|
1999-11-30 06:59:39 -08:00
|
|
|
|
2002-04-26 05:16:26 -07:00
|
|
|
examples_labltk:
|
|
|
|
cd examples_labltk; $(MAKE) all
|
1999-11-30 06:59:39 -08:00
|
|
|
|
2002-04-26 05:16:26 -07:00
|
|
|
examples_camltk:
|
|
|
|
cd examples_camltk; $(MAKE) all
|
1999-11-30 06:59:39 -08:00
|
|
|
|
2010-01-22 04:48:24 -08:00
|
|
|
install:
|
2004-10-17 19:42:50 -07:00
|
|
|
cd support; $(MAKE) install
|
|
|
|
cd lib; $(MAKE) install
|
2002-04-26 05:16:26 -07:00
|
|
|
cd labltk; $(MAKE) install
|
|
|
|
cd camltk; $(MAKE) install
|
1999-11-30 06:59:39 -08:00
|
|
|
cd compiler; $(MAKE) install
|
|
|
|
cd jpf; $(MAKE) install
|
2002-04-26 05:16:26 -07:00
|
|
|
cd frx; $(MAKE) install
|
1999-11-30 06:59:39 -08:00
|
|
|
cd browser; $(MAKE) install
|
|
|
|
|
|
|
|
installopt:
|
2004-10-17 19:42:50 -07:00
|
|
|
cd support; $(MAKE) installopt
|
|
|
|
cd lib; $(MAKE) installopt
|
2002-04-26 05:16:26 -07:00
|
|
|
cd labltk; $(MAKE) installopt
|
|
|
|
cd camltk; $(MAKE) installopt
|
1999-11-30 06:59:39 -08:00
|
|
|
cd jpf; $(MAKE) installopt
|
2002-04-26 05:16:26 -07:00
|
|
|
cd frx; $(MAKE) installopt
|
1999-11-30 06:59:39 -08:00
|
|
|
|
2010-01-22 04:48:24 -08:00
|
|
|
partialclean clean:
|
2002-05-03 05:56:42 -07:00
|
|
|
for d in $(SUBDIRS); do \
|
|
|
|
cd $$d; $(MAKE) -f Makefile clean; cd ..; \
|
1999-11-30 06:59:39 -08:00
|
|
|
done
|
2003-08-29 07:08:21 -07:00
|
|
|
for d in $(SUBDIRS_GENERATED); do \
|
|
|
|
cd $$d; $(MAKE) -f Makefile.gen clean; cd ..; \
|
|
|
|
done
|
2002-05-16 08:23:05 -07:00
|
|
|
|
|
|
|
depend:
|