-- Build file for Aw_Lib.
--
-- author Marcelo Coraça de Freitas <marcelo.batera@gmail.com> 
--
-- Repository information:
-- $Date: 2008-02-25 19:47:48 -0300 (Seg, 25 Fev 2008) $
-- $Revision: 234 $
-- $Author: ogro $


with "apq.gpr";

project APQ.PostgreSQL is

	version := APQ.version;
	
	for Languages use ( "Ada", "C" );
	
	for Source_Dirs use ( $include_path );
	
	-- LIBRARY
	for Library_Dir use $lib_path;
	for Library_Name use "apq-postgresql";
	for Library_Kind use APQ'Library_kind;
	for Library_Version use "libapq-postgresql.so." & Version;
	
	
	package Compiler is
		for Default_Switches ("ada") use ("-O2", "-gnat05");
	end Compiler;



	package Linker is
		for Default_Switches ("Ada") use (
			"-lpq",
			"-lapq-postgresqlhelp"
		);
		--for Default_Switches ("ada") use ("-ldl", "-lpq");
	end Linker;

	for Externally_Built use "true";

end APQ.PostgreSQL;

