]> gerrit.simantics Code Review - simantics/fmil.git/blobdiff - org.simantics.fmil.core/native/FMILibrary/ThirdParty/c99_snprintf/c99-snprintf_1.1/test.sh
Add FMILibrary-2.0.3 to org.simantics.fmil.core\native.
[simantics/fmil.git] / org.simantics.fmil.core / native / FMILibrary / ThirdParty / c99_snprintf / c99-snprintf_1.1 / test.sh
diff --git a/org.simantics.fmil.core/native/FMILibrary/ThirdParty/c99_snprintf/c99-snprintf_1.1/test.sh b/org.simantics.fmil.core/native/FMILibrary/ThirdParty/c99_snprintf/c99-snprintf_1.1/test.sh
new file mode 100644 (file)
index 0000000..af71207
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/sh
+#
+# $Id: test.sh,v 1.2 2008/01/11 20:00:40 holger Exp $
+
+test -n "$CC" || \
+CC="gcc"
+
+test -n "$CPPFLAGS" || \
+CPPFLAGS="-DTEST_SNPRINTF"
+
+test -n "$LIBS" || \
+LIBS="-lm"
+
+test -n "$CFLAGS" || \
+CFLAGS="-g3 -O2 -Wall -W -Wbad-function-cast -Wcast-align -Wmissing-noreturn \
+       -Wnested-externs -Wpointer-arith -Wsign-compare -Wwrite-strings \
+       -Werror"
+
+$CC $CFLAGS $CPPFLAGS -o snprintf snprintf.c $LIBS && \
+./snprintf