#!/bin/sh # # build - script for build all files. # # Alexander Popov export C_INCLUDE_PATH=$HOME/Git/libserialport export LIBRARY_PATH=$HOME/Git/libserialport/.libs for file in \ port_info.c \ list_ports.c \ send_receive.c \ listen.c \ do echo -ne "[ ] Building $file...\r" gcc -static -Wall -O3 -o ${file%.*} $file -lserialport echo [OK done