2009-09-18 23:22:54 +08:00
|
|
|
# Makefile for TDDFPT tools
|
|
|
|
|
|
|
|
include ../../make.sys
|
|
|
|
IFLAGS = -I../../include
|
2016-01-26 20:51:02 +08:00
|
|
|
LIBOBJS = ../../clib/clib.a ../../iotk/src/libiotk.a
|
2009-09-18 23:22:54 +08:00
|
|
|
|
|
|
|
|
|
|
|
# location of needed modules
|
2016-01-24 04:10:10 +08:00
|
|
|
MODFLAGS= $(MOD_FLAG)../../iotk/src $(MOD_FLAG)../../Modules $(MOD_FLAG)../../FFTXlib $(MOD_FLAG)../../LAXlib $(MOD_FLAG).
|
2009-09-18 23:22:54 +08:00
|
|
|
|
2016-01-24 04:10:10 +08:00
|
|
|
QEMODS = ../../Modules/libqemod.a ../../FFTXlib/libqefft.a ../../LAXlib/libqela.a
|
2011-12-15 01:33:33 +08:00
|
|
|
PWOBJS = ../../PW/src/libpw.a
|
2009-09-18 23:22:54 +08:00
|
|
|
|
2010-02-10 21:49:08 +08:00
|
|
|
TLDEPS=bindir libs pw
|
|
|
|
|
2010-12-20 20:07:11 +08:00
|
|
|
all : tldeps turbo_spectrum.x
|
2013-11-08 05:06:06 +08:00
|
|
|
|
2010-12-20 20:07:11 +08:00
|
|
|
turbo_spectrum.x : tddfpt_calculate_spectrum.o $(QEMODS)
|
2009-09-18 23:22:54 +08:00
|
|
|
$(LD) $(LDFLAGS) -o $@ \
|
2010-02-10 21:49:08 +08:00
|
|
|
tddfpt_calculate_spectrum.o $(QEMODS) $(PWOBJS) $(LIBOBJS) $(LIBS)
|
2010-02-19 17:01:05 +08:00
|
|
|
- ( cd ../../bin ; ln -fs ../TDDFPT/tools/$@ . )
|
2010-03-01 23:04:09 +08:00
|
|
|
- if [ -d ../bin ] ; then ( cd ../bin ; ln -fs ../tools/$@ . ); fi
|
2010-02-10 21:49:08 +08:00
|
|
|
|
2013-11-08 05:06:06 +08:00
|
|
|
tldeps :
|
|
|
|
if test -n "$(TLDEPS)" ; then \
|
|
|
|
( cd ../.. ; $(MAKE) $(TLDEPS) || exit 1 ) ; fi
|
2010-02-10 21:49:08 +08:00
|
|
|
|
2009-09-18 23:22:54 +08:00
|
|
|
clean :
|
2016-04-27 22:53:38 +08:00
|
|
|
rm -f ../bin/turbo_spectrum.x *.x *.o *.mod *_tmp.f90
|
2009-09-18 23:22:54 +08:00
|
|
|
|