File: compile.limits

package info (click to toggle)
mathomatic 16.0.5-5.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,192 kB
  • sloc: ansic: 22,029; makefile: 340; sh: 319; python: 96; awk: 39
file content (19 lines) | stat: -rwxr-xr-x 469 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
#!/bin/sh
# Compile limits.c and create the executable in ~/bin if it exists.
# limits is a standalone program that nicely
# displays current C data type limits and sizes.
# Works with any C compiler, compiles with the C compiler you set CC to.

CC=${CC-cc}

if [ -d ~/bin ]
then
	LIMITS=~/bin/limits
else
	LIMITS=./limits
fi
echo Compiling limits.c
set -e
set -x
$CC -Wall $CFLAGS $CPPFLAGS $LDFLAGS -o $LIMITS limits.c
echo limits.c compiled and installed as $LIMITS