Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
FMC ADC 100M 14b 4cha - Software
Commits
b9458576
Commit
b9458576
authored
Aug 05, 2015
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools: compile using new library
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
51feff08
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
Makefile
Makefile
+7
-1
Makefile
libtools/Makefile
+3
-3
No files found.
Makefile
View file @
b9458576
...
...
@@ -2,7 +2,7 @@
.PHONY
:
all clean modules install modules_install clean_all
.PHONY
:
gitmodules prereq prereq_install prereq_install_warn prereq_clean
DIRS
=
kernel tools lib libtools
DIRS
=
kernel tools
adc-
lib libtools
all clean modules install modules_install
:
gitmodules
@
if
echo
$@
|
grep
-q
install
;
then
$(MAKE)
prereq_install_warn
;
fi
...
...
@@ -25,11 +25,17 @@ gitmodules:
#
# Use the absolute path so it can be used by submodule
CURDIR
?=
$(
shell
pwd
)
FMCADC100M
?=
$(CURDIR)
export
FMCADC100M
FMC_BUS
?=
$(CURDIR)
/fmc-bus
export
FMC_BUS
ZIO
?=
$(CURDIR)
/zio
export
ZIO
ZIO_VERSION
=
$(
shell
cd
$(ZIO)
;
git describe
--always
--dirty
--long
--tags
)
export
ZIO_VERSION
SPEC_SW
?=
$(CURDIR)
/spec-sw
SUBMOD
=
$(FMC_BUS)
$(ZIO)
$(SPEC_SW)
...
...
libtools/Makefile
View file @
b9458576
...
...
@@ -5,11 +5,11 @@
DESTDIR
?=
/usr/local
LIBADC
=
../lib/
LIBADC
=
../
adc-lib/
lib/
ZIO
?=
../zio
CFLAGS
=
-Wall
-g
-ggdb
-I
$(LIBADC)
-I
$(ZIO)
/include
-I
../kernel
$(EXTRACFLAGS)
LDFLAGS
=
-
L
$(LIBADC)
-lfmcadc
-lpthread
-lrt
LDFLAGS
=
-
static
-L
$(LIBADC)
-ladc
-Wl
,-dy
-lpthread
-lrt
DEMOS
:=
fald-simple-acq fald-acq fald-trg-cfg
DEMOS
+=
fald-simple-get-conf
...
...
@@ -25,7 +25,7 @@ install:
install
-d
$(DESTDIR)
/bin
install
-D
$(DEMOS)
$(DESTDIR)
/bin
%
:
%.c $(LIBADC)/lib
fmc
adc.a
%
:
%.c $(LIBADC)/libadc.a
$(CC)
$(CFLAGS)
$^
-o
$@
$(LDFLAGS)
# make nothing for modules_install, but avoid errors
...
...
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