Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EtherBone Core
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Projects
EtherBone Core
Commits
8b55e0ee
Commit
8b55e0ee
authored
11 years ago
by
Wesley W. Terpstra
Browse files
Options
Downloads
Patches
Plain Diff
api: support install to STAGING folder
parent
4e9375d1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api/Makefile
+8
-7
8 additions, 7 deletions
api/Makefile
with
8 additions
and
7 deletions
api/Makefile
+
8
−
7
View file @
8b55e0ee
# The installation prefix default to /usr/local, but can be set on the cmdline
PREFIX
?=
/usr/local
PREFIX
?=
/usr/local
STAGING
?=
#BUILD = lm32
#BUILD = win32
...
...
@@ -39,7 +40,7 @@ TRANSPORT = transport/posix-ip.c \
transport/run.c
endif
ARCHIVE
=
etherbone.a
ARCHIVE
=
lib
etherbone.a
FLAGS
:=
$(
FLAGS
)
-Wall
-O2
#FLAGS := $(FLAGS) -DEB_USE_DYNAMIC # deterministic untill table overflow (default)
...
...
@@ -76,10 +77,10 @@ SOURCES = memory/static.c \
all
:
glue/version.h $(TOOLS) $(TESTS) $(ARCHIVE) $(LIBRARY)
install
:
all
mkdir
-p
$(
PREFIX
)
/bin
$(
PREFIX
)
/include
$(
PREFIX
)
/lib
cp
-a
$(
LIBRARY
)
$(
EXTRA
)
$(
ARCHIVE
)
$(
PREFIX
)
/lib
cp
-a
etherbone.h
$(
PREFIX
)
/include
cp
-a
$(
TOOLS
)
$(
PREFIX
)
/bin
mkdir
-p
$(
STAGING
)
$(
PREFIX
)
/bin
$(
STAGING
)
$(
PREFIX
)
/include
$(
STAGING
)
$(
PREFIX
)
/lib
cp
$(
LIBRARY
)
$(
EXTRA
)
$(
ARCHIVE
)
$(
STAGING
)
$(
PREFIX
)
/lib
cp
etherbone.h
$(
STAGING
)
$(
PREFIX
)
/include
cp
$(
TOOLS
)
$(
STAGING
)
$(
PREFIX
)
/bin
glue/version.h
::
git log
-n1
--pretty
=
"format:%H"
.
>
git.version_full
...
...
@@ -90,7 +91,7 @@ glue/version.h::
if
!
test
-f
$@
||
!
diff
$@
$@
.tmp
>
/dev/null
;
then
mv
$@
.tmp
$@
;
fi
rm
-f
$@
.tmp git.version_full git.date_full git.version_short git.date_short
etherbone.a
:
$(OBJECTS)
$(ARCHIVE)
:
$(OBJECTS)
rm
-f
$@
$(
TARGET
)
ar rcs
$@
$^
$(
TARGET
)
ranlib
$@
...
...
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