1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
#!/bin/sh
if [ "$1" = dbg ]; then
CFLAGS="-fgnu89-inline -O0 -g -Wall"
export CFLAGS
./configure --enable-debuglevel --enable-graphics --without-ipv6
elif [ "$1" = lite ]; then
CFLAGS="-fgnu89-inline -march=i386 -Os -fomit-frame-pointer -Wall -Wextra -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
export CFLAGS
./configure --disable-graphics --without-lzma --without-lzip --without-brotli --without-ipv6
else
CFLAGS="-fgnu89-inline -march=i386 -mtune=pentium -O2 -fomit-frame-pointer -frename-registers -fweb -Wall -Wextra -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
export CFLAGS
./configure --enable-graphics --without-ipv6
fi
ed config.status <<EOF
/outfile
/esac
a
if [ "\$ac_file_in" = "config.h.in" ]; then ac_file_in=config.h-i; fi
.
/outfile
/esac
a
if [ "\$ac_file_in" = "config.h.in" ]; then ac_file_in=config.h-i; fi
.
wq
EOF
./config.status
ed Makefile <<EOF
/^Makefile:
s/:.*/:/
.+1,.+2d
/^config\.h:
s/:.*/:/
.+1,.+4c
.
wq
EOF
make
|