Commit 72786352 authored by Pietro Abate's avatar Pietro Abate

[r2005-03-09 15:50:01 by afrisch] dtd2cduce needs PXP

Original author: afrisch
Date: 2005-03-09 15:50:01+00:00
parent 8ca81c4e
......@@ -118,17 +118,20 @@ You need a GNU Make (or equivalent). The Makefile defines the following goals:
- make help
print a summary of what follows
- make all
build binaries and libraries
- make cduce
compiles the CDuce command line interpreter
- make dtd2cduce
compiles the dtd2cduce tools (converts DTD to CDuce types)
compiles the dtd2cduce tools (converts DTD to CDuce types).
The PXP package must be available to build dtd2cduce.
- make doc
compiles in the subdirectory web/doc the HTML documentation for CDuce
- make all
equivalent to (make cduce dtd2cduce cduce_validate)
- make install
installs binaries into $(BINDIR), manpages into $(MANDIR)/man1,
......
......@@ -56,6 +56,7 @@ CAMLOPT = $(OCAMLFIND) $(CAMLOPT_P) $(OPT) -package "$(PACKAGES)"
ifeq ($(NATIVE), true)
EXTENSION = cmx
EXTENSION_LIB = cmxa
CAML=ocamlopt
COMPILE = $(CAMLOPT)
LINK = $(CAMLOPT) -linkpkg gramlib.cmxa
SYNTAX += -symbol ocaml_compiler=\"native\"
......@@ -63,6 +64,7 @@ else
EXTENSION = cmo
EXTENSION_LIB = cma
COMPILE = $(CAMLC)
CAML=ocamlc
LINK = $(CAMLC) -custom -linkpkg gramlib.cma
SYNTAX += -symbol ocaml_compiler=\"bytecode\"
endif
......@@ -107,7 +109,7 @@ uninstall:
help:
@echo "GOALS"
@echo " cduce : compiles the CDuce command line interpreter"
@echo " dtd2cduce : compiles the dtd2cduce tools"
@echo " dtd2cduce: compiles the dtd2cduce tools"
@echo " doc : build the documentation"
@echo " all : build binaries and libraries"
@echo " install : install binaries, man pages, documentation"
......@@ -190,14 +192,16 @@ ifneq ($(NETCLIENT), false)
PACKAGES += netclient
endif
PXP_PACK=pxp-engine pxp-lex-iso88591
ifeq ($(PXP_WLEX), true)
PXP_PACK += pxp-wlex-utf8
else
PXP_PACK += pxp-lex-utf8
endif
ifeq ($(PXP),true)
OBJECTS += runtime/cduce_pxp.cmo
PACKAGES += pxp-engine pxp-lex-iso88591
ifeq ($(PXP_WLEX), true)
PACKAGES += pxp-wlex-utf8
else
PACKAGES += pxp-lex-utf8
endif
PACKAGES += $(PXP_PACK)
endif
ifeq ($(EXPAT), true)
OBJECTS += runtime/cduce_expat.cmo
......@@ -217,11 +221,10 @@ VALIDATE_OBJECTS := $(shell for o in $(OBJECTS); do echo $$o; if [ "$$o" = "sche
OBJECTS += $(CQL_OBJECTS_RUN)
OBJECTS += driver/run.cmo
CDUCE = $(OBJECTS) driver/start.cmo
DTD2CDUCE = tools/dtd2cduce.cmo
ALL_OBJECTS = $(OBJECTS) $(NEW_SCHEMA_OBJS) \
driver/start.cmo driver/examples.cmo driver/webiface.cmo driver/evaluator.cmo \
tools/dtd2cduce.cmo tools/validate.cmo \
tools/validate.cmo \
$(ML_INTERFACE_OBJS) parser/cduce_curl.cmo \
parser/cduce_netclient.cmo \
runtime/cduce_expat.cmo \
......@@ -254,9 +257,9 @@ cduce_lib.$(EXTENSION_LIB): $(OBJECTS:.cmo=.$(EXTENSION))
@echo "Build $@"
$(HIDE)$(COMPILE) -a -o $@ cduce_lib.$(EXTENSION)
dtd2cduce: $(DTD2CDUCE:.cmo=.$(EXTENSION))
dtd2cduce: tools/dtd2cduce.ml
@echo "Build $@"
$(HIDE)$(LINK) $(INCLUDES) -o $@ $^
-$(HIDE)$(OCAMLFIND) $(CAML) -o $@ -package "$(PXP_PACK)" -linkpkg $^
cduce_validate: $(VALIDATE_OBJECTS:.cmo=.$(EXTENSION)) tools/validate.$(EXTENSION)
@echo "Build $@"
......
......@@ -242,6 +242,9 @@ let pxp,expat =
| false,false ->
warning "No package for parsing XML documents.";
false,false
| false,n ->
warning "PXP not available: won't build dtd2cduce";
false,n
| c,n -> c,n
let required_packages =
......
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