Makefile 1.28 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 \
Marco Govoni's avatar
Marco Govoni committed
8
          $(MOD_FLAG)../Libraries/Json \
Govoni's avatar
Govoni committed
9
          $(MOD_FLAG)../Libraries/Base64 \
Marco Govoni's avatar
Marco Govoni committed
10
11
12
13
14
15
16
17
18
19
20
21
          $(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
22
function3d.o \
Marco Govoni's avatar
Marco Govoni committed
23
24
pdep_io.o \
pdep_db.o \
Govoni's avatar
Govoni committed
25
wfreq_db.o \
Marco Govoni's avatar
Marco Govoni committed
26
27
28
29
30
mod_west_io.o \
wfreq_io.o \
wfreq_restart.o  

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

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