blob: 492884b367420da64c776fe72ed6f0c2591d8e81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
-- Use this project file to compile the Ada Milter API into a shared library.
-- Copyright 2009 - 2012 B. Persson, Bjorn@Rombobeorn.se
--
-- This project file is free software: you can redistribute it and/or modify it
-- under the terms of the GNU General Public License version 3, as published
-- by the Free Software Foundation.
with "directories";
with "system_log";
project Build_Milter_API is
Version := "1.2.1";
Destdir := external("DESTDIR", "");
for Library_Name use "adamilter";
for Library_Kind use "relocatable";
for Library_Version use "libadamilter.so." & Version;
for Library_Src_Dir use Destdir & Directories.Includedir & "/adamilter";
for Library_Dir use Destdir & Directories.Libdir;
for Library_ALI_Dir use Destdir & Directories.Libdir & "/adamilter";
-- Put the binder files for different architectures in subdirectories where
-- they won't conflict with each other.
for Object_Dir use "obj/" & Directories.Hardware_Platform;
for Library_Interface use ("Milter_API");
for Languages use ("Ada", "C");
package Compiler is
for Default_Switches ("Ada") use ("-gnato");
end Compiler;
-- Ensure that the shared library will be initialized. GPRbuild 2010 doesn't
-- pass -a automatically.
package Binder is
for Default_Switches ("Ada") use ("-a");
end Binder;
for Library_Options use ("-lmilter");
end Build_Milter_API;
|