From 3dfe552131ed21d516263dae5efd89de29b17700 Mon Sep 17 00:00:00 2001
From: Björn Persson
If your project file builds a library, then use a subdirectory of Comfignat.Stage_Includedir for Library_Src_Dir, Comfignat.Stage_Libdir for Library_Dir, and a - subdirectory of Comfignat.Stage_Libdir for + subdirectory of Comfignat.Stage_Alidir for Library_ALI_Dir.
Write a makefile that includes comfignat.mk. The makefile shall set the variable build_GPRs to the filename of the @@ -187,7 +187,7 @@ library project Build_Example is for Object_Dir use Comfignat.Objdir; for Library_Src_Dir use Comfignat.Stage_Includedir & "/example"; for Library_Dir use Comfignat.Stage_Libdir; - for Library_ALI_Dir use Comfignat.Stage_Libdir & "/example"; + for Library_ALI_Dir use Comfignat.Stage_Alidir & "/example"; end Build_Example;
example.gpr.gp
Other architecture-specific files shall usually be placed under a -separate subdirectory of stage_libdir. (It may be the same +separate subdirectory of stage_libdir. (It will be the same subdirectory that ALI files are placed in when alidir = libdir.) Programs shall look for them under Comfignat.Libdir.
This directories project belongs in a multiarch operating system where libraries are kept in either /usr/lib or /usr/lib64 depending on which architecture they are compiled for. The directories project -sets Libdir to the right directory for the target architecture based +sets Libdir and Alidir +to the right directory for the target architecture based on an environment variable. A library project that uses this directories project will therefore automatically adapt to the current target architecture, so that 32-bit and 64-bit instances of the library can be installed in parallel -- cgit v1.2.3