mirror of https://gitlab.com/QEF/q-e.git
61 lines
1.4 KiB
Makefile
61 lines
1.4 KiB
Makefile
# Makefile for FFTXlib
|
|
|
|
include ../make.inc
|
|
|
|
FFTX = \
|
|
scatter_mod.o \
|
|
fft_ggen.o \
|
|
fft_fwinv.o \
|
|
fft_scalar.o \
|
|
fft_scalar.ARM_LIB.o \
|
|
fft_scalar.DFTI.o \
|
|
fft_scalar.ESSL.o \
|
|
fft_scalar.FFTW.o \
|
|
fftw_interfaces.o \
|
|
fft_scalar.FFTW3.o \
|
|
fft_scalar.SX6.o \
|
|
fft_parallel.o \
|
|
fft_interfaces.o \
|
|
fft_interpolate.o \
|
|
stick_base.o \
|
|
fft_smallbox.o \
|
|
fft_smallbox_type.o \
|
|
fft_support.o \
|
|
fft_error.o \
|
|
fft_stick.o \
|
|
fft_types.o \
|
|
tg_gather.o \
|
|
fft_helper_subroutines.o \
|
|
fft_param.o
|
|
|
|
|
|
all : libqefft.a
|
|
|
|
libqefft.a: $(FFTX)
|
|
$(AR) $(ARFLAGS) $@ $?
|
|
$(RANLIB) $@
|
|
|
|
fft_scalar.o : fft_scalar.f90 fft_scalar.FFTW3.f90 fft_scalar.FFTW.f90 fft_scalar.SX6.f90 fft_scalar.DFTI.f90 fft_scalar.ESSL.f90
|
|
|
|
|
|
fft_stick.o : fft_stick.c fftw.c fftw.h konst.h
|
|
|
|
TEST : test.o libqefft.a
|
|
$(LD) $(LDFLAGS) -o fft_test.x test.o libqefft.a $(QELIBS)
|
|
|
|
TEST0: test0.o libqefft.a
|
|
$(LD) $(LDFLAGS) -o fft_test0.x test0.o libqefft.a $(QELIBS)
|
|
|
|
clean :
|
|
- /bin/rm -f *.o *.a *.d *.i *~ *_tmp.f90 *.mod *.L
|
|
|
|
# .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
|