-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
58 lines (37 loc) · 1.59 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
51
52
53
54
55
56
57
58
#!/bin/csh
#
#
#
CC = icc
COPTIONS = -O3 -xHOST -ipo -openmp -std=c99 -D_GNU_SOURCE
CFLAGS = $(COPTIONS) -I/software/libraries/netcdf/4.1.3-intel/include \
-I/software/libraries/FFTW-3.3/mvapich2-intel
LFLAGS = -L/software/libraries/netcdf/4.1.3-intel/lib -L/software/libraries/FFTW-3.3/mvapich2-intel/lib
LIBS = -lfftw3 -lfftw3_threads -lnetcdf
COMMUN = io_utils.o pml.o propagate.o src.o
OBJECTS = pve_iso_pml.o $(COMMUN)
OBJECTS2 = pve_vti_pml.o VqP1.o VqP2.o VqS.o $(COMMUN)
bin/e_cyl_iso : e_cyl_iso.o $(COMMUN)
$(CC) $(CFLAGS) $(LFLAGS) $(LIBS) e_cyl_iso.o $(COMMUN) -o bin/e_cyl_iso
bin/pve_iso_pml : $(OBJECTS)
$(CC) $(CFLAGS) $(LFLAGS) $(LIBS) $(OBJECTS) -o bin/pve_iso_pml
bin/pve_vti_pml : $(OBJECTS2)
$(CC) $(CFLAGS) $(LFLAGS) $(LIBS) $(OBJECTS2) -o bin/pve_vti_pml
bin/ve_vti_sh_pml : $(COMMUN) ve_vti_sh_pml.o
$(CC) $(CFLAGS) $(LFLAGS) $(LIBS) $(COMMUN) ve_vti_sh_pml.o -o bin/ve_vti_sh_pml
bin/ve_vti_pml : $(COMMUN) ve_vti_pml.o
$(CC) $(CFLAGS) $(LFLAGS) $(LIBS) $(COMMUN) ve_vti_pml.o -o bin/ve_vti_pml
io_utils.o : io_utils.c io_utils.h
pml.o : pml.h
propagate.o : propagate.c propagate.h
pve_iso_pml.o : io_utils.h pml.h propagate.h structs.h src.h pve_iso_pml.c
pve_vti_pml.o : io_utils.h pml.h propagate.h structs.h src.h pve_vti_pml.c V.h
src.o : src.c src.h
VqP1.o : V.h VqP1.c
VqP2.o : V.h VqP2.c
VqS.o : V.h VqS.c
ve_vti_pml.o : io_utils.h pml.h propagate.h structs.h src.h ve_vti_pml.c
ve_vti_sh_pml.o : io_utils.h pml.h propagate.h structs.h src.h ve_vti_sh_pml.c
e_cyl_iso.o : e_cyl_iso/e_cyl_iso.c io_utils.h pml.h propagate.h structs.h src.h
clean:
-rm -f *.o *~ core