
-- these next 2 commands work in unix shell:

-- g++ adabindings/sfmlAudio/snd4ada.cpp -c -Werror -fPIC -I./cppinclude

-- g++ -shared -o ./libs/gnu/libsnd4ada.so snd4ada.o \
-- -L$PWD/libs/gnu -lsfml-audio -lsfml-system

-- but I shall replace then with the following:


project soundlib_gnu is

	for Library_Name use "snd4ada";
	for Library_Dir use "./libs/gnu";
	for Library_Kind use "dynamic";
	for Languages use ("C++");
   for Source_Dirs use (".", "./cppinclude","./adabindings/sfmlAudio");
   for Object_Dir use "./obj";

   package Compiler is

		for Driver ("C++") use "/usr/gnat/bin/g++";
      CPP_Switches := ("-std=c++11", "-c", "-Werror", "-fPIC" );
      for Switches ("snd4ada.cpp") use CPP_Switches;

   end Compiler;

   package Linker is

		for Linker_Options use 
			("-L./libs/gnu","-lsfml-audio", "-lsfml-system");

   end Linker;

end soundlib_gnu;

