Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Beam Positoning Monitor - Software
Commits
a21b2d91
Commit
a21b2d91
authored
Apr 10, 2015
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libclient/Makefile: add revision info
parent
385a1e87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
Makefile
libclient/Makefile
+8
-2
No files found.
libclient/Makefile
View file @
a21b2d91
...
...
@@ -145,7 +145,10 @@ $(LIBCLIENT)_HEADERS = $($(LIBCLIENT)_OBJS_LIB:.o=.h) $($(LIBCLIENT)_CODE_HEADER
$(LIBCLIENT)
_INST_HEADERS
=
$
(
$(LIBCLIENT)
_HEADERS
)
$
(
$(LIBCLIENT)
_ACQ_HEADER_BASENAME
)
.h
# Save a git repository description
REVISION
=
$(
shell
git describe
--dirty
--always
)
GIT_REVISION
=
$(
shell
git describe
--dirty
--always
)
GIT_USER_NAME
=
$(
shell
git config
--get
user.name
)
GIT_USER_EMAIL
=
$(
shell
git config
--get
user.email
)
REVISION_NAME
=
revision
OBJ_REVISION
=
$
(
addsuffix .o,
$(REVISION_NAME)
)
...
...
@@ -178,7 +181,10 @@ all: $(TARGET_STATIC) $(TARGET_SHARED_VER) pre_inst
$(CC)
-shared
-fPIC
-Wl
,-soname,
$@
-o
$@
$^
$(LDFLAGS)
$(REVISION_NAME).o
:
$(REVISION_NAME).c
$(CC)
$(CFLAGS)
-DGIT_REVISION
=
\"
$(REVISION)
\"
-c
$<
$(CC)
$(CFLAGS)
-DGIT_REVISION
=
"
\"
$(GIT_REVISION)
\"
"
\
-DGIT_USER_NAME
=
"
\"
$(GIT_USER_NAME)
\"
"
\
-DGIT_USER_EMAIL
=
"
\"
$(GIT_USER_EMAIL)
\"
"
\
-c
$<
# Pull in dependency info for *existing* .o files and don't complain if the
# corresponding .d file is not found
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment