Makefile 1.35 KB
Newer Older
Marco Govoni's avatar
Marco Govoni committed
1
2
3
4
5
6
7
# Makefile for IO_kernel

include ../../make.inc

# location of needed modules
MODFLAGS= $(MOD_FLAG)../../iotk/src $(MOD_FLAG)../../Modules $(MOD_FLAG)../../LAXlib \
          $(MOD_FLAG)../../FFTXlib $(MOD_FLAG)../../PW/src \
8
          $(MOD_FLAG)../Libraries/Forpy \
Marco Govoni's avatar
Marco Govoni committed
9
          $(MOD_FLAG)../Libraries/Json \
Govoni's avatar
Govoni committed
10
          $(MOD_FLAG)../Libraries/Base64 \
Marco Govoni's avatar
Marco Govoni committed
11
12
13
14
15
16
17
18
19
20
21
22
          $(MOD_FLAG)../Modules \
          $(MOD_FLAG)../Tools \
          $(MOD_FLAG)../FFT_kernel \
          $(MOD_FLAG)../Para_kernel \
          $(MOD_FLAG).
IFLAGS=


IO_KERNEL_OBJS = \
mpiio.o \
my_mkdir.o \
cubefile.o \
Marco Govoni's avatar
Marco Govoni committed
23
function3d.o \
Marco Govoni's avatar
Marco Govoni committed
24
25
pdep_io.o \
pdep_db.o \
Govoni's avatar
Govoni committed
26
wfreq_db.o \
Marco Govoni's avatar
Marco Govoni committed
27
28
29
30
31
mod_west_io.o \
wfreq_io.o \
wfreq_restart.o  

PWOBJS = ../../PW/src/libpw.a
32
QEMODS = ../../Modules/libqemod.a ../../FFTXlib/libqefft.a ../../LAXlib/libqela.a ../Libraries/Forpy/libforpy.a ../Libraries/Json/libjson.a ../Libraries/Base64/libbase64.a
Marco Govoni's avatar
Marco Govoni committed
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56

TLDEPS= bindir mods libs pw

all : title tldeps lib_io_kernel.a

tldeps:
	test -n "$(TLDEPS)" && ( cd ../.. ; $(MAKE) $(MFLAGS) $(TLDEPS) || exit 1) || :

lib_io_kernel.a : $(IO_KERNEL_OBJS)
	$(AR) $(ARFLAGS) $@ $?
	$(RANLIB) $@

clean :
	- /bin/rm -f *.x *.o *.a *~ *_tmp.f90 *.d *.mod *.i *.L
	- /bin/rm -f lib_io_kernel.a

title :
	@echo "                  "
	@echo "##################"
	@echo "### IO_kernel ####"
	@echo "##################"
	@echo "                  "

include make.depend