Source

libamos / compile-example.sh

Full commit
Kevin Veroneau 434107e 










#!/bin/sh

echo "Compiling static example binary..."
gcc example.c -L. -lamos -o example_static -lm
echo "Testing..."
./example_static
echo "Compiling dynamic example binary..."
gcc -o example_dynamic example.c libamos.so.1
echo "Testing..."
export LD_LIBRARY_PATH=.
./example_dynamic
ldd example_dynamic