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
603f4cc8
Commit
603f4cc8
authored
Nov 05, 2014
by
TMRh20
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix header file install for RPi in Makefile
parent
bb88f4a7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Makefile
Makefile
+5
-1
No files found.
Makefile
View file @
603f4cc8
...
@@ -24,6 +24,8 @@ LIBNAME=$(LIB).so.1.0
...
@@ -24,6 +24,8 @@ LIBNAME=$(LIB).so.1.0
# Where to put the header files
# Where to put the header files
HEADER_DIR
=
${PREFIX}
/include/RF24
HEADER_DIR
=
${PREFIX}
/include/RF24
DRIVER_DIR
=
RPi
# The recommended compiler flags for the Raspberry Pi
# The recommended compiler flags for the Raspberry Pi
CCFLAGS
=
-Ofast
-mfpu
=
vfp
-mfloat-abi
=
hard
-march
=
armv6zk
-mtune
=
arm1176jzf-s
CCFLAGS
=
-Ofast
-mfpu
=
vfp
-mfloat-abi
=
hard
-march
=
armv6zk
-mtune
=
arm1176jzf-s
...
@@ -39,7 +41,7 @@ librf24-bcm: RF24.o bcm2835.o
...
@@ -39,7 +41,7 @@ librf24-bcm: RF24.o bcm2835.o
RF24.o
:
RF24.cpp
RF24.o
:
RF24.cpp
g++
-Wall
-fPIC
${CCFLAGS}
-c
$^
g++
-Wall
-fPIC
${CCFLAGS}
-c
$^
bcm2835.o
:
bcm2835.c
bcm2835.o
:
RPi/
bcm2835.c
gcc
-Wall
-fPIC
${CCFLAGS}
-c
$^
gcc
-Wall
-fPIC
${CCFLAGS}
-c
$^
# clear build files
# clear build files
...
@@ -61,3 +63,5 @@ install-headers:
...
@@ -61,3 +63,5 @@ install-headers:
@
echo
"[Installing Headers]"
@
echo
"[Installing Headers]"
@
if
(
test
!
-d
${HEADER_DIR}
)
;
then
mkdir
-p
${HEADER_DIR}
;
fi
@
if
(
test
!
-d
${HEADER_DIR}
)
;
then
mkdir
-p
${HEADER_DIR}
;
fi
@
install
-m
0644
*
.h
${HEADER_DIR}
@
install
-m
0644
*
.h
${HEADER_DIR}
@
if
(
test
!
-d
${HEADER_DIR}
/RPi
)
;
then
mkdir
-p
${HEADER_DIR}
/RPi
;
fi
@
install
-m
0644
${DRIVER_DIR}
/
*
.h
${HEADER_DIR}
/
${DRIVER_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