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
cf82cf3c
Commit
cf82cf3c
authored
May 12, 2014
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makefile: use EXTRACFLAGS and CROSS_COMPILE
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
8e7c378c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
12 deletions
+13
-12
Makefile
lib/Makefile
+3
-2
Makefile
libtools/Makefile
+1
-1
Makefile
tools/Makefile
+9
-9
No files found.
lib/Makefile
View file @
cf82cf3c
...
...
@@ -9,10 +9,11 @@ LOBJ += config-zio.o
LOBJ
+=
buffer-zio.o
LOBJ
+=
lib.o
LOBJ
+=
fmc-adc-100m14b4cha.o
CFLAGS
=
-Wall
-ggdb
-O2
-I
../kernel
-I
$(ZIO)
/include
CFLAGS
=
-Wall
-ggdb
-O2
-I
../kernel
-I
$(ZIO)
/include
$(EXTRACFLAGS)
LDFLAGS
=
-L
.
-lfmcadc
CC
?=
$(CROSS_COMPILE)
gcc
modules all
:
$(LIB)
...
...
libtools/Makefile
View file @
cf82cf3c
...
...
@@ -3,7 +3,7 @@ DESTDIR ?= /usr/local
LIBADC
=
../lib/
ZIO
?=
../zio
CFLAGS
=
-Wall
-g
-ggdb
-I
$(LIBADC)
-I
$(ZIO)
/include
CFLAGS
=
-Wall
-g
-ggdb
-I
$(LIBADC)
-I
$(ZIO)
/include
$(EXTRACFLAGS)
LDFLAGS
=
-L
$(LIBADC)
-lfmcadc
-lpthread
DEMOS
:=
fald-simple-acq fald-acq fald-trg-cfg
...
...
tools/Makefile
View file @
cf82cf3c
...
...
@@ -2,27 +2,27 @@
M
=
$(
shell
/bin/pwd
)
/../kernel
DESTDIR
?=
/usr/local
HOST_EXTRACFLAGS
+=
-I
$(M)
-I
$(ZIO)
/include
-Wno-trigraphs
-Wall
-ggdb
CFLAGS
+=
-I
$(M)
-I
$(ZIO)
/include
-Wno-trigraphs
-Wall
-ggdb
-O2
$(EXTRACFLAGS)
HOSTCC
?=
gcc
CC
?=
$(CROSS_COMPILE)
gcc
hostprogs-y
:=
fau-trg-config
hostprogs-y
+=
fau-acq-time
hostprogs-y
+=
parport-burst
progs
:=
fau-trg-config
progs
+=
fau-acq-time
progs
+=
parport-burst
# we are not in the kernel, so we need to piggy-back on "make modules"
all modules
:
$(
hostprogs-y
)
all modules
:
$(
progs
)
clean
:
rm
-f
$
(
hostprogs-y
)
*
.o
*
~
rm
-f
$(
progs
)
*
.o
*
~
# make nothing for modules_install, but avoid errors
modules_install
:
install
:
install
-d
$(DESTDIR)
/bin
install
-D
$
(
hostprogs-y
)
$(DESTDIR)
/bin
install
-D
$(
progs
)
$(DESTDIR)
/bin
# we need this as we are out of the kernel
%
:
%.c
$(
HOSTCC)
$(HOST_EXTRACFLAGS)
-O2
-Wall
$^
-o
$@
$(
CC)
$(CFLAGS)
$^
-o
$@
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