prepare env

This commit is contained in:
2023-07-29 21:05:08 +03:00
parent e4007e4960
commit d4bde52745
4 changed files with 38 additions and 0 deletions

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