Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DEL 1ns 4cha
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
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 DEL 1ns 4cha
Commits
48e2c523
Commit
48e2c523
authored
Apr 02, 2014
by
Tomasz Wlostowski
Committed by
Alessandro Rubini
Apr 01, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makefiles: added install target for tools & the library
parent
b58b38f1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
2 deletions
+22
-2
Makefile
Makefile
+2
-0
Makefile
lib/Makefile
+13
-1
Makefile
tools/Makefile
+7
-1
No files found.
Makefile
View file @
48e2c523
...
...
@@ -2,6 +2,8 @@ FMC_BUS := $(shell scripts/check-submodule fmc-bus $(FMC_BUS))
ZIO
:=
$(
shell
scripts/check-submodule zio
$(ZIO))
SPEC_SW
:=
$(
shell
scripts/check-submodule spec-sw
$(SPEC_SW))
DESTDIR
?=
/usr/local
.PHONY
:
all clean modules install modules_install default
.PHONY
:
gitmodules prereq prereq_install prereq_install_warn
...
...
lib/Makefile
View file @
48e2c523
# This is not a kbuild Makefile. It is a plain Makefile so it can be copied
ZIO
:=
$(
shell
cd
..
;
scripts/check-submodule zio
$(ZIO))
LIB
=
libfdelay.a
LOBJ
:=
fdelay-init.o
LOBJ
+=
fdelay-time.o
...
...
@@ -9,6 +11,8 @@ LOBJ += fdelay-output.o
CFLAGS
=
-Wall
-ggdb
-O2
-I
../kernel
-I
$(ZIO)
/include
LDFLAGS
=
-L
.
-lfdelay
DESTDIR
?=
/usr/local
modules all
:
lib
lib
:
$(LIB)
...
...
@@ -25,7 +29,15 @@ clean:
.depend
:
Makefile $(wildcard *.c *.h ../*.h)
$(CC)
$(CFLAGS)
-M
$
(
LOBJ:.o
=
.c
)
-o
$@
install modules_install
:
install
:
install
-d
$(DESTDIR)
/lib
install
-d
$(DESTDIR)
/include/fmc-fdelay
install
-m
644
-D
$(LIB)
$(DESTDIR)/lib
install
-m
644
-D
fdelay-lib.h
$(DESTDIR)/include/fmc-fdelay
install
-m
644
-D
../kernel/fine-delay.h
$(DESTDIR)/include/fmc-fdelay
modules_install
:
-include
.depend
tools/Makefile
View file @
48e2c523
...
...
@@ -2,6 +2,8 @@
M
=
$(
shell
/bin/pwd
)
/../kernel
DESTDIR
?=
/usr/local
HOST_EXTRACFLAGS
+=
-I
$(M)
-I
../lib
-I
$(ZIO)
/include
-Wno-trigraphs
-Wall
-ggdb
HOSTCC
?=
gcc
...
...
@@ -22,7 +24,11 @@ clean:
$(hostprogs-y)
:
tools-util.o tools-common.h $(wildcard ../lib/*.[ch])
# make nothing for modules_install, but avoid errors
modules_install install
:
modules_install
:
install
:
install
-d
$(DESTDIR)
/bin
install
-D
$
(
hostprogs-y
)
$(DESTDIR)
/bin
# we need this as we are out of the kernel
%
:
%.c $(wildcard *.h)
...
...
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