[LORENE] New Makefiles and local_settings in Lorene directory

Jerome Novak Jerome.Novak at obspm.fr
Mon Sep 11 15:22:51 CEST 2006

Dear all,

I have just committed important changes in the way Lorene is compiled. 
These deal with the generation of dependency files, which was done until 
now using the 'makedepend' command. It is better to use, when possible, 
the C preprocessor, coming with the C++ compiler; together with some 
option (usually '-M'). In order to do so, I have changed almost all 
Makefiles in the Lorene directory to be able to tune the makdepend 
command. So, if you do any update please:

_ use, from now on the GNU make tool : this is usually the default on 
linux systems when typing 'make', and exists on most other systems, 
being called 'gmake'. So, to compile Lorene, type 'gmake' or 'gmake 

_ if you find any problem after updating (you should find some), first 
uninstall Lorene, with a 'gmake uninstall', then *update your 
local_settings file* (e.g. by copying local_settings_your_system to 
local_settings) and re-install the whole library with 'gmake install'.

_ the dependency files are now stored in a directory called .deps 
(defined in the DEPDIR variable in local_settings) in each source file 
directory. There a dependency (.P) file per source file (.C): tbl.C -> 

_ you can change between the old 'makedepend' and the new (e.g. 
/usr/lib/cpp -M') through the MAKEDEPEND variable in local_settings...

Currently, it seems to be working fine under linux and SGI IRIX. I'll 
try under DEC ALPHA and IBM AIX. If you have any experience on other 
systems, please help me updating the local_settings_... files!

I hope this does not disturb you too much (if you're happy with your 
Lorene library and are afraid of possible trouble, you can keep your 
things as they are and do no update!).

Bon code,

Jerome Novak
Laboratoire de l'Univers et de ses THeories (LUTH)
Observatoire de Meudon       92195 Meudon FRANCE
tel: (33) 01 45 07 75 82     fax: (33) 01 45 07 79 71

More information about the Lorene.list mailing list