The unified diff between revisions [9d20abe6..] and [e8f57ad5..] is displayed below. It can also be downloaded as a raw diff.

#
#
# rename "build.gpr"
#     to "Makefile_build.gpr"
#
# rename "demo.gpr"
#     to "Makefile_test.gpr"
#
# rename "gmp"
#     to "src"
#
# rename "gmpada.gpr.template"
#     to "template_for_installed_project"
#
# patch "INSTALL"
#  from [a7a14a1c8e73596b1764c9637418155b3bcf66cd]
#    to [b492cde996eae0beab4676f44800b57504f45c07]
#
# patch "Makefile"
#  from [bbaa8d258b52ce19c8126155d724dcb912eb6c4f]
#    to [243cafb95bc2046cdf20299efb48d2d81d213b17]
#
# patch "Makefile_build.gpr"
#  from [5a7258cbb9bbad6f2984ee8dd616babe7829d2ec]
#    to [ab58c48c17c6e2a9f27df1e804f0389e2c0cec91]
#
# patch "Makefile_test.gpr"
#  from [e7330b3f1f31e5f9f9191a4335c8ec7cc40e4099]
#    to [62449fe7f11bab6e4e0f67d360e2937b6c5bdc16]
#
# patch "demo/demo.adb"
#  from [f9b47525f1d2a4920e55bf14487634dfc0ebb5ac]
#    to [a590f717388626b429d7179eacfcf638f4bf7777]
#
# patch "demo/demo.gpr"
#  from [1a3067c2ee8cf5adac739e758cd4f6f4cca15f76]
#    to [d9fd7b51989216c0e1bd54b9b23944d2619aae6a]
#
# patch "generate_constants.c"
#  from [3b214a37b58cd222dbbf561bf4e3a3964ded5e0c]
#    to [b6cf716b5e5975b08f74d323207b705a88363654]
#
# patch "src/gmp-binding.adb"
#  from [708fa1237a3e7cc1147d39828a46eddda75ddbf2]
#    to [55dd50075c4545c830d23b383720e36164fc9d7d]
#
# patch "src/gmp-binding.ads"
#  from [92afe6fd4ecab6d57bfa17641061665801a47852]
#    to [80967bb37f8fc64cb40743c9bfb53d74d8b3c9cb]
#
# patch "src/gmp.ads"
#  from [99c23976f254b7fd84e08b25a9c19df06f73d632]
#    to [cc9a6016d0e1d33a530f1bb31a1bc8fff5f4c027]
#
# patch "src/gmp_macros.c"
#  from [9bddfeaa43ed1d17ed2f0f76eddced386cd972e1]
#    to [3c68881885eea4654662c6fcd6339bed0406f183]
#
# patch "src/gnu_multiple_precision-aux.adb"
#  from [d3aa4738bae1a3382cd7e576a3490020d8dd5555]
#    to [9ecc5944ad79762d1986e615e8a1d22ed905987f]
#
# patch "src/gnu_multiple_precision-aux.ads"
#  from [409d4e3886d74c27d22819f7c4a0c6d01db7e6c1]
#    to [8f8f1360ec6e6e256b57fd8901588ef31f9a5c0d]
#
# patch "src/gnu_multiple_precision-big_floats.adb"
#  from [bbe7f581fd9c7c917aaa00d9bc68d26d779adf82]
#    to [0bf139a7891dc071c5e90af95ac828175c3e5ccf]
#
# patch "src/gnu_multiple_precision-big_floats.ads"
#  from [7ef0f94c2280eefde6dd4d1185e01605ff195054]
#    to [f20e34f970beddf610c37d1ca9b591d7889df63b]
#
# patch "src/gnu_multiple_precision-big_integers.adb"
#  from [0f7dbe1352c31ddaa0a9080a36504b0b973c0b8a]
#    to [c4f6e71182c2c967bfe0ef0619c8afcc467858bc]
#
# patch "src/gnu_multiple_precision-big_integers.ads"
#  from [86465c9d3ee32311320a6421e3c38dabb44e387f]
#    to [216f74f0fec190f4fe3788ba3c11804235bc9e5a]
#
# patch "src/gnu_multiple_precision-big_rationals.adb"
#  from [fd368792d7fba0f475841726074dfe4266798cdb]
#    to [24de5d972adc95e47640f57d4af53c0157d93d54]
#
# patch "src/gnu_multiple_precision-big_rationals.ads"
#  from [092b1fc1b42ef8ec514f84b0a8b898ef557c7c3c]
#    to [41f51fb7229d8f24a3b2783fccdeb6ee0f354f86]
#
# patch "src/gnu_multiple_precision-generic_text_io.adb"
#  from [d1bd688171f97c0fb06198a28e808876b5a8e380]
#    to [5a3251bd00500d84d4c4a577b6b5ea8bf4a25ffc]
#
# patch "src/gnu_multiple_precision-generic_text_io.ads"
#  from [67b4bf647ef2a02ee3d5cdde7bd36e5662a10528]
#    to [989ea7061bf00154bc1ccff3ac9b242decd1e4ea]
#
# patch "src/gnu_multiple_precision-random_numbers.adb"
#  from [3b913204a6f890ad93c9e578ce4c85d7346ba114]
#    to [5b4e051cab8ea9c610f074f8e196e7fc919e7ec0]
#
# patch "src/gnu_multiple_precision-random_numbers.ads"
#  from [53b3bfd9d585b602a9cf6926e6dd535f5a6d2a08]
#    to [d9d5c61324f56c543ef1253908b771778eab9b33]
#
# patch "src/gnu_multiple_precision-text_io.ads"
#  from [0f319ead60fde4481962bd95e46c096909b26a44]
#    to [ecb205cf3e5fa0663734b30d7b0b62b1164a81f4]
#
# patch "src/gnu_multiple_precision-wide_text_io.ads"
#  from [3fd71eb7eb050ba50fc07bc65ec036373ba125e4]
#    to [fe028181465a61ff2cac2882f484bef849e292b2]
#
# patch "src/gnu_multiple_precision-wide_wide_text_io.ads"
#  from [a2477876209379fbcce28fd444cdb35355577472]
#    to [40cd84ff22a0c549276048279fd8268d918a7dd9]
#
# patch "src/gnu_multiple_precision.adb"
#  from [c71d1da40339d63b36b29490689d9d07076683e4]
#    to [40679ee47f955c2374deda949d02b0b905d5da19]
#
# patch "src/gnu_multiple_precision.ads"
#  from [fb0e2a8ec3f86799c1eeb57c85299b7c1f9436a6]
#    to [176c263393d12be4c6504f127ffa42e79881f072]
#
# patch "template_for_installed_project"
#  from [e3de993cda7edfe3efb981eca27890f571b754a3]
#    to [c255e1de01f836c1279845b302841817b0da0b16]
#
============================================================
--- INSTALL	a7a14a1c8e73596b1764c9637418155b3bcf66cd
+++ INSTALL	b492cde996eae0beab4676f44800b57504f45c07
@@ -7,20 +7,23 @@ Edit the top of the Makefile. You must a
 Uncompress the archive and enter the main source directory.

 Edit the top of the Makefile. You must at least check the DESTDIR
-variable.  You may adapt the other directories to your local policy
-concerning Ada system-wide packages too.
+variable.

 Then type (without the dollar symbol)

 $ make

-and as root
+and (as root)

 $ make install

+After that, you may want to gain space with
+
+$ make clean
+
 --------- UNINSTALL ---------

-Uninstall the older version with
+Uninstall the older version with (as root)

 $ make uninstall

============================================================
--- Makefile	bbaa8d258b52ce19c8126155d724dcb912eb6c4f
+++ Makefile	243cafb95bc2046cdf20299efb48d2d81d213b17
@@ -1,5 +1,5 @@
 #    GMPAda, binding to the Ada Language for the GNU MultiPrecision library.
-#    Copyright (C) 2007 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
+#    Copyright (C) 2007-2010 Nicolas Boulenguez <nicolas.boulenguez@free.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
@@ -14,45 +14,56 @@
 #    You should have received a copy of the GNU General Public License
 #    along with this program.  If not, see <http://www.gnu.org/licenses/>.

-#  Uncomment this and set this variable if you install by hand.
-#  DESTDIR=
+#  Set these variables if you install by hand.
+DESTDIR ?=
+LIB_NAME ?= gmpada
+SOVERSION ?= 1

 # gprbuild can do parallel builds; we don't want make to interfere.
 .NOTPARALLEL:
 CPUS := $(shell getconf _NPROCESSORS_ONLN)

-# exported to project files
-export LIB_NAME ?= gmpada
-export SOVERSION ?= 1
+test: src/gmp-constants.ads
+	gprbuild -j$(CPUS) --create-missing-dirs Makefile_test.gpr
+	cd test-obj && ./demo
+TO_CLEAN += test-obj

-build: gmp/gmp-constants.ads $(LIB_NAME).gpr
-	gprbuild -j$(CPUS) --create-missing-dirs -Pbuild \
-          -XLIB_KIND=dynamic -XLIB_OBJ_DIR=shared-obj -XLIB_DIR=shared-ali
-	gprbuild -j$(CPUS) --create-missing-dirs -Pbuild \
-          -XLIB_KIND=static -XLIB_OBJ_DIR=static-obj -XLIB_DIR=static-ali
+build: src/gmp-constants.ads $(LIB_NAME).gpr
+	gprbuild -j$(CPUS) --create-missing-dirs Makefile_build.gpr \
+          -XKIND=dynamic \
+          -XNAME=$(LIB_NAME) \
+          -XVERSION=lib$(LIB_NAME).so.$(SOVERSION)
+	gprbuild -j$(CPUS) --create-missing-dirs Makefile_build.gpr \
+          -XKIND=static \
+          -XNAME=$(LIB_NAME)

-$(LIB_NAME).gpr: $(LIB_NAME).gpr.template
-	sed -e "s/\$$(DESTDIR)/$(DESTDIR)/g" $< > $@
+TO_CLEAN += $(foreach dir,obj lib,$(foreach kind,dynamic static,build-$(dir)-$(kind)))

-gmp/gmp-constants.ads: generate_constants
+$(LIB_NAME).gpr: template_for_installed_project
+	sed \
+          -e "s/\$$(LIB_NAME)/$(LIB_NAME)/g" \
+          -e "s/\$$(DESTDIR)/$(DESTDIR)/g" \
+          $< > $@
+TO_CLEAN += $(LIB_NAME).gpr
+
+src/gmp-constants.ads: generate_constants
 	./$< > $@
+TO_CLEAN += src/gmp-constants.ads

 generate_constants: LDFLAGS += -lgmp
+TO_CLEAN += generate_constants

 clean:
-	rm -rf \
-          $(LIB_NAME).gpr gmp/gmp-constants.ads generate_constants \
-          shared-obj shared-ali static-obj static-ali \
-          demo-obj
+	rm -rf $(TO_CLEAN)

 install: build
 	install -d $(DESTDIR)/usr/share/ada/adainclude/$(LIB_NAME)
-	install --mode=644 gmp/* $(DESTDIR)/usr/share/ada/adainclude/$(LIB_NAME)
+	install --mode=644 src/* $(DESTDIR)/usr/share/ada/adainclude/$(LIB_NAME)
 	install --mode=644 $(LIB_NAME).gpr $(DESTDIR)/usr/share/ada/adainclude
 	install -d $(DESTDIR)/usr/lib/ada/adalib/$(LIB_NAME)
-	install --mode=444 shared-ali/*.ali $(DESTDIR)/usr/lib/ada/adalib/$(LIB_NAME)
-	install --mode=644 static-ali/lib$(LIB_NAME).a $(DESTDIR)/usr/lib
-	install --mode=644 shared-ali/lib$(LIB_NAME).so.$(SOVERSION) $(DESTDIR)/usr/lib
+	install --mode=444 build-lib-dynamic/*.ali $(DESTDIR)/usr/lib/ada/adalib/$(LIB_NAME)
+	install --mode=644 build-lib-static/lib$(LIB_NAME).a $(DESTDIR)/usr/lib
+	install --mode=644 build-lib-dynamic/lib$(LIB_NAME).so.$(SOVERSION) $(DESTDIR)/usr/lib
 	cd $(DESTDIR)/usr/lib && ln -f -s lib$(LIB_NAME).so.$(SOVERSION) lib$(LIB_NAME).so

 uninstall:
@@ -64,8 +75,4 @@ uninstall:
           $(DESTDIR)/usr/lib/lib$(LIB_NAME).so.$(SOVERSION) \
           $(DESTDIR)/usr/lib/lib$(LIB_NAME).so

-test: gmp/gmp-constants.ads
-	gprbuild -j$(CPUS) --create-missing-dirs -Pdemo.gpr -XOBJ_DIR=demo-obj
-	cd demo-obj && ./demo
-
 .PHONY: build clean install uninstall test
============================================================
--- build.gpr	5a7258cbb9bbad6f2984ee8dd616babe7829d2ec
+++ Makefile_build.gpr	ab58c48c17c6e2a9f27df1e804f0389e2c0cec91
@@ -14,22 +14,26 @@
 --    You should have received a copy of the GNU General Public License
 --    along with this program.  If not, see <http://www.gnu.org/licenses/>.

-project Build is
+project Makefile_Build is
+  type Library_Kind is ("dynamic", "static");
+  Kind : Library_Kind := External ("KIND");

-  --  All output configuration is inherited from the Makefile.
+  for Library_Name use External ("NAME");
+  case Kind is
+     when "dynamic" =>
+        for Library_Version use External ("VERSION");
+     when "static" =>
+        null;
+  end case;
+  for Library_Kind use Kind;
+  for Library_Dir use "build-lib-" & Kind;
+  for Object_Dir use "build-obj-" & Kind;

-  for Library_Name use External ("LIB_NAME");
-  for Library_Version use
-    "lib" & Build'Library_Name & ".so." & External ("SOVERSION");
-  for Library_Kind use External ("LIB_KIND");
-  for Library_Dir use External ("LIB_DIR");
-  for Object_Dir use External ("LIB_OBJ_DIR");
-
   for Library_Options use ("-lgmp");
   for Languages use ("Ada", "C");
-  for Source_Dirs use ("gmp");
+  for Source_Dirs use ("src");
   package Compiler is
      for Default_Switches ("Ada") use ("-g", "-O2");
      for Default_Switches ("C") use ("-g", "-O2");
   end Compiler;
-end Build;
+end Makefile_Build;
============================================================
--- demo.gpr	e7330b3f1f31e5f9f9191a4335c8ec7cc40e4099
+++ Makefile_test.gpr	62449fe7f11bab6e4e0f67d360e2937b6c5bdc16
@@ -14,14 +14,10 @@
 --    You should have received a copy of the GNU General Public License
 --    along with this program.  If not, see <http://www.gnu.org/licenses/>.

-project Demo is
-
-  --  All output configuration is inherited from the Makefile.
-
+project Makefile_Test is
   for Main use ("demo.adb");
-  for Source_Dirs use ("gmp", "demo");
-  for Object_Dir use External ("OBJ_DIR");
-
+  for Source_Dirs use ("src", "demo");
+  for Object_Dir use "test-obj";
   for Languages use ("Ada", "C");
   package Compiler is
      for Default_Switches ("Ada") use
@@ -46,4 +42,4 @@ project Demo is
   package Linker is
      for Default_Switches ("Ada") use ("-lgmp");
   end Linker;
-end Demo;
+end Makefile_Test;
============================================================
--- demo/demo.adb	f9b47525f1d2a4920e55bf14487634dfc0ebb5ac
+++ demo/demo.adb	a590f717388626b429d7179eacfcf638f4bf7777
@@ -1,5 +1,5 @@
 --    GMPAda, binding to the Ada Language for the GNU MultiPrecision library.
---    Copyright (C) 2007 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
+--    Copyright (C) 2007-2010 Nicolas Boulenguez <nicolas.boulenguez@free.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
============================================================
--- demo/demo.gpr	1a3067c2ee8cf5adac739e758cd4f6f4cca15f76
+++ demo/demo.gpr	d9fd7b51989216c0e1bd54b9b23944d2619aae6a
@@ -1,5 +1,5 @@
 --    GMPAda, binding to the Ada Language for the GNU MultiPrecision library.
---    Copyright (C) 2007,2009 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
+--    Copyright (C) 2007-2010 Nicolas Boulenguez <nicolas.boulenguez@free.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
============================================================
--- generate_constants.c	3b214a37b58cd222dbbf561bf4e3a3964ded5e0c
+++ generate_constants.c	b6cf716b5e5975b08f74d323207b705a88363654
@@ -1,5 +1,5 @@
 //    GMPAda, binding to the Ada Language for the GNU MultiPrecision library.
-//    Copyright (C) 2007 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
+//    Copyright (C) 2009-2010 Nicolas Boulenguez <nicolas.boulenguez@free.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
============================================================
--- src/gmp-binding.adb	708fa1237a3e7cc1147d39828a46eddda75ddbf2
+++ src/gmp-binding.adb	55dd50075c4545c830d23b383720e36164fc9d7d
@@ -1,5 +1,5 @@
 --    GMPAda, binding to the Ada Language for the GNU MultiPrecision library.
---    Copyright (C) 2007 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
+--    Copyright (C) 2007-2010 Nicolas Boulenguez <nicolas.boulenguez@free.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
============================================================
--- src/gmp-binding.ads	92afe6fd4ecab6d57bfa17641061665801a47852
+++ src/gmp-binding.ads	80967bb37f8fc64cb40743c9bfb53d74d8b3c9cb
@@ -1,5 +1,5 @@
 --    GMPAda, binding to the Ada Language for the GNU MultiPrecision library.
---    Copyright (C) 2007 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
+--    Copyright (C) 2007-2010 Nicolas Boulenguez <nicolas.boulenguez@free.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
============================================================
--- src/gmp.ads	99c23976f254b7fd84e08b25a9c19df06f73d632
+++ src/gmp.ads	cc9a6016d0e1d33a530f1bb31a1bc8fff5f4c027
@@ -1,5 +1,5 @@
 --    GMPAda, binding to the Ada Language for the GNU MultiPrecision library.
---    Copyright (C) 2007 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
+--    Copyright (C) 2007-2010 Nicolas Boulenguez <nicolas.boulenguez@free.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
============================================================
--- src/gmp_macros.c	9bddfeaa43ed1d17ed2f0f76eddced386cd972e1
+++ src/gmp_macros.c	3c68881885eea4654662c6fcd6339bed0406f183
@@ -1,5 +1,5 @@
 //    GMPAda, binding to the Ada Language for the GNU MultiPrecision library.
-//    Copyright (C) 2007 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
+//    Copyright (C) 2007-2010 Nicolas Boulenguez <nicolas.boulenguez@free.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
============================================================
--- src/gnu_multiple_precision-aux.adb	d3aa4738bae1a3382cd7e576a3490020d8dd5555
+++ src/gnu_multiple_precision-aux.adb	9ecc5944ad79762d1986e615e8a1d22ed905987f
@@ -1,5 +1,5 @@
 --    GMPAda, binding to the Ada Language for the GNU MultiPrecision library.
---    Copyright (C) 2007 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
+--    Copyright (C) 2007-2010 Nicolas Boulenguez <nicolas.boulenguez@free.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
============================================================
--- src/gnu_multiple_precision-aux.ads	409d4e3886d74c27d22819f7c4a0c6d01db7e6c1
+++ src/gnu_multiple_precision-aux.ads	8f8f1360ec6e6e256b57fd8901588ef31f9a5c0d
@@ -1,5 +1,5 @@
 --    GMPAda, binding to the Ada Language for the GNU MultiPrecision library.
---    Copyright (C) 2007 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
+--    Copyright (C) 2007-2010 Nicolas Boulenguez <nicolas.boulenguez@free.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
============================================================
--- src/gnu_multiple_precision-big_floats.adb	bbe7f581fd9c7c917aaa00d9bc68d26d779adf82
+++ src/gnu_multiple_precision-big_floats.adb	0bf139a7891dc071c5e90af95ac828175c3e5ccf
@@ -1,5 +1,5 @@
 --    GMPAda, binding to the Ada Language for the GNU MultiPrecision library.
---    Copyright (C) 2007 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
+--    Copyright (C) 2007-2010 Nicolas Boulenguez <nicolas.boulenguez@free.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
============================================================
--- src/gnu_multiple_precision-big_floats.ads	7ef0f94c2280eefde6dd4d1185e01605ff195054
+++ src/gnu_multiple_precision-big_floats.ads	f20e34f970beddf610c37d1ca9b591d7889df63b
@@ -1,5 +1,5 @@
 --    GMPAda, binding to the Ada Language for the GNU MultiPrecision library.
---    Copyright (C) 2007 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
+--    Copyright (C) 2007-2010 Nicolas Boulenguez <nicolas.boulenguez@free.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
============================================================
--- src/gnu_multiple_precision-big_integers.adb	0f7dbe1352c31ddaa0a9080a36504b0b973c0b8a
+++ src/gnu_multiple_precision-big_integers.adb	c4f6e71182c2c967bfe0ef0619c8afcc467858bc
@@ -1,5 +1,5 @@
 --    GMPAda, binding to the Ada Language for the GNU MultiPrecision library.
---    Copyright (C) 2007 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
+--    Copyright (C) 2007-2010 Nicolas Boulenguez <nicolas.boulenguez@free.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
============================================================
--- src/gnu_multiple_precision-big_integers.ads	86465c9d3ee32311320a6421e3c38dabb44e387f
+++ src/gnu_multiple_precision-big_integers.ads	216f74f0fec190f4fe3788ba3c11804235bc9e5a
@@ -1,5 +1,5 @@
 --    GMPAda, binding to the Ada Language for the GNU MultiPrecision library.
---    Copyright (C) 2007 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
+--    Copyright (C) 2007-2010 Nicolas Boulenguez <nicolas.boulenguez@free.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
============================================================
--- src/gnu_multiple_precision-big_rationals.adb	fd368792d7fba0f475841726074dfe4266798cdb
+++ src/gnu_multiple_precision-big_rationals.adb	24de5d972adc95e47640f57d4af53c0157d93d54
@@ -1,5 +1,5 @@
 --    GMPAda, binding to the Ada Language for the GNU MultiPrecision library.
---    Copyright (C) 2007 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
+--    Copyright (C) 2007-2010 Nicolas Boulenguez <nicolas.boulenguez@free.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
============================================================
--- src/gnu_multiple_precision-big_rationals.ads	092b1fc1b42ef8ec514f84b0a8b898ef557c7c3c
+++ src/gnu_multiple_precision-big_rationals.ads	41f51fb7229d8f24a3b2783fccdeb6ee0f354f86
@@ -1,5 +1,5 @@
 --    GMPAda, binding to the Ada Language for the GNU MultiPrecision library.
---    Copyright (C) 2007 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
+--    Copyright (C) 2007-2010 Nicolas Boulenguez <nicolas.boulenguez@free.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
============================================================
--- src/gnu_multiple_precision-generic_text_io.adb	d1bd688171f97c0fb06198a28e808876b5a8e380
+++ src/gnu_multiple_precision-generic_text_io.adb	5a3251bd00500d84d4c4a577b6b5ea8bf4a25ffc
@@ -1,5 +1,5 @@
 --    GMPAda, binding to the Ada Language for the GNU MultiPrecision library.
---    Copyright (C) 2007 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
+--    Copyright (C) 2007-2010 Nicolas Boulenguez <nicolas.boulenguez@free.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
============================================================
--- src/gnu_multiple_precision-generic_text_io.ads	67b4bf647ef2a02ee3d5cdde7bd36e5662a10528
+++ src/gnu_multiple_precision-generic_text_io.ads	989ea7061bf00154bc1ccff3ac9b242decd1e4ea
@@ -1,5 +1,5 @@
 --    GMPAda, binding to the Ada Language for the GNU MultiPrecision library.
---    Copyright (C) 2007 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
+--    Copyright (C) 2007-2010 Nicolas Boulenguez <nicolas.boulenguez@free.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
============================================================
--- src/gnu_multiple_precision-random_numbers.adb	3b913204a6f890ad93c9e578ce4c85d7346ba114
+++ src/gnu_multiple_precision-random_numbers.adb	5b4e051cab8ea9c610f074f8e196e7fc919e7ec0
@@ -1,5 +1,5 @@
 --    GMPAda, binding to the Ada Language for the GNU MultiPrecision library.
---    Copyright (C) 2007 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
+--    Copyright (C) 2007-2010 Nicolas Boulenguez <nicolas.boulenguez@free.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
============================================================
--- src/gnu_multiple_precision-random_numbers.ads	53b3bfd9d585b602a9cf6926e6dd535f5a6d2a08
+++ src/gnu_multiple_precision-random_numbers.ads	d9d5c61324f56c543ef1253908b771778eab9b33
@@ -1,5 +1,5 @@
 --    GMPAda, binding to the Ada Language for the GNU MultiPrecision library.
---    Copyright (C) 2007 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
+--    Copyright (C) 2007-2010 Nicolas Boulenguez <nicolas.boulenguez@free.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
============================================================
--- src/gnu_multiple_precision-text_io.ads	0f319ead60fde4481962bd95e46c096909b26a44
+++ src/gnu_multiple_precision-text_io.ads	ecb205cf3e5fa0663734b30d7b0b62b1164a81f4
@@ -1,5 +1,5 @@
 --    GMPAda, binding to the Ada Language for the GNU MultiPrecision library.
---    Copyright (C) 2007 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
+--    Copyright (C) 2007-2010 Nicolas Boulenguez <nicolas.boulenguez@free.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
============================================================
--- src/gnu_multiple_precision-wide_text_io.ads	3fd71eb7eb050ba50fc07bc65ec036373ba125e4
+++ src/gnu_multiple_precision-wide_text_io.ads	fe028181465a61ff2cac2882f484bef849e292b2
@@ -1,5 +1,5 @@
 --    GMPAda, binding to the Ada Language for the GNU MultiPrecision library.
---    Copyright (C) 2007 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
+--    Copyright (C) 2007-2010 Nicolas Boulenguez <nicolas.boulenguez@free.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
============================================================
--- src/gnu_multiple_precision-wide_wide_text_io.ads	a2477876209379fbcce28fd444cdb35355577472
+++ src/gnu_multiple_precision-wide_wide_text_io.ads	40cd84ff22a0c549276048279fd8268d918a7dd9
@@ -1,5 +1,5 @@
 --    GMPAda, binding to the Ada Language for the GNU MultiPrecision library.
---    Copyright (C) 2007 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
+--    Copyright (C) 2007-2010 Nicolas Boulenguez <nicolas.boulenguez@free.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
============================================================
--- src/gnu_multiple_precision.adb	c71d1da40339d63b36b29490689d9d07076683e4
+++ src/gnu_multiple_precision.adb	40679ee47f955c2374deda949d02b0b905d5da19
@@ -1,5 +1,5 @@
 --    GMPAda, binding to the Ada Language for the GNU MultiPrecision library.
---    Copyright (C) 2007 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
+--    Copyright (C) 2007-2010 Nicolas Boulenguez <nicolas.boulenguez@free.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
============================================================
--- src/gnu_multiple_precision.ads	fb0e2a8ec3f86799c1eeb57c85299b7c1f9436a6
+++ src/gnu_multiple_precision.ads	176c263393d12be4c6504f127ffa42e79881f072
@@ -1,5 +1,5 @@
 --    GMPAda, binding to the Ada Language for the GNU MultiPrecision library.
---    Copyright (C) 2007 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
+--    Copyright (C) 2007-2010 Nicolas Boulenguez <nicolas.boulenguez@free.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
============================================================
--- gmpada.gpr.template	e3de993cda7edfe3efb981eca27890f571b754a3
+++ template_for_installed_project	c255e1de01f836c1279845b302841817b0da0b16
@@ -1,5 +1,5 @@
 --    GMPAda, binding to the Ada Language for the GNU MultiPrecision library.
---    Copyright (C) 2007,2009 Nicolas Boulenguez <nicolas.boulenguez@free.fr>
+--    Copyright (C) 2007-2010 Nicolas Boulenguez <nicolas.boulenguez@free.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
@@ -17,18 +17,18 @@
 --  This project file is designed to help build applications that use
 --  GMP.  Here is an example of how to use this project file:
 --
---  with "gmpada";
+--  with "$(LIB_NAME)";
 --  project Example is
 --     for Object_Dir use "obj";
 --     for Exec_Dir use ".";
 --     for Main use ("example");
 --  end Example;

-project GMP is
-   for Source_Dirs use ("$(DESTDIR)/usr/share/ada/adainclude/gmpada");
-   for Library_Name use "gmpada";
+project $(LIB_NAME) is
+   for Source_Dirs use ("$(DESTDIR)/usr/share/ada/adainclude/$(LIB_NAME)");
+   for Library_Name use "$(LIB_NAME)";
    for Library_Kind use "dynamic";
-   for Library_ALI_Dir use "$(DESTDIR)/usr/lib/ada/adalib/gmpada";
+   for Library_ALI_Dir use "$(DESTDIR)/usr/lib/ada/adalib/$(LIB_NAME)";
    for Library_Dir use "$(DESTDIR)/usr/lib";
    for Externally_Built use "true";
-end GMP;
+end $(LIB_NAME);