-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (16 loc) · 803 Bytes
/
Makefile
File metadata and controls
21 lines (16 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SRC_DIR = src
INCLUDE_DIR = include
INCLUDE_FILENAMES = grampm.hpp grampm_constructors.ipp grampm_getset.ipp grampm_grid.ipp grampm_integrators.hpp \
grampm_kernels.hpp grampm_pair.ipp grampm_particle.ipp grampm_particlesystem.ipp \
grampm_stress_update_functions.hpp grampm_utility.ipp
INCLUDE_FILEPATHS = $(addprefix $(INCLUDE_DIR)/, $(INCLUDE_FILENAMES))
EOS_SRC_FILENAME = main-eos.cpp
DP_SRC_FILENAME = main-dp.cpp
EOS_SRC_FILEPATH = $(addprefix $(SRC_DIR)/, $(EOS_SRC_FILENAME))
DP_SRC_FILEPATH = $(addprefix $(SRC_DIR)/, $(DP_SRC_FILENAME))
CXXFLAGS := $(CXXFLAGS)
CXX := $(if $(CXX),$(CXX),g++)
mpm-dp.x: $(DP_SRC_FILEPATH) $(INCLUDE_FILEPATHS)
$(CXX) -o $@ $< -I$(INCLUDE_DIR) $(CXXFLAGS)
mpm-eos.x: $(EOS_SRC_FILEPATH) $(INCLUDE_FILEPATHS)
$(CXX) -o $@ $< -I$(INCLUDE_DIR) $(CXXFLAGS)