
This is just a simple packaging, mainly to automate the tests. I know that previous Olena release/prototypes came with a much more complex equipment (w.r.t configuration and tests); but don't worry, we'll add this later. https://svn.lrde.epita.fr/svn/oln/trunk Index: ChangeLog from Roland Levillain <roland@lrde.epita.fr> Autoconfiscate the project and automate the tests. * configure.ac: New file. * Makefile.am, build-aux/Makefile.am, metalic/Makefile.am, * metalic/mlc/Makefile.am, metalic/tests/Makefile.am: New file. Makefile.am | 3 ++ build-aux/Makefile.am | 1 configure.ac | 60 ++++++++++++++++++++++++++++++++++++++++++++++ metalic/Makefile.am | 3 ++ metalic/mlc/Makefile.am | 22 ++++++++++++++++ metalic/tests/Makefile.am | 21 ++++++++++++++++ 6 files changed, 110 insertions(+) Index: configure.ac --- configure.ac (revision 0) +++ configure.ac (revision 0) @@ -0,0 +1,60 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ([2.59]) + + +## ---------------- ## +## Package set up. ## +## ---------------- ## + +AC_INIT([Olena], [1.0], [olena@lrde.epita.fr], [olena]) + +# Auxiliary files. +AC_CONFIG_AUX_DIR([build-aux]) +AC_CONFIG_FILES([build-aux/Makefile]) + +# Automake. +# 1.9.4 because of changelog vs. ChangeLog on Darwin. +AM_INIT_AUTOMAKE([1.9.4 foreign check-news dist-bzip2 -Wall]) + + +## --------------------- ## +## C++ Compiler Set up. ## +## --------------------- ## + +# Look for a C++ compiler. +AC_LANG([C++]) +AC_PROG_CXX + +# Speed the compilation up. +if test "$GXX" = yes; then + CXXFLAGS="$CXXFLAGS -pipe" +fi + + +## ------- ## +## Tests. ## +## ------- ## + +# Students should create their test suite in tests/. Add the needed +# configure options here. +AC_CONFIG_FILES([metalic/tests/Makefile]) + + +## --------------- ## +## Configuration. ## +## --------------- ## + +# Ask for config.h. +AM_CONFIG_HEADER([config.h]) + +# Ask for the Makefile creations. +AC_CONFIG_FILES([ + Makefile + metalic/Makefile + metalic/mlc/Makefile +]) + +# Checks for library functions. +AC_OUTPUT Index: Makefile.am --- Makefile.am (revision 0) +++ Makefile.am (revision 0) @@ -0,0 +1,3 @@ +## Process this file through Automake to produce Makefile.in -*- Makefile -*- + +SUBDIRS = build-aux metalic Index: build-aux/Makefile.am --- build-aux/Makefile.am (revision 0) +++ build-aux/Makefile.am (revision 0) @@ -0,0 +1 @@ +## Process this file through Automake to produce Makefile.in -*- Makefile -*- Index: metalic/tests/Makefile.am --- metalic/tests/Makefile.am (revision 0) +++ metalic/tests/Makefile.am (revision 0) @@ -0,0 +1,21 @@ +## Process this file through Automake to create Makefile.in -*- Makefile -*- + +AM_CPPFLAGS = -I$(top_srcdir)/metalic +# FIXME: Add +# +# AM_CXXFLAGS = $(CXXFLAGS_STRICT) $(CXXFLAGS_OPTIMIZE) -ggdb +# +# when oln.m4 is available in the distribution. + +check_PROGRAMS = \ + if \ + is_a \ + properties \ + typedef + +if_SOURCES = if.cc +is_a_SOURCES = is_a.cc +properties_SOURCES = properties.cc +typedef_SOURCES = typedef.cc + +TESTS = $(check_PROGRAMS) Index: metalic/Makefile.am --- metalic/Makefile.am (revision 0) +++ metalic/Makefile.am (revision 0) @@ -0,0 +1,3 @@ +## Process this file through Automake to create Makefile.in -*- Makefile -*- + +SUBDIRS = mlc tests Index: metalic/mlc/Makefile.am --- metalic/mlc/Makefile.am (revision 0) +++ metalic/mlc/Makefile.am (revision 0) @@ -0,0 +1,22 @@ +## Process this file through Automake to create Makefile.in -*- Makefile -*- + +mlcdir = $(includedir)/mlc +nobase_mlc_HEADERS = \ + bool.hh \ + cmp.hh \ + comma.hh \ + elt.hh \ + flags.hh \ + if.hh \ + implies.hh \ + is_a.hh \ + logic.hh \ + pair.hh \ + properties.hh \ + to_string.hh \ + type.hh \ + typedef.hh \ + uint.hh \ + valist.hh \ + value.hh \ + wrap.hh