1#!/bin/sh 2# Shell script for creating the executable "mathomatic_secure", 3# which lacks the code for file I/O and shelling out. 4# The result can safely be used as an application on open public servers. 5# The Mathomatic run-time option -s4 performs exactly the same function, 6# so this script that makes a separate executable is no longer necessary. 7 8# You will need to install the libeditline-dev package to run this. 9 10echo Compiling Secure Mathomatic... 11set -v 12gcc -O3 -Wall -Wshadow -Wno-char-subscripts -fexceptions $CFLAGS $CPPFLAGS -DEDITLINE -DUNIX -DVERSION=\"`cat VERSION`\" -DSECURE -DTIMEOUT_SECONDS=3600 $LDFLAGS *.c -lm -leditline $LDLIBS -o mathomatic_secure && echo ./mathomatic_secure created. 13make clean # for any subsequent makes 14