80 lines
1.7 KiB
Makefile
80 lines
1.7 KiB
Makefile
# Top Makefile for mlTk
|
|
|
|
SUBDIRS=compiler support lib jpf frx examples_labltk \
|
|
examples_camltk browser
|
|
SUBDIRS_GENERATED=camltk labltk
|
|
|
|
|
|
all:
|
|
cd support; $(MAKE)
|
|
cd compiler; $(MAKE)
|
|
cd labltk; $(MAKE) -f Makefile.gen
|
|
cd labltk; $(MAKE)
|
|
cd camltk; $(MAKE) -f Makefile.gen
|
|
cd camltk; $(MAKE)
|
|
cd lib; $(MAKE)
|
|
cd jpf; $(MAKE)
|
|
cd frx; $(MAKE)
|
|
cd browser; $(MAKE)
|
|
|
|
allopt:
|
|
cd support; $(MAKE) opt
|
|
cd labltk; $(MAKE) -f Makefile.gen
|
|
cd labltk; $(MAKE) opt
|
|
cd camltk; $(MAKE) -f Makefile.gen
|
|
cd camltk; $(MAKE) opt
|
|
cd lib; $(MAKE) opt
|
|
cd jpf; $(MAKE) opt
|
|
cd frx; $(MAKE) opt
|
|
|
|
byte: all
|
|
opt: allopt
|
|
|
|
.PHONY: all allopt byte opt
|
|
.PHONY: labltk camltk examples examples_labltk examples_camltk
|
|
.PHONY: install installopt partialclean clean depend
|
|
|
|
labltk: Widgets.src
|
|
compiler/tkcompiler -outdir labltk
|
|
cd labltk; $(MAKE)
|
|
|
|
camltk: Widgets.src
|
|
compiler/tkcompiler -camltk -outdir camltk
|
|
cd camltk; $(MAKE)
|
|
|
|
examples: examples_labltk examples_camltk
|
|
|
|
examples_labltk:
|
|
cd examples_labltk; $(MAKE) all
|
|
|
|
examples_camltk:
|
|
cd examples_camltk; $(MAKE) all
|
|
|
|
install:
|
|
cd support; $(MAKE) install
|
|
cd lib; $(MAKE) install
|
|
cd labltk; $(MAKE) install
|
|
cd camltk; $(MAKE) install
|
|
cd compiler; $(MAKE) install
|
|
cd jpf; $(MAKE) install
|
|
cd frx; $(MAKE) install
|
|
cd browser; $(MAKE) install
|
|
|
|
installopt:
|
|
cd support; $(MAKE) installopt
|
|
cd lib; $(MAKE) installopt
|
|
cd labltk; $(MAKE) installopt
|
|
cd camltk; $(MAKE) installopt
|
|
cd jpf; $(MAKE) installopt
|
|
cd frx; $(MAKE) installopt
|
|
|
|
partialclean clean:
|
|
for d in $(SUBDIRS); do \
|
|
cd $$d; $(MAKE) -f Makefile clean; cd ..; \
|
|
done
|
|
for d in $(SUBDIRS_GENERATED); do \
|
|
cd $$d; $(MAKE) -f Makefile.gen clean; cd ..; \
|
|
done
|
|
|
|
depend:
|