Add example/jsonptr

This commit is contained in:
Nigel Tao committed 2020-02-16 22:19:12 +11:00
1 parent 58a4aba4d4
commit 1b07349144
4 files changed
+398 -7

No files matched your search

+5 -6
View File
@@ -39,11 +39,7 @@ for f in $sources; do
continue
fi
if [ $f = crc32 ]; then
echo "Building gen/bin/example-$f"
# example/crc32 is unusual in that it's C++, not C.
$CXX -O3 example/$f/*.cc -o gen/bin/example-$f
elif [ $f = imageviewer ]; then
if [ $f = imageviewer ]; then
# example/imageviewer is unusual in that needs additional libraries.
echo "Building gen/bin/example-$f"
$CC -O3 example/$f/*.c -lxcb -lxcb-image -o gen/bin/example-$f
@@ -59,6 +55,9 @@ for f in $sources; do
fi
elif [ -e example/$f/*.c ]; then
echo "Building gen/bin/example-$f"
$CC -O3 example/$f/*.c -o gen/bin/example-$f
$CC -O3 example/$f/*.c -o gen/bin/example-$f
elif [ -e example/$f/*.cc ]; then
echo "Building gen/bin/example-$f"
$CXX -O3 example/$f/*.cc -o gen/bin/example-$f
fi
done