Makefile 4.21 KB
Newer Older
1
2
3
4
5
6
7
8
SHELL = /bin/sh

# ============================================================================
# ===== flags and directories (to be modified by the user) ===================
# ============================================================================

USE_PARALLEL_AMDIS = 0      # 1 if AMDiS was compiled with parallel support, 0 otherwise
USE_OPENMP = 0              # 1 if AMDiS was compiled with OpenMP support, 0 otherwise
9
USE_UMFPACK = 1             # 1 if AMDiS was compiled with UMFPACK library, 0 otherwise
10
USE_MKL = 0                 # 1 if AMDiS was compiled with Intel MKL library, 0 otherwise
11
USE_BOOST = 0               # 1 if AMDiS was compiled with Boost support, 0 otherwise
12
13
14
15
USE_SERVER =                # mars, deimos or themisto. If no special server blank
USE_COMPILER = gcc          # gcc  or icc
DEBUG = 0

16
AMDIS_DIR = ../AMDiS
17
MPI_DIR =                   # on mars, deimos or themisto, leave this field blank
18

19
20
#==== standard definitions and rules to compile AMDiS user programs ==========
include $(AMDIS_DIR)/other/include/Makefile_AMDiS.mk
21
22
23
24
25

# ============================================================================
# ===== user programs ========================================================
# ============================================================================

26
PROGRAMS = ellipt heat vecellipt vecheat sphere ball parametric torus bunny
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127

VPATH = .:./src:/solhome/vey/sourcen/currentcvs/AMDiS/src

# ===== ellipt ============================================================

ELLIPT_OFILES = ellipt.o

ellipt: $(ELLIPT_OFILES)
	$(LINK) $(CPPFLAGS) -o ellipt $(ELLIPT_OFILES) $(LIBS)

# ===== heat ============================================================

HEAT_OFILES = heat.o

heat: 	$(HEAT_OFILES)
	$(LINK) $(CPPFLAGS) $(LDFLAGS) -o heat $(HEAT_OFILES) $(LIBS)

# ===== vecellipt ============================================================

VECELLIPT_OFILES = vecellipt.o

vecellipt: $(VECELLIPT_OFILES)
	$(LINK) $(CPPFLAGS) $(LDFLAGS) -o vecellipt $(VECELLIPT_OFILES) $(LIBS)

# ===== vecheat ============================================================

VECHEAT_OFILES = vecheat.o

vecheat: $(VECHEAT_OFILES)
	$(LINK) $(CPPFLAGS) $(LDFLAGS) -o vecheat $(VECHEAT_OFILES)  $(LIBS)

# ===== sphere ============================================================

SPHERE_OFILES = sphere.o

sphere: $(SPHERE_OFILES)
	$(LINK) $(CPPFLAGS) $(LDFLAGS) -o sphere $(SPHERE_OFILES) $(LIBS)

# ===== bunny ============================================================

BUNNY_OFILES = bunny.o

bunny: $(BUNNY_OFILES)
	$(LINK) $(CPPFLAGS) $(LDFLAGS) -o bunny $(BUNNY_OFILES) $(LIBS)

# ===== torus ============================================================

TORUS_OFILES = torus.o

torus: $(TORUS_OFILES)
	$(LINK) $(CPPFLAGS) $(LDFLAGS) -o torus $(TORUS_OFILES) $(AMDIS_LIB) $(LIBS)

# ===== ball ============================================================

BALL_OFILES = ball.o

ball: $(BALL_OFILES)
	$(LINK) $(CPPFLAGS) $(LDFLAGS) -o ball $(BALL_OFILES) $(LIBS)

# ===== parametric ============================================================

PARAMETRIC_OFILES = parametric.o

parametric: $(PARAMETRIC_OFILES)
	$(LINK) $(CPPFLAGS) $(LDFLAGS) -o parametric $(PARAMETRIC_OFILES) $(LIBS)

# ===== periodic ============================================================

PERIODIC_OFILES = periodic.o

periodic: $(PERIODIC_OFILES)
	$(LINK) $(CPPFLAGS) $(LDFLAGS) -o periodic $(INCLUDES) $(PERIODIC_OFILES) $(LIBS)

# ===== parallelellipt =======================================================

PARALLELELLIPT_OFILES = parallelellipt.o

parallelellipt: $(PARALLELELLIPT_OFILES)
	$(LINK) $(CPPFLAGS) -o parallelellipt $(PARALLELELLIPT_OFILES) $(LIBS) $(PARMETIS_LIB)

# ===== parallelheat =======================================================

PARALLELHEAT_OFILES = parallelheat.o

parallelheat: $(PARALLELHEAT_OFILES)
	$(LINK) $(CPPFLAGS) -o parallelheat $(PARALLELHEAT_OFILES) $(LIBS) $(PARMETIS_LIB)

# ===== couple ============================================================

COUPLE_OFILES = couple.o

couple: $(COUPLE_OFILES)
	$(LINK) $(CPPFLAGS) -o couple $(COUPLE_OFILES) $(LIBS)

# ===== neumann ============================================================

NEUMANN_OFILES = neumann.o

neumann: $(NEUMANN_OFILES)
	$(LINK) $(CPPFLAGS) -o neumann $(NEUMANN_OFILES) $(LIBS)