Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC Software Support
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Projects
FMC Software Support
Commits
413442f8
Commit
413442f8
authored
Oct 20, 2020
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bld: move lib/ to tools/lib/ like in linux repo
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
829e9728
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
13 deletions
+14
-13
Makefile
Makefile
+3
-8
Makefile
tools/Makefile
+11
-5
.gitignore
tools/lib/.gitignore
+0
-0
Makefile
tools/lib/Makefile
+0
-0
core.h
tools/lib/fmc/core.h
+0
-0
libfmc.c
tools/lib/libfmc.c
+0
-0
No files found.
Makefile
View file @
413442f8
...
...
@@ -2,13 +2,10 @@
#
# SPDX-FileCopyrightText: 2019 CERN
all
:
modules lib tools
lib
:
@
$(MAKE)
-C
lib
$@
all
:
modules tools
tools
:
@
$(MAKE)
-C
tools
$@
@
$(MAKE)
-C
tools
all
modules modules_install
:
@
$(MAKE)
-C
drivers/fmc/
$@
...
...
@@ -19,11 +16,9 @@ sources srpm:
clean
:
@
$(MAKE)
-C
distribution
$@
@
$(MAKE)
-C
drivers/fmc/
$@
@
$(MAKE)
-C
lib
$@
@
$(MAKE)
-C
tools
$@
cppcheck
:
@
$(MAKE)
-C
lib
$@
@
$(MAKE)
-C
tools
$@
.PHONY
:
sources srpm modules modules_install clean all cppcheck
.PHONY
:
sources srpm modules modules_install clean all cppcheck
tools
tools/Makefile
View file @
413442f8
...
...
@@ -9,25 +9,30 @@
DESTDIR
?=
/usr/local/
LIB
FMC
=
.
./lib/
LIB
=
./lib/
TOOLS
=
lsfmc
\
fmc-slot-eeprom
CFLAGS
=
-ggdb
-I
.
-I
$(LIB
FMC
)
-I
../kernel
-Wall
-Werror
$(EXTRACFLAGS)
CFLAGS
=
-ggdb
-I
.
-I
$(LIB)
-I
../kernel
-Wall
-Werror
$(EXTRACFLAGS)
GIT_VERSION
:=
$(
shell
git describe
--dirty
--long
--tags
)
CFLAGS
+=
-DGIT_VERSION
=
"
\"
$(GIT_VERSION)
\"
"
LDFLAGS
=
-L
$(LIB
FMC
)
LDFLAGS
=
-L
$(LIB)
LDLIBS
=
-lfmc
CPPCHECK
?=
cppcheck
all
:
$(TOOLS)
$(TOOLS)
:
$(COMMON_SRCS:.c=.o) $(LIBFMC)/libfmc.a
$(TOOLS)
:
$(COMMON_SRCS:.c=.o) $(LIB)/libfmc.a
$(LIB)/libfmc.a
:
@
$(MAKE)
-C
$(
shell
dirname
$@)
clean
:
@
$(MAKE)
-C
$(LIB)
$@
rm
-f
$(TOOLS)
install
:
...
...
@@ -35,6 +40,7 @@ install:
install
-D
$(TOOLS)
$(DESTDIR)
/bin
cppcheck
:
$(CPPCHECK)
-q
-I
.
-I
$(LIBFMC)
--suppress
=
missingIncludeSystem
--enable
=
all
*
.c
*
.h
--error-exitcode
=
1
@
$(MAKE)
-C
$(LIB)
$@
$(CPPCHECK)
-q
-I
.
-I
$(LIB)
--suppress
=
missingIncludeSystem
--enable
=
all
*
.c
*
.h
--error-exitcode
=
1
.PHONY
=
cppcheck
lib/.gitignore
→
tools/
lib/.gitignore
View file @
413442f8
File moved
lib/Makefile
→
tools/
lib/Makefile
View file @
413442f8
File moved
lib/fmc/core.h
→
tools/
lib/fmc/core.h
View file @
413442f8
File moved
lib/libfmc.c
→
tools/
lib/libfmc.c
View file @
413442f8
File moved
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