4 # Run this script every time the set of supported devices changes.
8 OUTPUT
="$LIB/processors.ac";
10 # Update configure script.
11 echo "### Generating configure script for AM_CONDITIONALs ...";
13 for i
in "$LIB/libdev/pic1"*.c
; do
16 P
=$
(echo "$p" |
tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
);
17 cat >> "$OUTPUT" <<EOT
18 AM_CONDITIONAL([ENABLE_${P}], [ grep -i "^${P}\$" pics.supported >/dev/null 2>/dev/null ])
22 # Update libdev/Makefile.am.
23 echo "### Updating libdev/Makefile.am ...";
24 ( cd "$LIB/libdev" && sh .
/mkmk.sh
> Makefile.am
)
26 # Recreate configure script.
27 echo "### Updating build system ..."
28 ( cd "$LIB" && autoreconf
)
30 # Also update the free library part.
31 echo "### Updating dependent build system in ../../../lib/pic16 ..."
32 ( cd "$LIB/../../../lib/pic16/libio" && sh .
/mkmk.sh
> Makefile.am
)
33 ( cd "$LIB/../../../lib/pic16" && autoreconf
)