Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cduce
cduce
Commits
c05cb164
Commit
c05cb164
authored
Oct 05, 2007
by
Pietro Abate
Browse files
[r2004-03-13 16:14:23 by beppe] Few modifications
Original author: beppe Date: 2004-03-13 16:14:24+00:00
parent
8474ef07
Changes
3
Hide whitespace changes
Inline
Side-by-side
INSTALL
View file @
c05cb164
...
...
@@ -57,9 +57,10 @@ Important notes:
<hit enter key when asked for password>
cvs -z3 -d":pserver:anoncvs@camlcvs.inria.fr:/caml" co ocaml
- cduce can be interfaced with OCaml language to be called from it. In order
to be able to use this feature, you will have to patch OCaml Makefile and
build a special library. Everything is explained bellow.
Furthermore cduce can be interfaced with OCaml language to be called from
it. In order to be able to use this feature, you will have to set the
CDuce environment variable ML_INTERFACE to true, patch OCaml
Makefile and build a special library. Everything is explained bellow.
- pcre-ocaml: you may also need to install the PCRE library
from http://www.pcre.org/ (use version >=4.4)
...
...
@@ -96,13 +97,17 @@ Efficiency issues:
Compilation
------------------------------------------------------------------------------
Build OCaml compiler lib (needed to interface CDuce with OCaml):
- Copy ocaml_cdo2cmo_patch (located in cdo2cmo directory of your cduce
archive) in the directory where you extracted OCaml sources.
- Patch OCaml's Makefile with:
patch -Np1 < ocaml_cdo2cmo_patch
- Build OCaml's special library:
make install_liball
IF YOU SET ML_INTERFACE TO TRUE ...
that is if you want to be able to call CDuce functions from OCaml
then you have to build OCaml compiler lib:
- Copy ocaml_cdo2cmo_patch (located in cdo2cmo directory of your cduce
archive) in the directory where you extracted OCaml sources.
- Patch OCaml's Makefile with:
patch -Np1 < ocaml_cdo2cmo_patch
- Build OCaml's special library:
make install_liball
ELSE
THE FAST WAY:
...
...
Makefile.conf
View file @
c05cb164
...
...
@@ -7,7 +7,7 @@ endif
# profiling support
PROFILE
=
false
#
cduce interface
.
#
.mli file support to interface CDuce with OCaml
.
ML_INTERFACE
=
false
# use wlex lexers for parsing XML files with PXP
...
...
Makefile.distrib
View file @
c05cb164
...
...
@@ -101,7 +101,7 @@ all: cduce cDuce_all.cma dtd2cduce validate
install
:
all
mkdir
-p
$(PREFIX)
/bin/
mkdir
-p
$(PREFIX)
/man/man1/
$(INSTALL)
-m755
cduce
$(EXE)
dtd2cduce
$(EXE)
$(PREFIX)
/bin/
$(INSTALL)
-m755
cduce
$(EXE)
dtd2cduce
$(EXE)
validate
$(EXE)
$(PREFIX)
/bin/
$(INSTALL)
-m644
doc/cduce.1
$(PREFIX)
/man/man1/
$(INSTALL)
-m644
doc/dtd2cduce.1
$(PREFIX)
/man/man1/
$(INSTALL)
-m644
doc/validate.1
$(PREFIX)
/man/man1/
...
...
@@ -109,6 +109,7 @@ install: all
uninstall
:
rm
$(PREFIX)
/bin/cduce
$(EXE)
\
$(PREFIX)
/bin/dtd2cduce
$(EXE)
\
$(PREFIX)
/bin/validate
$(EXE)
\
$(PREFIX)
/man/man1/cduce.1
\
$(PREFIX)
/man/man1/dtd2cduce.1
\
$(PREFIX)
/man/man1/validate.1
...
...
@@ -129,11 +130,12 @@ help:
@
echo
""
@
echo
"OPTIONS (default value in brackets)"
@
echo
" PREFIX=<path> : set the prefix for installation [/usr/local]"
@
echo
" NATIVE=false : use the OCaml native code compiler to build CDuce [true]"
@
echo
" PXP_WLEX=true : use wlex for parsing UTF-8 XML files [false]"
@
echo
" EXPAT=true : build expat support [false]"
@
echo
" CURL=true: build curl support [false]"
@
echo
" NETCLIENT=false: build netclient support [true]"
@
echo
" NATIVE=true|false : use the OCaml native code compiler to build CDuce [true]"
@
echo
" PXP_WLEX=true|false : use wlex for parsing UTF-8 XML files [false]"
@
echo
" EXPAT=true|false : build expat support [false]"
@
echo
" CURL=true|false: build curl support [false]"
@
echo
" NETCLIENT=true|false: build netclient support [true]"
@
echo
" ML_INTERFACE=true|false: build support for OCaml [false]"
@
echo
""
# Source directories
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment