4 BUILD_LOG
="$BASE/build.log";
5 BUILD_LOG2
="$BASE/build.log2";
6 BUILD_DIR
="$BASE/__tests";
10 CFLAGS
="--use-non-free";
20 if [ -e "$BUILD_DIR" ]; then
21 echo "$BUILD_DIR already there -- exiting.";
24 { mkdir
-p "$BUILD_DIR" && cd "$BUILD_DIR"; } ||
exit 1;
28 #include <pic18fregs.h>
30 #pragma stack 0x00c0 0x40
42 printf_tiny("foo"); /* printf() is too large for the smallest devices ... */
46 for f
in .
/pic1
*.c
; do
50 printf "### Compiling for $p: ";
52 echo "$CC" -V $CPPFLAGS $CFLAGS $LDFLAGS -mpic16 -p$p -o test-
$p sample.c
$LIBS > "$BUILD_LOG2";
53 "$CC" -V $CPPFLAGS $CFLAGS $LDFLAGS -mpic16 -p$p -o test-
$p sample.c
$LIBS >> "$BUILD_LOG2" 2>&1 && OK
="ok";
54 cat "$BUILD_LOG2" >> "$BUILD_LOG";