quantum-espresso/XClib/Makefile

61 lines
1.1 KiB
Makefile
Raw Normal View History

2020-05-04 19:51:13 +08:00
# Makefile for XClib
include ../make.inc
2020-11-16 22:17:07 +08:00
#MODFLAGS = $(MOD_FLAG)../UtilXlib
2020-05-04 19:51:13 +08:00
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 \
2020-11-16 22:17:07 +08:00
xc_lib.o \
2020-10-19 22:52:52 +08:00
xclib_test.o
2020-05-04 19:51:13 +08:00
BEEF = \
pbecor.o \
beefun.o
# PGI requires -c11 to understand __thread
# See https://www.pgroup.com/userforum/viewtopic.php?t=5504
ifneq (,$(findstring -D__PGI,$(DFLAGS)))
CFLAGS := -c11 $(CFLAGS)
endif
2020-11-16 22:17:07 +08:00
all: xc_lib.a
#all: xc_lib.a xclib_test.x
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-11-16 22:17:07 +08:00
#xclib_test.x : xclib_test.o xc_lib.a
# $(LD) $(LD_LIBS) $(LDFLAGS) $(DFLAGS) -o $@ \
# xclib_test.o xc_lib.a $(QELIBS)
# - ( cd ../bin ; ln -fs ../XClib/$@ . )
2020-10-19 22:52:52 +08:00
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