commit 4f1b5381a7f4310dc35d6baf03d3e137f6bc1133 parent 98d76e06f5c2161d305808ac75b0ca38ef8526c3 Author: Egor Achkasov <eaachkasov@edu.hse.ru> Date: Thu, 16 Jan 2025 11:29:28 +0100 Add pybind target to Makefile Diffstat:
| M | Makefile | | | 3 | +++ |
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,2 +1,5 @@ all: gcc -g -O0 -Wno-builtin-declaration-mismatch compute_paths.c test.c -lm -o test + +py: + g++ -g -I/usr/include/python3.11 -I/home/hi/proj/hermespy/env/lib/python3.11/site-packages/pybind11/include -O3 -Wall -Wno-uninitialized -shared -std=c++17 -fPIC compute_paths.c compute_paths_pybind11.cpp -o rt$(python3.11-config --extension-suffix)