]> gerrit.simantics Code Review - simantics/fmil.git/blob - org.simantics.fmil.core/native/FMILibrary/ThirdParty/c99_snprintf/c99-snprintf_1.1/test.sh
Switch to full JavaSE-11+ compatibility
[simantics/fmil.git] / org.simantics.fmil.core / native / FMILibrary / ThirdParty / c99_snprintf / c99-snprintf_1.1 / test.sh
1 #!/bin/sh
2 #
3 # $Id: test.sh,v 1.2 2008/01/11 20:00:40 holger Exp $
4
5 test -n "$CC" || \
6 CC="gcc"
7
8 test -n "$CPPFLAGS" || \
9 CPPFLAGS="-DTEST_SNPRINTF"
10
11 test -n "$LIBS" || \
12 LIBS="-lm"
13
14 test -n "$CFLAGS" || \
15 CFLAGS="-g3 -O2 -Wall -W -Wbad-function-cast -Wcast-align -Wmissing-noreturn \
16         -Wnested-externs -Wpointer-arith -Wsign-compare -Wwrite-strings \
17         -Werror"
18
19 $CC $CFLAGS $CPPFLAGS -o snprintf snprintf.c $LIBS && \
20 ./snprintf