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 <pic14regs.h>
43 sed -e 's/\s*#.*$//' ..
/devices.txt |
grep -v '^\s*$' |
while read PROC
; do
44 printf "### Compiling for $PROC: ";
46 echo "$CC" -V $CPPFLAGS $CFLAGS $LDFLAGS -mpic14 -p$PROC -o test-
$PROC sample.c
$LIBS > "$BUILD_LOG2";
47 "$CC" -V $CPPFLAGS $CFLAGS $LDFLAGS -mpic14 -p$PROC -o test-
$PROC sample.c
$LIBS >> "$BUILD_LOG2" 2>&1 && OK
="ok";
48 cat "$BUILD_LOG2" >> "$BUILD_LOG";