forked from Treecodes/stokes-treecode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (26 loc) · 969 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
35
36
37
38
39
40
OFILES = 3D_RegStokes_case_1.o
TARGET = 3D_RegStokes_case_1.exe
OFILESA = 3D_RegStokes_case_2.o
TARGETA = 3D_RegStokes_case_2.exe
OFILESB = 3D_SingStokes_Taylor_case_1.o
TARGETB = 3D_SingStokes_Taylor_case_1.exe
OFILESC = 3D_SingStokes_Taylor_case_2.o
TARGETC = 3D_SingStokes_Taylor_case_2.exe
CXX = icpc
CXXFLAGS = -O2
all: $(TARGET) $(TARGETA) $(TARGETB) $(TARGETC)
$(TARGET): $(OFILES)
$(CXX) $(CXXFLAGS) $(OFILES) -o $@ -lm
$(TARGETA): $(OFILESA)
$(CXX) $(CXXFLAGS) $(OFILESA) -o $@ -lm
$(TARGETB): $(OFILESB)
$(CXX) $(CXXFLAGS) $(OFILESB) -o $@ -lm
$(TARGETC): $(OFILESC)
$(CXX) $(CXXFLAGS) $(OFILESC) -o $@ -lm
clean:
rm -rf $(OFILES) $(TARGET) $(OFILESA) $(TARGETA)
rm -rf $(OFILESB) $(TARGETB) $(OFILESC) $(TARGETC)
3D_RegStokes_case_1.o : 3D_RegStokes_case_1.cpp
3D_RegStokes_case_2.o : 3D_RegStokes_case_2.cpp
3D_SingStokes_Taylor_case_1.o : 3D_SingStokes_Taylor_case_1.cpp
3D_SingStokes_Taylor_case_2.o : 3D_SingStokes_Taylor_case_2.cpp