-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
49 lines (32 loc) · 1.27 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
COMPILER = g++
OFLAG = -O3
FLAGS = -m64 -g -fopenmp $(OFLAG) -I $(FFTW__HOME)/include -I$(EIGEN__HOME)/include
LINKS= -L$(FFTW__HOME)/lib -lfftw3l_threads -lfftw3l -lfftw3l_omp
do: fclean dirmake oclean compile
xcmake : do
compile: gabe
gabe: g2header.h g2parameters.h g2model.o g2functions.o g2spectra.o g2output.o g2main.o g2init.o
$(COMPILER) $(FLAGS) g2model.o g2functions.o g2spectra.o g2output.o g2init.o g2main.o $(LINKS) -o gabe
clean : fclean oclean
g2main.o: g2header.h g2parameters.h g2main.cpp
$(COMPILER) -c $(FLAGS) g2main.cpp
g2spectra.o: g2header.h g2parameters.h g2functions.cpp g2spectra.cpp
$(COMPILER) -c $(FLAGS) g2spectra.cpp
g2model.o: g2header.h g2parameters.h g2model.cpp g2functions.cpp
$(COMPILER) -c $(FLAGS) g2model.cpp
g2functions.o: g2header.h g2parameters.h g2functions.cpp
$(COMPILER) -c $(FLAGS) g2functions.cpp
g2output.o: g2header.h g2parameters.h g2output.cpp
$(COMPILER) -c $(FLAGS) g2output.cpp
g2init.o: g2header.h g2parameters.h g2init.cpp
$(COMPILER) -c $(FLAGS) g2init.cpp
oclean:
rm -f *.o
fclean:
# rm -r gabe2_0.dSYM
rm -f gabe2_0 *.dat *.txt
rm -f ./slices/*.dat
dirmake:
@ if test -d slices; then echo directory "'slices'" exists; else mkdir slices; echo made directory "'slices'"; fi
run: clean compile
./gabe