| 1 |
# Makefile for simple |
| 2 |
|
| 3 |
include ../../make.inc |
| 4 |
LIBMIN = ../minpack/minpacklib.a |
| 5 |
|
| 6 |
# location of needed modules |
| 7 |
MODFLAGS= $(BASEMOD_FLAGS) \ |
| 8 |
$(MOD_FLAG)../../PW/src $(MOD_FLAG)../pw4gww $(MOD_FLAG)../gww |
| 9 |
|
| 10 |
SIMPLEOBJS = \ |
| 11 |
stop_pp.o \ |
| 12 |
read_export.o \ |
| 13 |
openfile_simple.o \ |
| 14 |
input_simple.o \ |
| 15 |
wfc_basis.o \ |
| 16 |
product_basis.o \ |
| 17 |
v_product.o \ |
| 18 |
epe.o \ |
| 19 |
gk_sort_limit.o \ |
| 20 |
khamiltonian.o \ |
| 21 |
init_us_2_max.o \ |
| 22 |
commutator.o |
| 23 |
|
| 24 |
|
| 25 |
QEMODS = ../../Modules/libqemod.a ../../FFTXlib/libqefft.a \ |
| 26 |
../../upflib/libupf.a ../../KS_Solvers/libks_solvers.a \ |
| 27 |
../../LAXlib/libqela.a ../../UtilXlib/libutil.a \ |
| 28 |
../../dft-d3/libdftd3qe.a |
| 29 |
# dft-d3 required by xlf for obscure reasons |
| 30 |
|
| 31 |
PWOBJS = ../../PW/src/libpw.a |
| 32 |
GWWOBJ = ../gww/libgww.a |
| 33 |
|
| 34 |
TLDEPS= pwlibs gwwlib |
| 35 |
|
| 36 |
all : tldeps simple.x |
| 37 |
|
| 38 |
simple.x : simple.o libsimple.a $(SIMPLEOBJS) $(PWOBJS) $(QEMODS) $(GWWOBJ) |
| 39 |
$(LD) $(LDFLAGS) -o $@ \ |
| 40 |
simple.o libsimple.a $(PWOBJS) $(GWWOBJ) $(QEMODS) $(LIBOBJS) $(QELIBS) $(LIBMIN) |
| 41 |
- ( cd ../../bin ; ln -fs ../GWW/simple/$@ . ) |
| 42 |
|
| 43 |
tldeps : |
| 44 |
if test -n "$(TLDEPS)" ; then ( cd ../.. ; $(MAKE) $(TLDEPS) || exit 1 ) ; fi |
| 45 |
|
| 46 |
|
| 47 |
libsimple.a : $(SIMPLEOBJS) |
| 48 |
$(AR) $(ARFLAGS) $@ $? |
| 49 |
$(RANLIB) $@ |
| 50 |
|
| 51 |
clean : |
| 52 |
- /bin/rm -f *.x *.o *~ *.F90 *.d *.mod *.i *.L libsimple.a |
| 53 |
|
| 54 |
include make.depend |
| 55 |
# DO NOT DELETE |
| 56 |
|