Initial import of support files for all Digistump boards - Digispark, Pro, DigiX - including libraries, examples, tools, and other support files for the Arduino IDE

This commit is contained in:
Erik Tylek Kettenburg
2014-12-19 08:45:50 -08:00
parent 97abdbf157
commit 7e7473a2d6
3567 changed files with 722870 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
#############################################################################
#
# Makefile for librf24 on Raspberry Pi
#
# License: GPL (General Public License)
# Author: gnulnulf <arco@appeltaart.mine.nu>
# Date: 2013/02/07 (version 1.0)
#
# Description:
# ------------
# use make all and mak install to install the library
# You can change the install directory by editing the LIBDIR line
#
LIBDIR=/usr/local/lib
LIBNAME=librf24.so.1.0
# The recommended compiler flags for the Raspberry Pi
CCFLAGS=-Ofast -mfpu=vfp -mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s
# make all
all: librf24
# Make the library
librf24: RF24.o gpio.o spi.o compatibility.o
g++ -shared -Wl,-soname,librf24.so.1 ${CCFLAGS} -o ${LIBNAME} compatibility.o gpio.o spi.o RF24.o
# Library parts
RF24.o: RF24.cpp
g++ -Wall -fPIC ${CCFLAGS} -c RF24.cpp
gpio.o: gpio.cpp
g++ -Wall -fPIC ${CCFLAGS} -c gpio.cpp
spi.o: spi.cpp
g++ -Wall -fPIC ${CCFLAGS} -c spi.cpp
compatibility.o: compatibility.c
gcc -Wall -fPIC ${CCFLAGS} -c compatibility.c
# clear build files
clean:
rm -rf *o ${LIBNAME}
# Install the library to LIBPATH
install:
cp librf24.so.1.0 ${LIBDIR}/${LIBNAME}
ln -sf ${LIBDIR}/${LIBNAME} ${LIBDIR}/librf24.so.1
ln -sf ${LIBDIR}/${LIBNAME} ${LIBDIR}/librf24.so
ldconfig