list ports

This commit is contained in:
Alexander Popov 2023-07-29 21:08:22 +03:00
parent d4bde52745
commit bdd87110c1
Signed by: iiiypuk
GPG Key ID: E47FE0AB36CD5ED6
2 changed files with 9 additions and 1 deletions

View File

@ -1 +1,7 @@
# libserialport examples
port_info.c
list_ports.c
# binaries
port_info
list_ports

View File

@ -8,7 +8,9 @@ export C_INCLUDE_PATH=$HOME/Git/libserialport
export LIBRARY_PATH=$HOME/Git/libserialport/.libs
for file in \
port_info.c
port_info.c \
list_ports.c \
do
gcc -static -Wall -O3 -o ${file%.*} $file -lserialport
done