1#! /bin/sh
2
3if [ ! -f src/slang.c ] ; then
4   echo ERROR: this script must be invoked from the top of the S-Lang distribution
5   exit 1
6fi
7
8if [ $# -eq 0 ] ; then
9   echo Usage: `basename $0` PLATFORM COMPILER [DLL]
10   echo 	Parameters should be specified in upper case
11   exit 1
12fi
13
14echo
15echo This script assumes you working from a CygWin/MinGW shell, with GNU make
16echo
17
18echo - generating Makefile in src...
19src/mkfiles/mkmake $1 $2 $3 $4 $5 < src/mkfiles/makefile.all > src/Makefile
20
21echo - generating Makefile in slsh...
22src/mkfiles/mkmake $1 $2 $3 $4 $5 < slsh/mkfiles/makefile.all > slsh/Makefile
23
24echo - generating Makefile in modules...
25src/mkfiles/mkmake $1 $2 $3 $4 $5 < modules/mkfiles/makefile.all > modules/Makefile
26
27cp mkfiles/makefile.sh Makefile
28make
29