File: build-gl-fpi

package info (click to toggle)
stalin 0.11-6
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 110,396 kB
  • ctags: 163,122
  • sloc: ansic: 1,757,574; lisp: 88,332; sh: 1,514; makefile: 229; sed: 100; csh: 30
file content (19 lines) | stat: -rwxr-xr-x 397 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

if [ x"${CC}" = x ]
then
  CC=gcc
fi

cd include
rm -f libstalin.a
${CC} -c -O2 -fomit-frame-pointer -freg-struct-return xlib-c.c
${CC} -c -O2 -fomit-frame-pointer -freg-struct-return gl-c.c
ar rc libstalin.a xlib-c.o gl-c.c
case `uname -s`/`uname -r` in
  IRIX*/*)   RANLIB=touch;;
  SunOS/5.*) RANLIB=touch;;
  *)         RANLIB=ranlib;;
  esac
$RANLIB libstalin.a
rm xlib-c.o gl-c.o