Author:Xavier Grave <xavier.grave@csnsm.in2p3.fr>
In Order to be able to modify the makefile behaviour about
the gnatmake command, the executable name is replaced by an
environment variable.
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1,15 +1,16 @@
 CPUS := $(shell getconf _NPROCESSORS_ONLN)
 INSTALL := $(HOME)
+GNATMAKE := gnatmake
 
 all:shared_library static_library
 
 .PHONY:shared_library static_library
 shared_library:
-	gnatmake -p -j$(CPUS) -Pbuild_xmlezout_lib.gpr \
+	$(GNATMAKE) -p -j$(CPUS) -Pbuild_xmlezout_lib.gpr \
         -XLIBRARY_KIND=dynamic -XSONAME=libxmlezout.so -XOBJ_DIR=obj-shared
 
 static_library:
-	gnatmake -p -j$(CPUS) -Pbuild_xmlezout_lib.gpr \
+	$(GNATMAKE) -p -j$(CPUS) -Pbuild_xmlezout_lib.gpr \
         -XLIBRARY_KIND=static -XOBJ_DIR=obj-static
 
 clean:
