JetCore/compile
2022-05-19 11:43:15 -07:00

34 lines
448 B
Bash
Executable File

#!/bin/bash
for file in *.cpp
do
filename="${file%.*}"
list="$list $filename.o"
echo -n "Compiling $filename..."
g++ -g -c -std=c++17 -I../CoreUtils $file &
if [ $? = '0' ]
then
echo "OK"
else
echo "ERROR"
exit -1
fi
done
wait
echo -n "Building executable testjet..."
g++ -g -o testjet $list -std=c++17 -L../CoreUtils -lCoreUtils
if [ $? = '0' ]
then
echo "OK"
else
echo "ERROR"
exit -1
fi
rm *.o
rm *~