quantum-espresso/XClib/Makefile

53 lines
938 B
Makefile
Raw Normal View History

2020-05-04 19:51:13 +08:00
# Makefile for XClib
include ../make.inc
2020-10-19 02:16:45 +08:00
XCL = \
2020-11-16 22:17:07 +08:00
xclib_para_m.o \
xclib_error.o \
qe_kind.o \
2020-09-17 23:44:25 +08:00
qe_constants.o \
2020-11-16 22:17:07 +08:00
xc_input_params_mod.o \
dft_mod.o \
2020-09-17 23:44:25 +08:00
qe_funct_corr_lda_lsda.o \
qe_funct_exch_lda_lsda.o \
2020-11-16 22:17:07 +08:00
qe_funct_corr_gga.o \
qe_funct_exch_gga.o \
2020-09-17 23:44:25 +08:00
qe_funct_mgga.o \
2020-08-11 00:40:39 +08:00
xc_beef_interface.o \
2020-11-16 22:17:07 +08:00
qe_drivers_lda_lsda.o \
qe_drivers_d_lda_lsda.o \
qe_drivers_gga.o \
qe_drivers_d_gga.o \
qe_drivers_mgga.o \
2020-09-17 23:44:25 +08:00
xc_wrapper_d_gga.o \
xc_wrapper_d_lda_lsda.o \
xc_wrapper_gga.o \
xc_wrapper_lda_lsda.o \
2020-10-19 22:52:52 +08:00
xc_wrapper_mgga.o \
2021-01-14 23:01:58 +08:00
xc_lib.o
2020-05-04 19:51:13 +08:00
BEEF = \
pbecor.o \
beefun.o
2021-01-20 20:36:43 +08:00
all: xc_lib.a
2020-05-04 19:51:13 +08:00
xc_lib.a: $(XCL) $(BEEF)
2020-05-04 19:51:13 +08:00
$(AR) $(ARFLAGS) $@ $?
$(RANLIB) $@
2020-12-11 01:48:51 +08:00
xclib_test.x : xclib_test.o xc_lib.a
$(LD) $(LD_LIBS) $(LDFLAGS) $(DFLAGS) -o $@ \
2021-01-14 23:01:58 +08:00
xclib_test.o xc_lib.a $(BLAS_LIBS) $(LD_LIBS) $(LIBXC_LIBS)
2020-12-11 01:48:51 +08:00
- ( cd ../bin ; ln -fs ../XClib/$@ . )
2020-10-19 22:52:52 +08:00
2021-01-20 20:36:43 +08:00
test : xclib_test.x
2020-05-04 19:51:13 +08:00
clean :
- /bin/rm -f *.o *.a *.d *.i *~ *_tmp.f90 *.mod *.L *.x
2020-05-04 19:51:13 +08:00
2020-11-16 22:17:07 +08:00
include make.depend
# DO NOT DELETE