diff --git a/~/C/libserialport/.gitignore b/~/C/libserialport/.gitignore index 9e7c7ba..114a99e 100644 --- a/~/C/libserialport/.gitignore +++ b/~/C/libserialport/.gitignore @@ -1 +1,7 @@ +# libserialport examples +port_info.c +list_ports.c + +# binaries port_info +list_ports diff --git a/~/C/libserialport/build b/~/C/libserialport/build index e332abf..52415b0 100755 --- a/~/C/libserialport/build +++ b/~/C/libserialport/build @@ -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