File: compile.roots

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 (13 lines) | stat: -rwxr-xr-x 426 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# Compile roots.c and create the executable in ~/bin if it exists.
# roots is a command-line numerical polynomial equation solver.
# Requires the GNU Scientific Library (GSL) development files.

if [ -d ~/bin ]
then
	ROOTS=~/bin/roots
else
	ROOTS=roots
fi
echo Compiling roots.c
gcc -O3 -Wall $CFLAGS $CPPFLAGS $LDFLAGS -o $ROOTS roots.c `pkg-config --cflags --libs gsl` && echo Done, executable installed in $ROOTS