-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
59 lines (49 loc) · 1.92 KB
/
Copy pathmakefile
File metadata and controls
59 lines (49 loc) · 1.92 KB
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
-include makefile.local
# Use the MFEM install directory
MFEM_INSTALL_DIR ?= ../mfem-debug
CONFIG_MK = $(MFEM_INSTALL_DIR)/share/mfem/config.mk
MFEM_LIB_FILE = mfem_is_not_built
-include $(CONFIG_MK)
EXECUTABLES = batree
OP_SRC_FILES = EChemOperator.cpp
OP_INC_FILES = EChemOperator.hpp
EQ_SRC_FILES = SolidConcentration.cpp \
ElectrolyteConcentration.cpp \
SolidPotential.cpp \
ElectrolytePotential.cpp
EQ_INC_FILES = SolidConcentration.hpp \
ElectrolyteConcentration.hpp \
SolidPotential.hpp \
ElectrolytePotential.hpp \
Equation.hpp
CF_INC_FILES = ExchangeCurrentCoefficient.hpp \
ReactionCurrentCoefficient.hpp \
ElectrodeReactionCurrentCoefficient.hpp \
OpenCircuitPotentialCoefficient.hpp \
OverPotentialCoefficient.hpp
CL_INC_FILES = Cell.hpp \
LGM50.hpp \
Enertech.hpp \
_EnertechUnSpline.hpp \
_EnertechUpSpline.hpp
PR_SRC_FILES = settings.cpp
PR_INC_FILES = settings.hpp
SRC_FILES = $(addprefix equations/, $(EQ_SRC_FILES)) \
$(addprefix operators/, $(OP_SRC_FILES)) \
$(addprefix parameters/, $(PR_SRC_FILES)) \
batree.cpp
INC_FILES = $(addprefix equations/, $(EQ_INC_FILES)) \
$(addprefix operators/, $(OP_INC_FILES)) \
$(addprefix coefficients/, $(CF_INC_FILES)) \
$(addprefix cells/, $(CL_INC_FILES)) \
$(addprefix parameters/, $(PR_INC_FILES))
.PHONY: all clean
all: $(EXECUTABLES)
batree: $(SRC_FILES) $(INC_FILES) $(MFEM_LIB_FILE) $(CONFIG_MK)
$(MFEM_CXX) $(MFEM_FLAGS) -Wall -Wpedantic -Werror -I. $(SRC_FILES) -o $@ $(MFEM_LIBS)
# Generate an error message if the MFEM library is not built and exit
$(MFEM_LIB_FILE):
$(error The MFEM library is not built)
clean:
rm -f *.o *~ $(EXECUTABLES)
rm -rf *.dSYM *.TVD.*breakpoints