Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libinterpolator
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs
lib
libinterpolator
Commits
086c85a2
Commit
086c85a2
authored
7 months ago
by
Claudio Scafuri
Browse files
Options
Downloads
Patches
Plain Diff
installl locally for testing, c++ 17
parent
c5b7245b
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
Makefile
+21
-3
21 additions, 3 deletions
Makefile
with
21 additions
and
3 deletions
Makefile
+
21
−
3
View file @
086c85a2
...
...
@@ -36,12 +36,12 @@
CXX
=
g++
CC
=
$(
CXX
)
LD
=
$(
CXX
)
#
DEBUG = -g
DEBUG
=
-g
gdb3
RANLIB
=
ranlib
OPTIM
=
-O2
#
OPTIM = -O2
INCLUDE
=
-I
.
CXXFLAGS
+=
-std
=
c++1
1
-fPIC
-D_REENTRANT
$(
DEBUG
)
$(
OPTIM
)
$(
WARN
)
$(
INCLUDE
)
CXXFLAGS
+=
-std
=
c++1
7
-fPIC
-D_REENTRANT
$(
DEBUG
)
$(
OPTIM
)
$(
WARN
)
$(
INCLUDE
)
CFLAGS
=
$(
CXXFLAGS
)
PROJECTHOME
=
.
##############################################
...
...
@@ -72,6 +72,15 @@ PREFIX = /runtime
# installation directories
DESTDIRLIB
=
$(
PREFIX
)
/lib
DESTDIRHEADERS
=
$(
PREFIX
)
/include
#for testintin and local development
LOCALPREFIX
=
$(
HOME
)
/runtime
##########################
# installation directories
LOCALDESTDIRLIB
=
$(
LOCALPREFIX
)
/lib
LOCALDESTDIRHEADERS
=
$(
LOCALPREFIX
)
/include
##########################
# header files to be installed for distribution
INSTHEADERS
=
periodicspline.h spline.h multipolynomial.h interpolatingpolynomial.h interpolator.h
################################################
...
...
@@ -161,6 +170,15 @@ distclean: clean docclean
rm
-f
$(
PROJECTHOME
)
/lib/
*
.a
$(
PROJECTHOME
)
/lib/
*
.so
*
rm
-rf
lib
localinstall
:
lib
install
-d
$(
LOCALDESTDIRLIB
)
install
-d
$(
LOCALDESTDIRHEADERS
)
install
$(
PROJECTHOME
)
/lib/
$(
DT_SHLIB
)
$(
LOCALDESTDIRLIB
)
install
$(
INSTHEADERS
)
$(
LOCALDESTDIRHEADERS
)
rm
-f
$(
LOCALDESTDIRLIB
)
/
$(
SHLIB
)
rm
-f
$(
LOCALDESTDIRLIB
)
/
$(
DT_SONAME
)
cd
$(
LOCALDESTDIRLIB
);
ln
-s
$(
DT_SHLIB
)
$(
SHLIB
);
ln
-s
$(
DT_SHLIB
)
$(
DT_SONAME
)
install
:
lib
install
-d
$(
DESTDIRLIB
)
install
-d
$(
DESTDIRHEADERS
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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