The unified diff between revisions [0043ee0c..] and [4c78d69e..] is displayed below. It can also be downloaded as a raw diff.

#
#
# add_file "build_log4ada_lib.gpr"
#  content [78f909b0e84205c96be0785179b79db2620e6b77]
#
# add_file "log4Ada.gpr"
#  content [32807d9402fbba76d72d962cbd47355a185a98b0]
#
# add_file "log4Ada_annex_e.gpr"
#  content [989766fb3260c511a2360015a2d6920eb4339eda]
#
# patch "GNUmakefile"
#  from [0a97336c25a9b774e14582dbc7f99d4bbb2e2e1b]
#    to [6e661b578a75061563b47779641ddacd8fad9544]
#
============================================================
--- build_log4ada_lib.gpr	78f909b0e84205c96be0785179b79db2620e6b77
+++ build_log4ada_lib.gpr	78f909b0e84205c96be0785179b79db2620e6b77
@@ -0,0 +1,32 @@
+with "xmlezout";
+project build_log4ada_lib is
+   for Library_Name use "log4ada";
+   for Library_Kind use External ("LIBRARY_KIND");
+   for Library_Dir use ".";
+   for Library_ALI_Dir use External ("OBJ_DIR") & "/ali";
+   for Library_Version use External ("SONAME");
+   for Object_Dir use External ("OBJ_DIR");
+   for Source_Dirs use ("client/src");
+   for Excluded_Source_Files use ("events_receivers.ads",
+       			     	  "events_receivers.adb",
+				  "log4ada-appenders-annex_e.ads",
+				  "log4ada-appenders-annex_e.adb",
+				  "events_receivers-local_consoles.ads",
+				  "events_receivers-local_consoles.adb");
+
+   package Compiler is
+      for Default_Switches ("Ada") use
+              ("-gnat05",         --  Ada 2005 mode
+               "-gnati1",         --  Full ISO 8859-1 character set allowed in
+                                  --  source code (for generated CORBA stubs)
+               "-gnatf",          --  Full compiler error messages
+	       "-gnaty",	  --  Enable style checks
+	       "-gnatwa",	  --  Enable all warnings
+	       "-gnatwe");	  --  Warning as errors
+   end Compiler;
+
+   package Binder is
+      for Default_Switches ("Ada") use ("-E");
+   end Binder;
+
+end build_log4ada_lib;
============================================================
--- log4Ada.gpr	32807d9402fbba76d72d962cbd47355a185a98b0
+++ log4Ada.gpr	32807d9402fbba76d72d962cbd47355a185a98b0
@@ -0,0 +1,32 @@
+--  Log4Ada library project file for use with GCC 4.4
+--  Copyright (c) 2009 Xavier Grave <xavier.grave@ipno.in2p3.fr>
+--
+--  This program is free software; you can redistribute it and/or modify
+--  it under the terms of the GNU General Public License as published by
+--  the Free Software Foundation; either version 3 of the License, or
+--  (at your option) any later version.
+--
+--  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.
+--
+--  This project file is designed to help build applications that use
+--  Log4Ada.  Here is an example of how to use this project file:
+--
+--  with "log4Ada";
+--  project Example is
+--     for Object_Dir use "obj";
+--     for Exec_Dir use ".";
+--     for Main use ("example");
+--  end Example;
+
+with "xmlezout";
+project Log4Ada is
+   for Library_Name use "log4ada";
+   for Library_Dir use "__INSTALL__/lib/log4ada";
+   for Library_Kind use "dynamic";
+   for Source_Dirs use ("__INSTALL__/include/log4ada");
+   for Library_ALI_Dir use "__INSTALL__/lib/log4ada";
+   for Externally_Built use "true";
+end Log4Ada;
============================================================
--- log4Ada_annex_e.gpr	989766fb3260c511a2360015a2d6920eb4339eda
+++ log4Ada_annex_e.gpr	989766fb3260c511a2360015a2d6920eb4339eda
@@ -0,0 +1,27 @@
+--  Log4Ada library project file for use with GCC 4.4 and annex E
+--  Copyright (c) 2009 Xavier Grave <xavier.grave@ipno.in2p3.fr>
+--
+--  This program is free software; you can redistribute it and/or modify
+--  it under the terms of the GNU General Public License as published by
+--  the Free Software Foundation; either version 3 of the License, or
+--  (at your option) any later version.
+--
+--  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.
+--
+--  This project file is designed to help build applications that use
+--  Log4Ada.  Here is an example of how to use this project file:
+--
+--  with "log4Ada_annex_e";
+--  project Example is
+--     for Object_Dir use "obj";
+--     for Exec_Dir use ".";
+--     for Main use ("example");
+--  end Example;
+
+with "log4Ada";
+project Log4Ada_Annex_E is
+   for Source_Dirs use ("__INSTALL__/include/log4ada/annex_e");
+end Log4Ada_Annex_E;
============================================================
--- GNUmakefile	0a97336c25a9b774e14582dbc7f99d4bbb2e2e1b
+++ GNUmakefile	6e661b578a75061563b47779641ddacd8fad9544
@@ -1,3 +1,24 @@
+CPUS := $(shell getconf _NPROCESSORS_ONLN)
+INSTALL := $(HOME)
+ADA_PROJECT_PATH := $(HOME)
+BASE=log4ada-events.adb log4ada.ads log4ada-events.ads log4ada-appenders.adb \
+log4ada-filters.ads log4ada-appenders.ads log4ada-loggers.adb \
+log4ada-appenders-consoles.adb log4ada-loggers.ads \
+log4ada-appenders-consoles.ads log4ada-socket_utilities.adb \
+log4ada-appenders-files.adb log4ada-socket_utilities.ads \
+log4ada-appenders-files.ads log4ada-types.adb log4ada-appenders-tcp_stream.adb \
+log4ada-types.ads log4ada-appenders-tcp_stream.ads options.adb \
+log4ada-appenders-xml.adb options.ads log4ada-appenders-xml.ads
+FILES=$(addprefix client/src/,$(BASE))
+ALI_BASE=log4ada-events.ali log4ada.ali log4ada-filters.ali \
+log4ada-appenders.ali log4ada-loggers.ali log4ada-appenders-consoles.ali \
+log4ada-socket_utilities.ali log4ada-appenders-files.ali log4ada-types.ali \
+log4ada-appenders-tcp_stream.ali options.ali log4ada-appenders-xml.ali
+ALI_FILES=$(addprefix obj-shared/,$(ALI_BASE))
+ANNEX_E_BASE=events_receivers.adb events_receivers-local_consoles.ads \
+events_receivers.ads log4ada-appenders-annex_e.adb \
+events_receivers-local_consoles.adb log4ada-appenders-annex_e.ads
+ANNEX_E_FILES=$(addprefix client/src/,$(ANNEX_E_BASE))
 DIRS=client server

 all:
@@ -9,4 +30,30 @@ distclean:

 distclean:
 	for i in $(DIRS);do make -C $$i distclean;done
-	rm -f *~
\ No newline at end of file
+	rm -f *~
+	rm -Rf obj-shared obj-static
+	rm -f liblog4ada.a liblog4ada.so
+
+.PHONY:shared_library static_library
+
+install:shared_library static_library
+	mkdir -p $(INSTALL)/lib/log4ada
+	mkdir -p $(INSTALL)/include/log4ada
+	mkdir -p $(INSTALL)/include/log4ada/annex_e
+	sed -e 's#__INSTALL__#$(INSTALL)#' log4Ada.gpr > $(INSTALL)/log4Ada.gpr
+	sed -e 's#__INSTALL__#$(INSTALL)#' log4Ada_annex_e.gpr > $(INSTALL)/log4Ada_annex_e.gpr
+	cp -f liblog4ada.a liblog4ada.so $(INSTALL)/lib/log4ada
+	cp $(ALI_FILES) $(INSTALL)/lib/log4ada
+	chmod uog-w $(INSTALL)/lib/log4ada/*.ali
+	cp $(FILES) $(INSTALL)/include/log4ada
+	cp $(ANNEX_E_FILES) $(INSTALL)/include/log4ada/annex_e
+
+shared_library:
+	ADA_PROJECT_PATH=$(ADA_PROJECT_PATH) \
+	gnatmake -p -j$(CPUS) -Pbuild_log4ada_lib.gpr \
+        -XLIBRARY_KIND=dynamic -XSONAME=liblog4ada.so -XOBJ_DIR=obj-shared
+
+static_library:
+	ADA_PROJECT_PATH=$(ADA_PROJECT_PATH) \
+	gnatmake -p -j$(CPUS) -Pbuild_log4ada_lib.gpr \
+        -XLIBRARY_KIND=static -XOBJ_DIR=obj-static