# Build libSetSerial.so
gcc -shared -fPIC SetSerial.c -o libSetSerial.so -v

# Create path if needed
mkdir -p ../../../MatterControl/bin/Debug/
mkdir -p ../../../MatterControl/bin/Release/

# Copy to MatterControl build directories
cp libSetSerial.so ../../../MatterControl/bin/Debug/
cp libSetSerial.so ../../../MatterControl/bin/Release/

# Build libSetSerial.so
gcc -m32 -shared -fPIC SetSerial.c -o libSetSerial.so -v

# Create path if needed
mkdir -p ../../../../bin/Debug/
mkdir -p ../../../../bin/Release/

# Copy to MatterControl build directories
cp libSetSerial.so ../../../../bin/Debug/
cp libSetSerial.so ../../../../bin/Release/

Set compile flags to x86 for libSetSerial.so script, fix MC paths
Set compile flags to x86 for libSetSerial.so script, fix MC paths
