Newer
Older
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Makefile
include ../Make_include
########################################################################
# define general include and system library
ALLINC = -I.
LIBS += -L$L -lgenfft -lm $(LIBSM)
#LIBS += -L$L -lgenfft -lm -lc
#OPTC = -g -Wall -fsignaling-nans -O0 -fopenmp
#OPTC += -fopenmp -Waddress
#OPTC := $(subst -O3 -ffast-math, -O1 -g ,$(OPTC))
#PGI options for compiler feedback
#OPTC += -Mprof=lines
#OPTC += -qopt-report
#LDFLAGS += -Mprof=lines
all: fdelmodc3D
PRG = fdelmodc3D
SRCC = $(PRG).c \
acoustic2.c \
acoustic4.c \
acousticSH4.c \
acoustic4_qr.c \
acoustic6.c \
viscoacoustic4.c \
elastic4.c \
elastic4dc.c \
elastic6.c \
viscoelastic4.c \
defineSource.c \
getParameters.c \
getWaveletInfo.c \
getModelInfo.c \
applySource.c \
getRecTimes.c \
getBeamTimes.c \
writeSnapTimes.c \
writeRec.c \
writeSrcRecPos.c \
decomposition.c \
fileOpen.c \
recvPar.c \
readModel.c \
sourceOnSurface.c \
getWaveletHeaders.c \
boundaries.c \
verbosepkg.c \
writesufile.c \
gaussGen.c \
spline3.c \
CMWC4096.c \
wallclock_time.c \
name_ext.c \
atopkge.c \
docpkge.c \
threadAffinity.c \
getpars.c
OBJC = $(SRCC:%.c=%.o)
$(PRG): $(OBJC) fdelmodc.h
$(CC) $(LDFLAGS) $(CFLAGS) $(OPTC) -o fdelmodc3D $(OBJC) $(LIBS)
install: fdelmodc3D
cp fdelmodc3D $B
clean:
rm -f core $(OBJC) $(OBJM) fdelmodc3D
realclean:
rm -f core $(OBJC) $(OBJM) $(PRG) $B/fdelmodc3D
print: Makefile $(SRC)
$(PRINT) $?
@touch print
count:
@wc $(SRC)
tar:
@tar cf $(PRG).tar Makefile $(SRC) && compress $(PRG).tar