Commit da938ce4 authored by Pietro Abate's avatar Pietro Abate

[r2005-07-15 13:22:50 by afrisch] get rid of cdo2ml

Original author: afrisch
Date: 2005-07-15 13:22:50+00:00
parent c78d570f
......@@ -6,8 +6,8 @@ ALL_TARGET=cduce cduce_lib.cma
INSTALL_BINARIES=cduce$(EXE)
ifneq ($(ML_INTERFACE), false)
ALL_TARGET += cdo2ml mlcduce_wrapper
INSTALL_BINARIES += cdo2ml$(EXE) mlcduce_wrapper$(EXE) cduce_mktop
ALL_TARGET += mlcduce_wrapper
INSTALL_BINARIES += mlcduce_wrapper$(EXE) cduce_mktop
endif
......@@ -67,14 +67,14 @@ ifeq ($(NATIVE), true)
EXTENSION_LIB = cmxa
CAML=ocamlopt
COMPILE = $(CAMLOPT)
LINK = $(CAMLOPT) -linkpkg gramlib.cmxa
LINK = $(CAMLOPT) -linkpkg gramlib.cmxa camlp4.cmxa pr_o.cmx
SYNTAX += -symbol ocaml_compiler=\"native\"
else
EXTENSION = cmo
EXTENSION_LIB = cma
COMPILE = $(CAMLC)
CAML=ocamlc
LINK = $(CAMLC) -custom -linkpkg gramlib.cma
LINK = $(CAMLC) -custom -linkpkg gramlib.cma camlp4.cma pr_o.cmo
SYNTAX += -symbol ocaml_compiler=\"bytecode\"
endif
......@@ -105,10 +105,8 @@ install_lib:
uninstall:
rm -f $(BINDIR)/cduce$(EXE) \
$(BINDIR)/cdo2ml$(EXE) \
$(BINDIR)/mlcduce_wrapper$(EXE) $(BINDIR)/cduce_mktop
rm -f $(MANDIR)/man1/cduce.1 \
$(MANDIR)/man1/cdo2ml.1
rm -f $(MANDIR)/man1/cduce.1
rm -Rf $(DOCDIR)
ocamlfind remove cduce
......@@ -129,7 +127,7 @@ CLEAN_DIRS = $(DIRS) cdo2cmo tools tests
# Objects to build
OBJECTS = \
LIB_OBJECTS = \
driver/config.cmo misc/stats.cmo misc/custom.cmo misc/encodings.cmo \
misc/upool.cmo misc/pretty.cmo misc/ns.cmo misc/imap.cmo misc/html.cmo \
\
......@@ -163,6 +161,8 @@ OBJECTS = \
\
runtime/system.cmo query/query_aggregates.cmo
OBJECTS=$(LIB_OBJECTS)
schema/schema_types.ml: schema/schema_types.mli
cp $^ $@
compile/auto_pat.ml: compile/auto_pat.mli
......@@ -179,11 +179,11 @@ ifneq ($(ML_INTERFACE), false)
endif
ifneq ($(CURL), false)
OBJECTS += parser/cduce_curl.cmo
LIB_OBJECTS += parser/cduce_curl.cmo
PACKAGES += curl
endif
ifneq ($(NETCLIENT), false)
OBJECTS += parser/cduce_netclient.cmo
LIB_OBJECTS += parser/cduce_netclient.cmo
PACKAGES += netclient
endif
......@@ -195,11 +195,11 @@ else
endif
ifeq ($(PXP),true)
OBJECTS += runtime/cduce_pxp.cmo
LIB_OBJECTS += runtime/cduce_pxp.cmo
PACKAGES += $(PXP_PACK)
endif
ifeq ($(EXPAT), true)
OBJECTS += runtime/cduce_expat.cmo
LIB_OBJECTS += runtime/cduce_expat.cmo
PACKAGES += expat
endif
......@@ -219,7 +219,7 @@ ALL_INTERFACES = schema/schema_types.mli
DEPEND = $(ALL_OBJECTS:.cmo=.ml) $(ALL_OBJECTS:.cmo=.mli) $(ALL_INTERFACES)
INCLUDES = $(DIRS:%=-I %)
INCLUDES = $(DIRS:%=-I %) -I +camlp4
cduce: $(CDUCE:.cmo=.$(EXTENSION))
@echo "Build $@"
......@@ -233,7 +233,7 @@ cduce_packed: cduce_packed.$(EXTENSION)
$(LINK) $(INCLUDES) -o $@ $^ $(EXTRA_LINK_OPTS)
cduce_lib.$(EXTENSION_LIB): $(OBJECTS:.cmo=.$(EXTENSION))
cduce_lib.$(EXTENSION_LIB): $(LIB_OBJECTS:.cmo=.$(EXTENSION))
@echo "Pack cduce_lib.$(EXTENSION)"
$(HIDE)$(COMPILE) -o cduce_lib.$(EXTENSION) -pack $^
@echo "Build $@"
......@@ -247,10 +247,6 @@ mlcduce_wrapper: $(OBJECTS) ocamliface/mlcduce_wrapper.ml
@echo "Build $@"
$(HIDE)$(CAMLC) -linkpkg $(INCLUDES) -o $@ odyl.cma camlp4.cma pr_o.cmo $^ $(EXTRA_LINK_OPTS)
cdo2ml: ocamliface/cdo2ml.ml
@echo "Build $@"
$(HIDE)ocamlc -o $@ -I +camlp4 camlp4.cma pr_o.cmo $<
.PHONY: compute_depend
compute_depend: $(DEPEND_OCAMLDEP)
@echo "Computing dependencies ..."
......@@ -265,7 +261,7 @@ clean:
rm -f *.cmi *.cmo *.cma *.cmx *.a *.cmxa *.o *~ META
rm -f cduce$(EXE) ocamlprof.dump
rm -f dtd2cduce$(EXE) webiface$(EXE) cduce_validate$(EXE) \
cdo2ml$(EXE) mlcduce_wrapper$(EXE) evaluator$(EXE)
mlcduce_wrapper$(EXE) evaluator$(EXE)
rm -Rf prepro package
rm -f web/www/*.html web/*~
rm -f web/*.cdo
......
val f : (char -> char) -> (string -> string)
val x : char ref
val g : char ref -> unit
......
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