|
|
|
@ -53,23 +53,24 @@ echo "CPU $cpu" |
|
|
|
|
echo "MMX enabled $mmx" |
|
|
|
|
echo "gprof enabled $gprof" |
|
|
|
|
|
|
|
|
|
echo "Creating config.mk and config.h" |
|
|
|
|
echo "Creating config.mak and config.h" |
|
|
|
|
|
|
|
|
|
echo "# Automatically generated by configure - do not modify" > config.mk |
|
|
|
|
echo "# Automatically generated by configure - do not modify" > config.mak |
|
|
|
|
echo "/* Automatically generated by configure - do not modify */" > config.h |
|
|
|
|
|
|
|
|
|
echo "PREFIX=$prefix" >> config.mk |
|
|
|
|
echo "CC=$cc" >> config.mk |
|
|
|
|
echo "AR=$ar" >> config.mk |
|
|
|
|
echo "prefix=$prefix" >> config.mak |
|
|
|
|
echo "CC=$cc" >> config.mak |
|
|
|
|
echo "AR=$ar" >> config.mak |
|
|
|
|
echo "OPTFLAGS=-O2" >> config.mak |
|
|
|
|
if [ "$cpu" = "x86" ] ; then |
|
|
|
|
echo "CONFIG_CPU_X86=y" >> config.mk |
|
|
|
|
echo "#define CONFIG_CPU_X86 1" >> config.h |
|
|
|
|
echo "TARGET_ARCH_X86=yes" >> config.mak |
|
|
|
|
echo "#define ARCH_X86 1" >> config.h |
|
|
|
|
fi |
|
|
|
|
if [ "$mmx" = "yes" ] ; then |
|
|
|
|
echo "CONFIG_MMX=y" >> config.mk |
|
|
|
|
echo "#define CONFIG_MMX 1" >> config.h |
|
|
|
|
echo "TARGET_MMX=yes" >> config.mak |
|
|
|
|
echo "#define HAVE_MMX 1" >> config.h |
|
|
|
|
fi |
|
|
|
|
if [ "$gprof" = "yes" ] ; then |
|
|
|
|
echo "CONFIG_GPROF=y" >> config.mk |
|
|
|
|
echo "#define CONFIG_GPROF 1" >> config.h |
|
|
|
|
echo "TARGET_GPROF=yes" >> config.mak |
|
|
|
|
echo "#define HAVE_GPROF 1" >> config.h |
|
|
|
|
fi |
|
|
|
|