1 ##############################################################################
4 ## Copyright (C) 2007 ##
5 ## Pascal Obry - Olivier Ramonat ##
7 ## This library is free software; you can redistribute it and/or modify ##
8 ## it under the terms of the GNU General Public License as published by ##
9 ## the Free Software Foundation; either version 2 of the License, or (at ##
10 ## your option) any later version. ##
12 ## This library is distributed in the hope that it will be useful, but ##
13 ## WITHOUT ANY WARRANTY; without even the implied warranty of ##
14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ##
15 ## General Public License for more details. ##
17 ## You should have received a copy of the GNU General Public License ##
18 ## along with this library; if not, write to the Free Software Foundation, ##
19 ## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. ##
20 ##############################################################################
26 GNAT_ROOT
=$(dir $(shell which gnatls
))..
27 INSTALL
= $(GNAT_ROOT
)
29 # Required for Windows to find the shared library
30 ifeq ($(OS
),Windows_NT
)
31 export PATH
:=$(shell pwd
)/lib
:$(PATH
)
35 $(GNAT
) make
-p
-XPRJ_BUILD
=$(MODE
) -Pmorzhol
40 $(GNAT
) check -dd
-Pmorzhol
-rules
-from
=morzhol.
check
43 $(GNAT
) make
-Ptest
/test
47 -$(GNAT
) clean -XPRJ_BUILD
=$(MODE
) -q
-Pmorzhol
48 -$(GNAT
) clean -XPRJ_BUILD
=$(MODE
) -q
-Ptest
/test
50 I_MORZ
= $(INSTALL
)/include/morzhol
51 I_LIB_MORZ
= $(INSTALL
)/lib
/morzhol
52 I_GPR
= $(INSTALL
)/lib
/gnat
53 BDIR
= ".build/$(shell echo $(MODE) | tr [[:upper:]] [[:lower:]])"
56 ifeq ("$(INSTALL)", "..")
57 $(error
"Wrong install path : INSTALL='$(INSTALL)'")
59 ifeq ("$(INSTALL)", "")
60 $(error
"Wrong install path : empty INSTALL var")
64 $(CP
) src
/*.ad
[sb
] $(I_MORZ
)
65 $(CP
) $(BDIR
)/lib
/* $(I_LIB_MORZ
)
66 $(CP
) install.gpr
$(I_GPR
)/morzhol.gpr