Commit a86b38b8 authored by Zoggy's avatar Zoggy
Browse files

start from scratch

parent 5f10c3fe
example.cmo: rdf_statement.cmo rdf_rasqal.cmo rdf_raptor.cmo rdf_node.cmo \
rdf_init.cmo rdf_hash.cmo
example.cmx: rdf_statement.cmx rdf_rasqal.cmx rdf_raptor.cmx rdf_node.cmx \
rdf_init.cmx rdf_hash.cmx
odoc_librdf.cmo:
odoc_librdf.cmx:
rdf_enums.cmo: rdf_pointer.cmo
rdf_enums.cmx: rdf_pointer.cmx
rdf_hash.cmo: rdf_types.cmo rdf_misc.cmo
rdf_hash.cmx: rdf_types.cmx rdf_misc.cmx
rdf_init.cmo: rdf_types.cmo rdf_misc.cmo
rdf_init.cmx: rdf_types.cmx rdf_misc.cmx
rdf_iterator.cmo: rdf_types.cmo rdf_misc.cmo
rdf_iterator.cmx: rdf_types.cmx rdf_misc.cmx
rdf_misc.cmo:
rdf_misc.cmx:
rdf_model.cmo: rdf_types.cmo rdf_stream.cmo rdf_storage.cmo rdf_node.cmo \
rdf_misc.cmo rdf_iterator.cmo
rdf_model.cmx: rdf_types.cmx rdf_stream.cmx rdf_storage.cmx rdf_node.cmx \
rdf_misc.cmx rdf_iterator.cmx
rdf_node.cmo: rdf_uri.cmo rdf_types.cmo rdf_misc.cmo rdf_enums.cmo
rdf_node.cmx: rdf_uri.cmx rdf_types.cmx rdf_misc.cmx rdf_enums.cmx
rdf_parser.cmo: rdf_types.cmo rdf_misc.cmo
rdf_parser.cmx: rdf_types.cmx rdf_misc.cmx
rdf_pointer.cmo:
rdf_pointer.cmx:
rdf_query.cmo: rdf_types.cmo rdf_misc.cmo
rdf_query.cmx: rdf_types.cmx rdf_misc.cmx
rdf_query_results.cmo: rdf_types.cmo rdf_misc.cmo
rdf_query_results.cmx: rdf_types.cmx rdf_misc.cmx
rdf_raptor.cmo: rdf_types.cmo
rdf_raptor.cmx: rdf_types.cmx
rdf_rasqal.cmo: rdf_types.cmo
rdf_rasqal.cmx: rdf_types.cmx
rdf_statement.cmo: rdf_types.cmo rdf_node.cmo rdf_misc.cmo
rdf_statement.cmx: rdf_types.cmx rdf_node.cmx rdf_misc.cmx
rdf_storage.cmo: rdf_types.cmo rdf_stream.cmo rdf_query_results.cmo \
rdf_node.cmo rdf_misc.cmo rdf_iterator.cmo rdf_init.cmo
rdf_storage.cmx: rdf_types.cmx rdf_stream.cmx rdf_query_results.cmx \
rdf_node.cmx rdf_misc.cmx rdf_iterator.cmx rdf_init.cmx
rdf_stream.cmo: rdf_types.cmo rdf_statement.cmo rdf_node.cmo rdf_misc.cmo
rdf_stream.cmx: rdf_types.cmx rdf_statement.cmx rdf_node.cmx rdf_misc.cmx
rdf_types.cmo:
rdf_types.cmx:
rdf_uri.cmo: rdf_types.cmo rdf_misc.cmo
rdf_uri.cmx: rdf_types.cmx rdf_misc.cmx
*.cm*
*.o
*.a
*.annot
example
*.so
.chamo*
.depend
dump.odoc
log
ml_enums.c
ml_enums.h
ocamldoc/
rdf_enums.ml
redland.png
tests/example_from_python
varcc
example.byte
examples/example1
examples/example2
examples/example3
examples/example5
examples/example*.out
examples/test*.db
src/META
config.log
config.status
config_check.log
autom4te.cache
ocaml_config.sh
master.Makefile
src/*.cm*
src/*.a
src/*.o
src/*.annot
src/ocamldoc
src/dump.odoc
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
#################################################################################
# OCaml-RDF #
# #
# Copyright (C) 2012 Institut National de Recherche en Informatique #
# et en Automatique. All rights reserved. #
# #
# This program is free software; you can redistribute it and/or modify #
# it under the terms of the GNU Lesser General Public License version #
# 3 as published by the Free Software Foundation. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program; if not, write to the Free Software #
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA #
# 02111-1307 USA #
# #
# Contact: Maxence.Guesdon@inria.fr #
# #
#################################################################################
include master.Makefile
# Compilation
#############
all: src
src: dummy
cd src && $(MAKE) all
re : depend clean all
# Documentation :
#################
doc: dummy
cd src && $(MAKE) doc
# myself
master.Makefile: master.Makefile.in config.status
./config.status
config.status: configure
./config.status --recheck
configure: configure.in
autoconf
# backup, clean and depend :
############################
distclean: clean
cd src && $(MAKE) distclean
$(RM) config.cache config.log config.status master.Makefile \
src/META
clean:: dummy
$(RM) *~ \#*\#
cd src && $(MAKE) clean
depend: dummy
cd src && $(MAKE) depend
dummy:
###########
# Headers
###########
HEADFILES=configure.in configure \
master.Makefile.in Makefile src/Makefile checkocaml.ml \
src/*/*.ml src/*/*.mli
headers: dummy
headache -h header -c ~/.headache_config $(HEADFILES)
noheaders: dummy
headache -r -c ~/.headache_config $(HEADFILES)
#################
# installation
#################
install: dummy
cd src && $(MAKE) install
uninstall: dummy
cd src && $(MAKE) uninstall
###########
# web site
###########
webdoc:
cp web/index.html web/style.css ../dbforge-gh-pages/
###########
# archive
###########
archive:
git archive --prefix=dbforge-$(VERSION)/ HEAD | gzip > ../dbforge-gh-pages/dbforge-$(VERSION).tar.gz
###########################
# additional dependencies
###########################
# DO NOT DELETE
More information on DBForge on http://zoggy.github.com/dbforge .
This diff is collapsed.
This diff is collapsed.
#################################################################################
# OCaml-RDF #
# #
# Copyright (C) 2012 Institut National de Recherche en Informatique #
# et en Automatique. All rights reserved. #
# #
# This program is free software; you can redistribute it and/or modify #
# it under the terms of the GNU Lesser General Public License version #
# 3 as published by the Free Software Foundation. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program; if not, write to the Free Software #
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA #
# 02111-1307 USA #
# #
# Contact: Maxence.Guesdon@inria.fr #
# #
#################################################################################
# check for one particular file of the sources
AC_INIT(master.Makefile.in)
VERSION=2.0
PACKAGE=dbforge
# The root directory where we will compile
ROOT=`pwd`
ocaml unix.cma str.cma checkocaml.ml ocaml_config.sh || exit 1
. ./ocaml_config.sh
if test "$prefix" = "NONE" ; then
prefix=`dirname $OCAMLBIN`
fi
if test "$datadir" = "\${datarootdir}" ; then
datadir=${prefix}/share
fi
if test "$datadir" = "\${prefix}/share" ; then
datadir=$prefix/share
fi
GLADEDIR=$datadir/glade
DTDDIR=$datadir/dtds
##########################
# debugging
##########################
DEBUG_LEVEL=0
AC_ARG_WITH(debug-level,
[ --with-debug-level=n Set debug level to n [[default=0]]
],
[ DEBUG_LEVEL="$withval"])
echo Debug level is set to $DEBUG_LEVEL
#############################
# substitutions to perform
AC_SUBST(OCAMLC)
AC_SUBST(OCAMLOPT)
AC_SUBST(OCAMLDEP)
AC_SUBST(OCAMLLEX)
AC_SUBST(OCAMLYACC)
AC_SUBST(OCAMLBEST)
AC_SUBST(OCAMLVERSION)
AC_SUBST(OCAMLLIB)
AC_SUBST(OCAMLBIN)
AC_SUBST(OCAMLDOC)
AC_SUBST(OCAMLFIND)
AC_SUBST(LABLGLADECC)
AC_SUBST(EXEC_PREFIX)
AC_SUBST(ROOT)
AC_SUBST(DTDDIR)
AC_SUBST(GLADEDIR)
AC_SUBST(XMLLIGHT_INCLUDES)
AC_SUBST(DEBUG_LEVEL)
AC_SUBST(VERSION)
AC_SUBST(PACKAGE)
# Finally create the master.Makefile.in
ACFILES="master.Makefile src/dbf/META src/sqml/META src/dbf/dbf_installation.ml"
AC_OUTPUT($ACFILES)
chmod a-w master.Makefile
chmod a-w src/dbf/META
chmod a-w src/sqml/META
chmod a-w src/dbf/dbf_installation.ml
cat << EOF
====
The following packages will be installed with findlib:
$PACKAGE, $PACKAGE.sql $PACKAGE.mysql, $PACKAGE.gtk, sqml
DTD file will be installed in $DTDDIR
Glade file will be installed in $GLADEDIR
EOF
OCaml-RDF
Copyright (C) 2012 Institut National de Recherche en Informatique
et en Automatique. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version
3 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA
Contact: Maxence.Guesdon@inria.fr
#################################################################################
# OCaml-RDF #
# #
# Copyright (C) 2012 Institut National de Recherche en Informatique #
# et en Automatique. All rights reserved. #
# #
# This program is free software; you can redistribute it and/or modify #
# it under the terms of the GNU Lesser General Public License version #
# 3 as published by the Free Software Foundation. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program; if not, write to the Free Software #
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA #
# 02111-1307 USA #
# #
# Contact: Maxence.Guesdon@inria.fr #
# #
#################################################################################
# Various commands and dir
##########################
OCAMLBIN= @OCAMLBIN@
OCAMLC = @OCAMLC@ -warn-error F
OCAMLOPT = @OCAMLOPT@ -warn-error F
OCAMLDEP = @OCAMLDEP@
OCAMLLEX = @OCAMLLEX@
OCAMLYACC= @OCAMLYACC@
OCAMLLIB = @OCAMLLIB@
OCAMLFIND = @OCAMLFIND@
OCAMLDOCDIR= $(OCAMLLIB)/ocamldoc
OCAMLBEST= @OCAMLBEST@
OCAMLVERSION = @OCAMLVERSION@
EXTRAC_CRC = $(OCAMLLIB)/extract_crc
OCAMLDOC= @OCAMLDOC@
LABLGLADECC=@LABLGLADECC@
OCAMLPP=
LATEX=TEXINPUTS=$(ROOT)/doc: latex
HEVEA=hevea -fix -I $(ROOT)/doc -exec xxdate.exe
HACHA=hacha
DVIPS=dvips
DVIPDF=dvipdf
BIBTEX=bibtex
# For installation
##############
MKDIR=mkdir -p
CP=cp -f
RM=rm -f
DESTDIR= # For debian packagers
DTDDIR=$(DESTDIR)@DTDDIR@
GLADEDIR=$(DESTDIR)@GLADEDIR@
# Compilation
#############
XMLLIGHT_INCLUDES=@XMLLIGHT_INCLUDES@
ROOT=@ROOT@
VERSION=@VERSION@
PACKAGE=@PACKAGE@
# generic rules :
#################
.SUFFIXES: .mli .ml .cmi .cmo .cmx .mll .mly .tex .dvi .ps .pdf
%.cmi:%.mli
$(OCAMLFIND) ocamlc $(OF_FLAGS) $(OCAMLPP) $(COMPFLAGS) -c $<
%.cmo:%.ml
$(OCAMLFIND) ocamlc $(OF_FLAGS) $(OCAMLPP) $(COMPFLAGS) -c $<
%.cmi %.cmo:%.ml
$(OCAMLFIND) ocamlc $(OF_FLAGS) $(OCAMLPP) $(COMPFLAGS) -c $<
%.cmx %.o:%.ml
$(OCAMLFIND) ocamlopt $(OF_FLAGS) $(OCAMLPP) $(COMPFLAGS) -c $<
%.ml:%.mll
$(OCAMLLEX) $<
%.mli %.ml:%.mly
$(OCAMLYACC) -v $<
%.dvi: %.tex
$(LATEX) $<
$(BIBTEX) `basename $< .tex`
$(LATEX) $<
$(LATEX) $<
%.ps: %.dvi
$(DVIPS) -o $@ $<
%.pdf: %.dvi
$(DVIPDF) $< $@
%.html: %.tex
$(HEVEA) $<
$(HACHA) $@
rpl '<META name="GENERATOR" content="hevea 1.06">' \
'<link href="file://$(ROOT)/doc/style.css" rel="stylesheet" type="text/css"> <META name="GENERATOR" content="hevea 1.06">' \
*.html
# some common targets :
#######################
first:all
cleandoc:
$(RM) *.ps *.dvi *.html *.pdf *.log *.aux *.toc *.bbl *.blg
#################################################################################
# OCaml-RDF #
# #
# Copyright (C) 2012 Institut National de Recherche en Informatique #
# et en Automatique. All rights reserved. #
# #
# This program is free software; you can redistribute it and/or modify #
# it under the terms of the GNU Lesser General Public License version #
# 3 as published by the Free Software Foundation. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program; if not, write to the Free Software #
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA #
# 02111-1307 USA #
# #
# Contact: Maxence.Guesdon@inria.fr #
# #
#################################################################################
include ../master.Makefile
PACKAGES=str,config-file,xmlm
GTK_PACKAGES=lablgtk2-extras.configwin,lablgtk2.glade
ALL_PACKAGES=$(PACKAGES),$(GTK_PACKAGES)
OF_FLAGS=-package $(ALL_PACKAGES)
INCLUDES=$(XMLLIGHT_INCLUDES) -I sqml -I dbf -I tmpl
COMPFLAGS=$(INCLUDES) -annot
LINKFLAGS=$(INCLUDES)
# The executables and libraries to produce
DBFORGE=dbforge
DBFORGE_BYTE=$(DBFORGE).byte
DBFORGE_GTK=$(DBFORGE)-gtk
DBFORGE_GTK_BYTE=$(DBFORGE_GTK).byte
LIB_DBF=dbf/dbforge.cmxa
LIB_DBF_BYTE=$(LIB_DBF:.cmxa=.cma)
LIB_DBF_GTK=dbf/dbforge_gtk.cmxa
LIB_DBF_GTK_BYTE=$(LIB_DBF_GTK:.cmxa=.cma)
LIB_SQL=dbf/dbf_sql.cmxa
LIB_SQL_BYTE=$(LIB_SQL:.cmxa=.cma)
LIB_MYSQL=dbf/dbf_mysql.cmxa
LIB_MYSQL_BYTE=$(LIB_MYSQL:.cmxa=.cma)