Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Prolog mlpack Library
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
Prolog mlpack Library
Commits
ea6eaccf
Commit
ea6eaccf
authored
2 years ago
by
dgelessus
Browse files
Options
Downloads
Patches
Plain Diff
Prepare building on non-Linux systems and respect SICSTUSDIR
parent
bd0a2109
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
Makefile
+3
-1
3 additions, 1 deletion
Makefile
src/common.mk
+36
-1
36 additions, 1 deletion
src/common.mk
src/helper_files/Makefile
+2
-2
2 additions, 2 deletions
src/helper_files/Makefile
src/methods/method_common.mk
+3
-3
3 additions, 3 deletions
src/methods/method_common.mk
with
44 additions
and
7 deletions
Makefile
+
3
−
1
View file @
ea6eaccf
include
src/common.mk
methods
:=
\
adaboost
\
approx_kfn
\
...
...
@@ -56,4 +58,4 @@ clean: clean_helper $(clean_methods)
.PHONY
:
test
test
:
methods
sicstus
-l
test_all.pl
--goal
"run_tests, halt ; halt(1)."
$(
sicstus
)
-l
test_all.pl
--goal
"run_tests, halt ; halt(1)."
This diff is collapsed.
Click to expand it.
src/common.mk
+
36
−
1
View file @
ea6eaccf
splfr
=
/usr/local/sicstus4.7.1/bin/splfr
# by default, the target system is the same as the compiling system
TARGET_SYSTEM
:=
$(
shell
uname
-s
)
# Under MinGW, Cygwin, MSYS2, etc. on Windows,
# uname -s has the format "<name>_NT-<version>",
# e. g. "MINGW64_NT-10.0-19044" or "CYGWIN_NT-10.0".
# To simplify checking for Windows,
# we detect this format and replace it with simply "Windows".
ifneq
($(findstring NT-,$(TARGET_SYSTEM)),)
TARGET_SYSTEM
:=
Windows
endif
ifeq
($(TARGET_SYSTEM),Windows)
lib_ext
:=
dll
foreign_ext
:=
dll
bin_suffix
:=
.exe
else
# If not Windows, assume Unix-like.
ifeq
($(TARGET_SYSTEM),Darwin)
lib_ext
:=
dylib
foreign_ext
:=
bundle
else
lib_ext
:=
so
foreign_ext
:=
so
endif
bin_suffix
:=
endif
ifdef
SICSTUSDIR
sicstus
=
$(
SICSTUSDIR
)
/bin/sicstus
$(
bin_suffix
)
splfr
=
$(
SICSTUSDIR
)
/bin/splfr
$(
bin_suffix
)
else
sicstus
:=
sicstus
splfr
:=
splfr
endif
common_splfr_flags
:=
-larmadillo
-fopenmp
-lmlpack
-lstdc
++
-cxx
--struct
This diff is collapsed.
Click to expand it.
src/helper_files/Makefile
+
2
−
2
View file @
ea6eaccf
...
...
@@ -2,7 +2,7 @@ include ../common.mk
METHOD_NAME
=
helper_tests
$(METHOD_NAME).
so
:
$(METHOD_NAME).pl $(METHOD_NAME).cpp
$(METHOD_NAME).
$(foreign_ext)
:
$(METHOD_NAME).pl $(METHOD_NAME).cpp
$(
splfr
)
$(
common_splfr_flags
)
$(
CXXFLAGS
)
$(
LDFLAGS
)
$(
METHOD_NAME
)
.pl
$(
METHOD_NAME
)
.cpp helper.cpp
$(
LDLIBS
)
clean
:
rm
$(
METHOD_NAME
)
.so
$(
RM
)
$(
METHOD_NAME
)
.bundle
$(
METHOD_NAME
)
.dll
$(
METHOD_NAME
)
.so
This diff is collapsed.
Click to expand it.
src/methods/method_common.mk
+
3
−
3
View file @
ea6eaccf
...
...
@@ -5,7 +5,7 @@
# which is one directory below this one.
include
../../common.mk
$(METHOD_NAME).
so
:
$(METHOD_NAME).pl $(METHOD_NAME).cpp
$(
splfr
)
$(
common_splfr_flags
)
$(
METHOD_NAME
)
.pl
$(
METHOD_NAME
)
.cpp ../../helper_files/helper.cpp
$(METHOD_NAME).
$(foreign_ext)
:
$(METHOD_NAME).pl $(METHOD_NAME).cpp
$(
splfr
)
$(
common_splfr_flags
)
$(
CXXFLAGS
)
$(
LDFLAGS
)
$(
METHOD_NAME
)
.pl
$(
METHOD_NAME
)
.cpp ../../helper_files/helper.cpp
$(
LDLIBS
)
clean
:
rm
$(
METHOD_NAME
)
.so
$(
RM
)
$(
METHOD_NAME
)
.bundle
$(
METHOD_NAME
)
.dll
$(
METHOD_NAME
)
.so
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment