add script for build via tcc
This commit is contained in:
parent
3ff907994a
commit
b4c43daaea
20
~/C/libserialport/build_tcc
Executable file
20
~/C/libserialport/build_tcc
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#!/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 \
|
||||||
|
list_ports.c \
|
||||||
|
send_receive.c \
|
||||||
|
listen.c \
|
||||||
|
|
||||||
|
do
|
||||||
|
echo -ne "[ ] Building $file...\r"
|
||||||
|
tcc -Wall -O3 -o ${file%.*} -I$C_INCLUDE_PATH $file $LIBRARY_PATH/libserialport.a
|
||||||
|
echo [OK
|
||||||
|
done
|
Loading…
Reference in New Issue
Block a user