Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QueryR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Julien Lopez
QueryR
Commits
c1a4737b
Commit
c1a4737b
authored
10 years ago
by
Mick Jordan
Browse files
Options
Downloads
Patches
Plain Diff
prevent unnecessary rebuild of libRDerived
parent
0ce7d590
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
com.oracle.truffle.r.native/Makefile
+20
-3
20 additions, 3 deletions
com.oracle.truffle.r.native/Makefile
with
20 additions
and
3 deletions
com.oracle.truffle.r.native/Makefile
+
20
−
3
View file @
c1a4737b
...
@@ -21,12 +21,22 @@
...
@@ -21,12 +21,22 @@
# questions.
# questions.
#
#
#
# This Makefile contains the recipe for creating libRDerived. However, it is distributed
# as a "source" in the repository file to avoid users having to have gfortran installed.
# Use "make cleanlib; make force" to force a rebuild.
#
ifneq
($(shell uname), Darwin)
ifneq
($(shell uname), Darwin)
OS_DIR
=
linux
OS_DIR
=
linux
LIB_DERIVED
=
lib/
$(
OS_DIR
)
/libRDerived.so
else
else
OS_DIR
=
darwin
OS_DIR
=
darwin
LIB_DERIVED
=
lib/
$(
OS_DIR
)
/libRDerived.dylib
endif
endif
.PHONY
:
all clean cleanlib cleanobj force
SRC
=
src
SRC
=
src
OBJ
=
lib/
$(
OS_DIR
)
OBJ
=
lib/
$(
OS_DIR
)
...
@@ -36,7 +46,13 @@ F_SOURCES := $(wildcard $(SRC)/*.f)
...
@@ -36,7 +46,13 @@ F_SOURCES := $(wildcard $(SRC)/*.f)
C_OBJECTS
:=
$(
subst
$(
SRC
)
,
$(
OBJ
)
,
$(
C_SOURCES:.c
=
.o
))
C_OBJECTS
:=
$(
subst
$(
SRC
)
,
$(
OBJ
)
,
$(
C_SOURCES:.c
=
.o
))
F_OBJECTS
:=
$(
subst
$(
SRC
)
,
$(
OBJ
)
,
$(
F_SOURCES:.f
=
.o
))
F_OBJECTS
:=
$(
subst
$(
SRC
)
,
$(
OBJ
)
,
$(
F_SOURCES:.f
=
.o
))
all
:
$(C_OBJECTS) $(F_OBJECTS)
all
:
echo
$(
LIB_DERIVED
)
is up to
date
force
:
$(LIB_DERIVED)
$(LIB_DERIVED)
:
$(C_OBJECTS) $(F_OBJECTS)
ifneq
($(shell uname), Darwin)
ifneq
($(shell uname), Darwin)
gcc
-fPIC
-shared
-o
./lib/linux/libRDerived.so
$(
C_OBJECTS
)
$(
F_OBJECTS
)
gcc
-fPIC
-shared
-o
./lib/linux/libRDerived.so
$(
C_OBJECTS
)
$(
F_OBJECTS
)
else
else
...
@@ -50,9 +66,10 @@ $(OBJ)/%.o: $(SRC)/%.f
...
@@ -50,9 +66,10 @@ $(OBJ)/%.o: $(SRC)/%.f
gfortran
-fPIC
-O2
-c
$<
-o
$@
gfortran
-fPIC
-O2
-c
$<
-o
$@
clean
:
clean
lib
:
rm
-f
./lib/
$(
OS_DIR
)
/libRDerived.
*
rm
-f
./lib/
$(
OS_DIR
)
/libRDerived.
*
rm
-f
./lib/
$(
OS_DIR
)
/
*
.o
clean
:
cleanobj
cleanobj
:
cleanobj
:
rm
-f
./lib/
$(
OS_DIR
)
/
*
.o
rm
-f
./lib/
$(
OS_DIR
)
/
*
.o
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