############################################################################### # METIS MAKEFILE # Copyright (c) 2001 Joe Leslie-Hurd, distributed under the BSD License ###############################################################################
.SUFFIXES:
############################################################################### # The default action. ###############################################################################
.PHONY: default
default:
@if command -v mlton > /dev/null ; then $(MAKE) mlton ; elseif command -v polyc > /dev/null ; then $(MAKE) polyml ; elseif command -v mosmlc > /dev/null ; then $(MAKE) mosml ; elseecho"ERROR: No ML found on path: install either MLton, Poly/ML or Moscow ML." ; exit 1 ; fi ; fi ; fi
############################################################################### # The ML preprocessor. ###############################################################################
MLPP = scripts/mlpp
MLPP_OPTS =
############################################################################### # Building using MLton. ###############################################################################
bin/mlton/%: bin/mlton/%.mlb
@echo
@echo'+-------------------------+'
@echo'| Compile a MLton program |'
@echo'+-------------------------+'
@echo
@echo $@
cd bin/mlton ; $(MLTON) $(MLTON_OPTS) $(notdir $<)
@echo
.PHONY: mlton-info
mlton-info:
@echo
@echo'+-----------------------------------+'
@echo'| Build and test the MLton programs |'
@echo'+-----------------------------------+'
@echo
.PHONY: mlton
mlton: mlton-info $(MLTON_TARGETS)
$(MAKE) -C test mlton
############################################################################### # Building using Poly/ML. ###############################################################################
bin/polyml/%: bin/polyml/%.sml
@echo
@echo'+---------------------------+'
@echo'| Compile a Poly/ML program |'
@echo'+---------------------------+'
@echo
@echo $@
cd bin/polyml && $(POLYML) $(POLYML_OPTS) -o $(notdir $@) $(notdir $<)
@echo
.PHONY: polyml-info
polyml-info:
@echo
@echo'+-------------------------------------+'
@echo'| Build and test the Poly/ML programs |'
@echo'+-------------------------------------+'
@echo
.PHONY: polyml
polyml: polyml-info $(POLYML_TARGETS)
$(MAKE) -C test polyml
############################################################################### # Building using Moscow ML. ###############################################################################
.PHONY: mosml-info
mosml-info:
@echo
@echo'+---------------------------------------+'
@echo'| Build and test the Moscow ML programs |'
@echo'+---------------------------------------+'
@echo
.PHONY: mosml
mosml: mosml-info $(MOSML_OBJ) $(MOSML_TARGETS) test
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.