Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
coht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
cohtdrivers
coht
Commits
0f1d93ba
Commit
0f1d93ba
authored
9 years ago
by
Juan David Gonzalez Cobas
Browse files
Options
Downloads
Patches
Plain Diff
add installation logic for CO paths
We override the /lib and /usr/local/include defaults to fit our wicked environment
parent
3bce0f36
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pickering-lxi/Makefile
+9
-3
9 additions, 3 deletions
pickering-lxi/Makefile
with
9 additions
and
3 deletions
pickering-lxi/Makefile
+
9
−
3
View file @
0f1d93ba
...
@@ -21,8 +21,6 @@ GG=g++
...
@@ -21,8 +21,6 @@ GG=g++
# General
# General
CURDIR
=
`
pwd
`
CURDIR
=
`
pwd
`
MACHINE
=
$(
shell
hostname
)
MACHINE
=
$(
shell
hostname
)
LIBDIR
=
/lib
INCSYSDIR
=
/usr/local/include
BINDIR
=
bin
BINDIR
=
bin
OBJSDIR
=
$(
BINDIR
)
/objects
OBJSDIR
=
$(
BINDIR
)
/objects
DOCDIR
=
Docs
DOCDIR
=
Docs
...
@@ -30,6 +28,11 @@ INCOPT=-I./src/Picmlx -I./src/Piplx -I./src/Pipslx -I./src/Pi743lx
...
@@ -30,6 +28,11 @@ INCOPT=-I./src/Picmlx -I./src/Piplx -I./src/Pipslx -I./src/Pi743lx
LINKOPTS
=
-lpthread
-ldl
LINKOPTS
=
-lpthread
-ldl
CFLAGS_MODULES_DEBUG
=
CFLAGS_MODULES_DEBUG
=
# standard deployment paths
LIBROOT
?=
/acc/local/
$(
CPU
)
/drv/pickering-lxi/
$(
DISTRO_VERSION
)
LIBDIR
?=
$(
LIBROOT
)
/lib
INCSYSDIR
?=
$(
LIBROOT
)
/include/pickering-lxi
# Picmlx - Communication module
# Picmlx - Communication module
PICMLX_VERSION
=
$(
shell
grep
"
\#
define *PICMLX_MODULE_VERSION"
src/Picmlx/Picmlx.cpp |
sed
's/\r$$//'
\
PICMLX_VERSION
=
$(
shell
grep
"
\#
define *PICMLX_MODULE_VERSION"
src/Picmlx/Picmlx.cpp |
sed
's/\r$$//'
\
|
sed
's/[ \t]*[ \t]/ /g'
|
cut
-f3
-d
' '
\
|
sed
's/[ \t]*[ \t]/ /g'
|
cut
-f3
-d
' '
\
...
@@ -100,7 +103,10 @@ setup:
...
@@ -100,7 +103,10 @@ setup:
@
if
test
!
-d
$(
BINDIR
)
;
then
mkdir
$(
BINDIR
)
;
fi
@
if
test
!
-d
$(
BINDIR
)
;
then
mkdir
$(
BINDIR
)
;
fi
@
if
test
!
-d
$(
OBJSDIR
)
;
then
mkdir
$(
OBJSDIR
)
;
fi
@
if
test
!
-d
$(
OBJSDIR
)
;
then
mkdir
$(
OBJSDIR
)
;
fi
install
:
$(LIBDIR) $(INCSYSDIR)
:
mkdir
-p
$@
install
:
$(LIBDIR) $(INCSYSDIR)
cp
$(
BINDIR
)
/lib
$(
PICMLX
)
.so.
$(
PICMLX_VERSION
)
$(
LIBDIR
)
cp
$(
BINDIR
)
/lib
$(
PICMLX
)
.so.
$(
PICMLX_VERSION
)
$(
LIBDIR
)
ln
-s
$(
LIBDIR
)
/lib
$(
PICMLX
)
.so.
$(
PICMLX_VERSION
)
$(
LIBDIR
)
/lib
$(
PICMLX
)
.so
ln
-s
$(
LIBDIR
)
/lib
$(
PICMLX
)
.so.
$(
PICMLX_VERSION
)
$(
LIBDIR
)
/lib
$(
PICMLX
)
.so
cp
$(
BINDIR
)
/lib
$(
PIPLX
)
.so.
$(
PIPLX_VERSION
)
$(
LIBDIR
)
cp
$(
BINDIR
)
/lib
$(
PIPLX
)
.so.
$(
PIPLX_VERSION
)
$(
LIBDIR
)
...
...
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