[Q-e-developers] LAXlib: change to the make.sys

Lorenzo Paulatto lorenzo.paulatto at impmc.upmc.fr
Mon Jan 25 10:20:13 CET 2016


You can use this syntax in make.sys
MYPATH  = $(dir $(abspath $(filter %make.sys,$(MAKEFILE_LIST))))

to have a variable that always points to the QE topdir (the place where 
make.sys is) not matter where you are.

I've been using it instead of the normal TOPDIR for a while and apparently it 
works reliably.



On Monday, January 25, 2016 09:54:27 AM Paolo Giannozzi wrote:
> By the way: there is a variable LIBOBJS in make.sys. Unfortunately it has a
> relative path ( ../) so it works (and is used) only for subdirectories of
> the main espresso/ directory (e.g. Modules/) but not in subsubdirectories
> (e.g. PW/src) where it is redefined inside each makefile.
> 
> Possible solutions: set two different variables, LIBOBJ1 and LIBOBJ2, in
> make.sys; use an absolute path in LIBOBJS. I noticed this because I would
> like to get rid of the flib/ directory.
> 
> Paolo
> 
> On Mon, Jan 25, 2016 at 9:42 AM, Carlo Cavazzoni <c.cavazzoni at cineca.it>
> 
> wrote:
> > dear all,
> > 
> > after the LAXlib update, if you want to keep your current
> > make.sys without reconfiguring, you need to remove the
> > reference to: ../flib/ptools.a
> > in the LIBOBJS varaible
> > 
> > best,
> > carlo
> > 
> > --
> > Ph.D. Carlo Cavazzoni
> > SuperComputing Applications and Innovation Department
> > CINECA - Via Magnanelli 6/3, 40033 Casalecchio di Reno (Bologna)
> > Tel: +39 051 6171411  Fax: +39 051 6132198
> > www.cineca.it
> > 
> > _______________________________________________
> > Q-e-developers mailing list
> > Q-e-developers at qe-forge.org
> > http://qe-forge.org/mailman/listinfo/q-e-developers

-- 
Dr. Lorenzo Paulatto
IdR @ IMPMC -- CNRS & Université Paris 6
+33 (0)1 44 275 084 / skype: paulatz
http://www.impmc.upmc.fr/~paulatto/
23-24/4é16 Boîte courrier 115, 
4 place Jussieu 75252 Paris Cédex 05




More information about the developers mailing list