Commit b9e7d56f authored by Xavier Thompson's avatar Xavier Thompson

Improve cython/Makefile

parent 56d48b0c
ifeq (,)
INCLUDE_PATHS = -I/usr/include/python3.8
LIBRARIES = -lcrypto -lfmt
else
INCLUDE_PYTHON = -I/srv/slapgrid/slappart6/srv/runner/shared/python3/2e435adf7e2cb7d97668da52532ac7f3/include/python3.7m
OPENSSL_PATH = /srv/slapgrid/slappart6/srv/runner/shared/openssl/24bd61db512fe6e4e0d214ae77943d75
......@@ -11,11 +18,14 @@ LIBRARY_FMTLIB = -L$(FMTLIB_PATH)/lib
RUNPATH_FMTLIB = -Wl,-rpath=$(FMTLIB_PATH)/lib
INCLUDE_PATHS = $(INCLUDE_PYTHON) $(INCLUDE_OPENSSL) $(INCLUDE_FMTLIB)
LIBRARY_PATHS = $(LIBRARY_OPENSSL) $(LIBRARY_FMTLIB)
LIBRARIES = -lcrypto -lfmt
RUNPATHS = $(RUNPATH_OPENSSL) $(RUNPATH_FMTLIB)
LIBRARIES = $(LIBRARY_PATHS) -lcrypto -lfmt $(RUNPATHS)
endif
CC_FLAGS = -Wno-unused-result -Wsign-compare
CC_FLAGS = -O2 -g -Wno-unused-result -Wsign-compare
cython: main.exe
......@@ -28,7 +38,7 @@ run: main.exe
%.exe: %.cpp
@echo "[C++ Compiling $^ -> $@]"
g++ $^ $(CC_FLAGS) -pthread $(INCLUDE_PATHS) $(LIBRARY_PATHS) $(LIBRARIES) $(RUNPATHS) -Wl,--unresolved-symbols=ignore-all -o $@
g++ $^ $(CC_FLAGS) -pthread $(INCLUDE_PATHS) $(LIBRARIES) -Wl,--unresolved-symbols=ignore-all -o $@
python: setup.py
-python3 setup.py build_ext --inplace
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment