mirror of
https://github.com/cmur2/python-bme680.git
synced 2025-06-29 10:30:31 +02:00
Refactor for shipping as library
This commit is contained in:
9
c/BME680_driver/Makefile
Normal file
9
c/BME680_driver/Makefile
Normal file
@ -0,0 +1,9 @@
|
||||
all: main
|
||||
|
||||
lib:
|
||||
gcc -c -fpic bme680.c
|
||||
ar rcs libbme680.a bme680.o
|
||||
gcc -shared -o libbme680.so bme680.o
|
||||
|
||||
main: lib
|
||||
gcc main.c -L. -static -lbme680 -o main
|
Reference in New Issue
Block a user