Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
scan-filesystem
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Thompson
scan-filesystem
Commits
b9e7d56f
Commit
b9e7d56f
authored
Oct 20, 2020
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve cython/Makefile
parent
56d48b0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
cython/Makefile
cython/Makefile
+13
-3
No files found.
cython/Makefile
View file @
b9e7d56f
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)
$(LIBRAR
Y_PATHS)
$(LIBRARIES)
$(RUNPATH
S)
-Wl
,--unresolved-symbols
=
ignore-all
-o
$@
g++
$^
$(CC_FLAGS)
-pthread
$(INCLUDE_PATHS)
$(LIBRAR
IE
S)
-Wl
,--unresolved-symbols
=
ignore-all
-o
$@
python
:
setup.py
-
python3 setup.py build_ext
--inplace
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment