Newer
Older
pyenergenie / src / energenie / build
@David Whale David Whale on 27 Sep 2015 289 bytes Added source files from first working tests
  1. #! /bin/bash
  2.  
  3.  
  4. # build gpio_test
  5. gcc gpio_test.c gpio.c
  6. mv a.out gpio_test
  7. chmod u+x gpio_test
  8.  
  9.  
  10. # build spi_test
  11. gcc spi_test.c spi.c gpio.c
  12. mv a.out spi_test
  13. chmod u+x spi_test
  14.  
  15.  
  16. # build spi .so library on Raspberry Pi
  17. gcc -Wall -shared -o spi_rpi.so -fPIC spi.c gpio.c
  18. #nm -D spi.so
  19.  
  20.  
  21.