2006-05-11 09:50:41 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
cat << END
|
|
|
|
/*
|
|
|
|
* buildopts.h
|
|
|
|
* Automatically generated
|
|
|
|
*/
|
|
|
|
|
|
|
|
END
|
2007-08-22 18:54:30 +00:00
|
|
|
TMP=`${GREP} MENUSELECT_CFLAGS menuselect.makeopts | sed 's/MENUSELECT_CFLAGS\=//g' | sed 's/-D//g'`
|
2006-05-11 09:50:41 +00:00
|
|
|
for x in ${TMP}; do
|
2007-03-15 22:29:45 +00:00
|
|
|
echo "#define ${x} 1"
|
2006-05-11 09:50:41 +00:00
|
|
|
done
|
2007-08-22 18:54:30 +00:00
|
|
|
TMP=`${GREP} MENUSELECT_BUILD_DEPS menuselect.makeopts | sed 's/MENUSELECT_BUILD_DEPS\=//g'`
|
2007-06-21 19:08:09 +00:00
|
|
|
for x in ${TMP}; do
|
|
|
|
x2=`echo ${x} | tr a-z A-Z`
|
|
|
|
echo "#define AST_MODULE_${x2} 1"
|
|
|
|
done
|
2007-08-22 18:54:30 +00:00
|
|
|
if ${GREP} AST_DEVMODE makeopts | ${GREP} -q yes
|
2007-03-15 22:29:45 +00:00
|
|
|
then
|
|
|
|
echo "#define AST_DEVMODE 1"
|
|
|
|
fi
|