Commit 603f4cc8 authored by TMRh20's avatar TMRh20

Fix header file install for RPi in Makefile

parent bb88f4a7
...@@ -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}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment