wifi-tally_Oostendam/nodemcu-firmware/app/libc/c99-snprintf/test.sh

19 lines
373 B
Bash
Raw Permalink Normal View History

2021-09-27 19:52:27 +00:00
#!/bin/sh
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