X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=compile;h=0b6c2abcaea83d52def05db87ea70381b9ba6236;hb=d3b866b6280bb34fa878b03bb4048492e936e0e1;hp=b9d9bcbe5f82b528426a26dceabd3f3a405e7d8d;hpb=287f2fa2ff95d828e400294f10ca215314960e72;p=virtualjaguar diff --git a/compile b/compile index b9d9bcb..0b6c2ab 100644 --- a/compile +++ b/compile @@ -1,4 +1,4 @@ -#!/bin/sh +#! /bin/sh # # Compile script for Virtual Jaguar GCC/SDL Portable Jaguar Emulator @@ -6,11 +6,30 @@ # under the sun... # # by James L. Hammons -# +# # If you have any parameters that you want to pass through to make, then # simply add them to the 'compile' command line as if 'compile' were make. # +echo +echo -n "*** Checking compilation environment... " + +# Check for SDL + +if [ "`which sdl-config`" = "" ]; then + + echo + echo + echo "It seems that you don't have the SDL development libraries installed. If you" + echo "have installed them, make sure that the sdl-config file is somewhere in your" + echo "path and is executable." + + exit 1 + +fi + +echo -n "OK" + echo echo -n "*** Compiling Virtual Jaguar for " @@ -28,7 +47,7 @@ if [ "$OSTYPE" = "msys" ]; then #This doesn't seem to make a difference on Win32... # SDLLIBTYPE=--static-libs -elif [ "$OSTYPE" = "macosx" ]; then +elif [ "$OSTYPE" = "darwin7.0" ] || [ "$OSTYPE" = "darwin" ]; then echo -n Mac OS X @@ -58,3 +77,11 @@ export SYSTYPE EXESUFFIX GLLIB ICON SDLLIBTYPE # Yes, you can pass through parameters to make... make $@ + +if [ $? -eq 0 ]; then + + echo + echo "*** Looks like it compiled OK... Give it a whirl!" + echo + +fi