-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
executable file
·36 lines (21 loc) · 894 Bytes
/
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
CXX = g++
CXXFLAGS = -Wno-deprecated -w -O4 -Wall
DIFF = ./sdiff
PRE = ./
MAJOR = 1
MINOR = 0
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $*.cpp
everything: fisher_waves
fisher_waves_obj = fisher_waves.o simulation.o splitting_routines.o random_no_generators.o initial_conditions.o read_write_msg.o
fisher_waves: $(fisher_waves_obj)
$(CXX) -o $@ $(fisher_waves_obj) -L. -lm -lfftw3 $(CXXFLAGS)
fisher_waves.o: fisher_waves.cpp simulation.h read_write_msg.h initial_conditions.h
simulation.o: simulation.cpp splitting_routines.h initial_conditions.h
splitting_routines.o: splitting_routines.cpp random_no_generators.h
random_no_generators.o: random_no_generators.cpp
read_write_msg.o: read_write_msg.cpp
initial_conditions.o: initial_conditions.cpp
instabilities.txx: fisher_waves
$(PRE) fisher_waves > fisher_waves.txx
$(DIFF) fisher_waves.txt fisher_waves.txx