quantum-espresso/XClib/Makefile

56 lines
1.2 KiB
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
MODFLAGS = $(MOD_FLAG)../UtilXlib
2020-05-04 19:51:13 +08:00
2020-10-19 02:16:45 +08:00
XCL = \
dft_mod.o \
2020-09-17 23:44:25 +08:00
qe_constants.o \
qe_drivers_d_gga.o \
qe_drivers_d_lda_lsda.o \
qe_drivers_gga.o \
qe_drivers_lda_lsda.o \
qe_drivers_mgga.o \
qe_funct_corr_gga.o \
qe_funct_corr_lda_lsda.o \
qe_funct_exch_gga.o \
qe_funct_exch_lda_lsda.o \
qe_funct_mgga.o \
qe_kind.o \
2020-08-11 00:40:39 +08:00
xc_beef_interface.o \
2020-09-17 23:44:25 +08:00
xc_input_params_mod.o \
2020-10-19 02:16:45 +08:00
xc_lib.o \
xclib_error.o \
xclib_para_m.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 \
xclib_test.o
2020-05-04 19:51:13 +08:00
2020-10-19 22:52:52 +08:00
all: xc_lib.a xclib_test.x
2020-05-04 19:51:13 +08:00
2020-10-19 02:16:45 +08:00
xc_lib.a: $(XCL)
2020-05-04 19:51:13 +08:00
$(AR) $(ARFLAGS) $@ $?
$(RANLIB) $@
2020-10-19 22:52:52 +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-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
# .PHONY forces execution of a rule irrespective of the presence of an
# updated file with the same name of the rule. In this way, the script
# that generates version.f90 always runs, updating the version if you
# execute "svn update". The update_version script takes care of not
# changing the file if the svn version did not change
.PHONY: all clean
include make.depend