snipplets.dev/~/C/libserialport/build_gcc

21 lines
398 B
Plaintext
Raw Normal View History

2023-07-29 21:05:08 +03:00
#!/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 \
2023-07-29 21:08:22 +03:00
port_info.c \
list_ports.c \
2023-07-29 22:32:44 +03:00
send_receive.c \
listen.c \
2023-07-29 21:08:22 +03:00
2023-07-29 21:05:08 +03:00
do
2023-07-30 01:26:15 +03:00
echo -ne "[ ] Building $file...\r"
2023-07-29 21:05:08 +03:00
gcc -static -Wall -O3 -o ${file%.*} $file -lserialport
2023-07-30 01:26:15 +03:00
echo [OK
2023-07-29 21:05:08 +03:00
done