Newer
Older
pyenergenie / src / energenie / build
@David Whale David Whale on 27 Sep 2015 289 bytes Added source files from first working tests
#! /bin/bash


# build gpio_test
gcc gpio_test.c gpio.c
mv a.out gpio_test
chmod u+x gpio_test


# build spi_test
gcc spi_test.c spi.c gpio.c
mv a.out spi_test
chmod u+x spi_test


# build spi .so library on Raspberry Pi
gcc -Wall -shared -o spi_rpi.so -fPIC spi.c gpio.c
#nm -D spi.so