-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
20 lines (14 loc) · 1.87 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
release:
g++ -ggdb3 -std=c++11 src/main.cpp src/system.cpp src/dump.cpp src/box.cpp src/particle.cpp src/io.cpp src/init_position.cpp src/thermo.cpp src/distance_manager.cpp src/boundary/*.cpp src/moves/*.cpp src/sampler/*.cpp src/forcefield/*.cpp src/rng/*.cpp src/constraint/*.cpp -I src/ -I src/boundary -I src/sampler -I src/moves -I src/forcefield -I src/rng -I src/thermo -I src/constraint -I include -o main.out -O3
python:
g++ -ggdb3 -std=c++11 python_wrapper/wrap.cpp src/main.cpp src/system.cpp src/dump.cpp src/box.cpp src/particle.cpp src/io.cpp src/init_position.cpp src/thermo.cpp src/distance_manager.cpp src/boundary/*.cpp src/moves/*.cpp src/sampler/*.cpp src/forcefield/*.cpp src/rng/*.cpp src/constraint/*.cpp -I src/ -I src/boundary -I src/sampler -I src/moves -I src/forcefield -I src/rng -I src/thermo -I src/constraint -I include -I include/pybind11 -o main.out -O3
parser:
g++ -std=c++11 src/main_parser.cpp src/system.cpp src/parser.cpp src/particle.cpp src/dump.cpp src/box.cpp src/io.cpp src/init_position.cpp src/thermo.cpp src/boundary/*.cpp src/moves/*.cpp src/sampler/*.cpp src/forcefield/*.cpp src/rng/*.cpp src/constraint/* -I src -I src/boundary -I src/sampler -I src/moves -I src/forcefield -I src/rng -I src/thermo -o avbmc -O3
debug:
g++ -std=c++11 -Wall -Wextra -ggdb3 src/main.cpp src/system.cpp src/dump.cpp src/box.cpp src/particle.cpp src/io.cpp src/init_position.cpp src/thermo.cpp src/distance_manager.cpp src/boundary/*.cpp src/moves/*.cpp src/sampler/*.cpp src/forcefield/*.cpp src/rng/*.cpp src/constraint/*.cpp -I src/ -I src/boundary -I src/sampler -I src/moves -I src/forcefield -I src/rng -I src/thermo -I src/constraint -I include -o main.out -O3
cppcheck:
cppcheck --enable=all src -isrc/parser.cpp
run:
./main.out
valgrind:
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --log-file=valgrind-out.txt ./main.out