File: mk-dos

package info (click to toggle)
links2 2.29-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 27,852 kB
  • sloc: ansic: 181,859; sh: 2,585; cpp: 1,450; makefile: 84; awk: 49; perl: 34
file content (40 lines) | stat: -rw-r--r-- 1,044 bytes parent folder | download | duplicates (4)
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