Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RF24
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
RF24
Commits
9895101a
Commit
9895101a
authored
Apr 30, 2014
by
cornet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Install header files and separate install task
parent
6530f954
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
RPi/RF24/Makefile
RPi/RF24/Makefile
+12
-4
No files found.
RPi/RF24/Makefile
View file @
9895101a
...
...
@@ -21,13 +21,15 @@ LIB=librf24-bcm
# shared library name
LIBNAME
=
$(LIB)
.so.1.0
# Where to put the header files
HEADER_DIR
=
${PREFIX}
/include/RF24
# The recommended compiler flags for the Raspberry Pi
CCFLAGS
=
-Ofast
-mfpu
=
vfp
-mfloat-abi
=
hard
-march
=
armv6zk
-mtune
=
arm1176jzf-s
# make all
# reinstall the library after each recompilation
all
:
librf24-bcm
install
all
:
librf24-bcm
# Make the library
librf24-bcm
:
RF24.o bcm2835.o
...
...
@@ -44,12 +46,18 @@ bcm2835.o: bcm2835.c
clean
:
rm
-rf
*
.o
${LIB}
.
*
install
:
install-libs install-headers
# Install the library to LIBPATH
install
:
@
echo
"[Install]"
install
-libs
:
@
echo
"[Install
ing Libs
]"
@
if
(
test
!
-d
$(PREFIX)
/lib
)
;
then
mkdir
-p
$(PREFIX)
/lib
;
fi
#@install -m 0755
${LIB}
.a
${LIBDIR}
@
install
-m
0755
${LIBNAME}
${LIBDIR}
@
ln
-sf
${LIBDIR}
/
${LIBNAME}
${LIBDIR}
/
${LIB}
.so.1
@
ln
-sf
${LIBDIR}
/
${LIBNAME}
${LIBDIR}
/
${LIB}
.so
@
ldconfig
install-headers
:
@
echo
"[Installing Headers]"
@
if
(
test
!
-d
${HEADER_DIR}
)
;
then
mkdir
-p
${HEADER_DIR}
;
fi
@
install
-m
0644
*
.h
${HEADER_DIR}
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