prepare env
This commit is contained in:
parent
e4007e4960
commit
d4bde52745
1
~/C/libserialport/.gitignore
vendored
Normal file
1
~/C/libserialport/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
port_info
|
16
~/C/libserialport/README.md
Normal file
16
~/C/libserialport/README.md
Normal file
@ -0,0 +1,16 @@
|
||||
Download `libserialport` library.
|
||||
|
||||
```sh
|
||||
git clone git://sigrok.org/libserialport
|
||||
```
|
||||
|
||||
For **build** code use `build` script or build files manually.
|
||||
|
||||
Example:
|
||||
|
||||
```sh
|
||||
export C_INCLUDE_PATH=<path/to/libserialport>
|
||||
export LIBRARY_PATH=<path/to/libserialport/.libs>
|
||||
|
||||
gcc -static -Wall -O3 -o <output_filename> <file.c> -lserialport
|
||||
```
|
14
~/C/libserialport/build
Executable file
14
~/C/libserialport/build
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# build - script for build all files.
|
||||
#
|
||||
# Alexander Popov <iiiypuk@fastmail.fm>
|
||||
|
||||
export C_INCLUDE_PATH=$HOME/Git/libserialport
|
||||
export LIBRARY_PATH=$HOME/Git/libserialport/.libs
|
||||
|
||||
for file in \
|
||||
port_info.c
|
||||
do
|
||||
gcc -static -Wall -O3 -o ${file%.*} $file -lserialport
|
||||
done
|
7
~/C/libserialport/clear
Executable file
7
~/C/libserialport/clear
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# clear - script for delete all builded files.
|
||||
#
|
||||
# Alexander Popov <iiiypuk@fastmail.fm>
|
||||
|
||||
rm port_info
|
Loading…
Reference in New Issue
Block a user