Commit fef412d1 authored by Pietro Abate's avatar Pietro Abate
Browse files

[r2003-05-25 18:16:08 by cvscast] cduce_config

Original author: cvscast
Date: 2003-05-25 18:16:09+00:00
parent ca81a659
......@@ -45,6 +45,7 @@ CLEAN_DIRS = $(DIRS) tools tests
# Objects to build
OBJECTS = \
misc/cduce_config.cmo \
misc/state.cmo misc/pool.cmo misc/encodings.cmo misc/bool.cmo \
misc/pretty.cmo \
\
......@@ -62,6 +63,7 @@ OBJECTS = \
\
types/builtin.cmo driver/cduce.cmo
CDUCE = $(OBJECTS) driver/run.cmo
WEBIFACE = $(OBJECTS) driver/examples.cmo driver/webiface.cmo
DTD2CDUCE = tools/dtd2cduce.cmo
......@@ -70,13 +72,23 @@ INCLUDES = $(DIRS:%=-I %)
PREPRO = $(SYNTAX) pr_o.cmo
cduce: $(OBJECTS:.cmo=.$(EXTENSION)) driver/run.ml
misc/cduce_config.cmo: misc/cduce_config.ml
$(CAMLC) -c $(SYNTAX_PARSER) $(INCLUDES) $<
rm -f misc/cduce_config.ml
misc/cduce_config.cmx: misc/cduce_config.ml
$(CAMLOPT) -c $(SYNTAX_PARSER) $(INCLUDES) $<
rm -f misc/cduce_config.ml
misc/cduce_config.ml:
sed -e 's|%%VERSION%%|$(VERSION)|' \
-e 's|%%BUILD_DATE%%|$(shell date +%Y-%m-%d)|' \
-e 's|%%NATIVE%%|$(NATIVE)|' \
misc/cduce_config.mlp > misc/cduce_config.ml
$(LINK) $(INCLUDES) -o $@ misc/cduce_config.ml $^
rm misc/cduce_config.ml
cduce: $(CDUCE:.cmo=.$(EXTENSION))
$(LINK) $(INCLUDES) -o $@ $^
webiface: $(WEBIFACE:.cmo=.$(EXTENSION))
$(LINK) -o $@ $^
......
......@@ -71,11 +71,9 @@ types/types.cmx: types/atoms.cmx misc/bool.cmx types/chars.cmx \
misc/encodings.cmx types/ident.cmx types/intervals.cmx types/normal.cmx \
misc/pretty.cmx types/sortedList.cmx misc/state.cmx types/types.cmi
runtime/eval.cmo: types/ident.cmo types/patterns.cmi runtime/run_dispatch.cmi \
misc/state.cmi typing/typed.cmo types/types.cmi runtime/value.cmi \
runtime/eval.cmi
typing/typed.cmo types/types.cmi runtime/value.cmi runtime/eval.cmi
runtime/eval.cmx: types/ident.cmx types/patterns.cmx runtime/run_dispatch.cmx \
misc/state.cmx typing/typed.cmx types/types.cmx runtime/value.cmx \
runtime/eval.cmi
typing/typed.cmx types/types.cmx runtime/value.cmx runtime/eval.cmi
runtime/load_xml.cmo: types/atoms.cmi misc/encodings.cmi types/ident.cmo \
parser/location.cmi runtime/value.cmi runtime/load_xml.cmi
runtime/load_xml.cmx: types/atoms.cmx misc/encodings.cmx types/ident.cmx \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment