-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
50 lines (32 loc) · 1.16 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#default settings for ifort
F90C = mpif90
#F90C = ifort
healpix = $(HEALPIX)
LAPACKL = -mkl=sequential -lmpi -lhealpix -openmp
#remove -xHost if cluster is not homogeneous
#add -DHEALPIXI4B if using older healpix and get errors about arguments not matching
FFLAGS = -O3 -xHost -ip -fpp -error-limit 500 -DMPIPIX -DMPI -heap-arrays
#cfitsio = /usr/local/Cluster-Apps/cfitsio/intel/3.300
cfitsio ?= $(CFITSIO)
F90FLAGS = $(FFLAGS) -I$(INCLUDE) -I$(healpix)/include -L$(cfitsio)/lib -L$(healpix)/lib $(LAPACKL) -lcfitsio
OBJFILES= toms760.o inifile.o utils.o spin_alm_tools.o \
HealpixObj.o HealpixVis.o
LENSPIX = $(OBJFILES) SimLens.o
default: simlens
all: simlens recon
spin_alm_tools.o: utils.o toms760.o
HealpixObj.o: spin_alm_tools.o
HealpixVis.o: HealpixObj.o
SimLens.o: HealpixVis.o inifile.o
.f.o:
f77 $(F90FLAGS) -c $<
%.o: %.f90
$(F90C) $(F90FLAGS) -c $*.f90
%.o: %.F90
$(F90C) $(F90FLAGS) -c $*.F90
simlens: $(LENSPIX)
$(F90C) -o simlens $(LENSPIX) $(F90FLAGS) $(LINKFLAGS)
recon: $(OBJFILES) LensReconExample.o
$(F90C) -o recon $(OBJFILES) LensReconExample.o $(F90FLAGS) $(LINKFLAGS)
clean:
rm -f *.o* *.e* *.mod *.d *.pc *.obj core* *.il