Compare commits

..

2 Commits

Author SHA1 Message Date
d4bde52745
prepare env 2023-07-29 21:05:08 +03:00
e4007e4960
update V 2023-07-29 20:59:39 +03:00
5 changed files with 39 additions and 1 deletions

View File

@ -31,7 +31,7 @@ indent_style = space
indent_size = 4 indent_size = 4
# V # V
[*.v] [{*.v,v.mod}]
indent_style = tab indent_style = tab
indent_size = 4 indent_size = 4

1
~/C/libserialport/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
port_info

View 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
View 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
View File

@ -0,0 +1,7 @@
#!/bin/sh
#
# clear - script for delete all builded files.
#
# Alexander Popov <iiiypuk@fastmail.fm>
rm port_info