X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=jaguarcore.mak;h=6b5b9ee92acb875710957b9b5443398381c51d48;hb=8ad74866de6af27e3ef54ecd60874be774721830;hp=31bd4a822cb0006b68bbe5c969179201e557768b;hpb=33d59f0647c4a08446ff0ddc66fdd98fcd56e9a9;p=virtualjaguar diff --git a/jaguarcore.mak b/jaguarcore.mak index 31bd4a8..6b5b9ee 100644 --- a/jaguarcore.mak +++ b/jaguarcore.mak @@ -10,43 +10,15 @@ # Cross compilation with MXE #CROSS = i686-pc-mingw32- -# Figure out which system we're compiling for, and set the appropriate variables - -ifeq "$(CROSS)" "" -OSTYPE := $(shell uname -a) - -# Win32 -ifeq "$(findstring Msys,$(OSTYPE))" "Msys" - -SYSTYPE := __GCCWIN32__ -SDLLIBTYPE := --libs - -# Apple. Should catch both 'darwin' and 'darwin7.0' -else ifeq "$(findstring Darwin,$(OSTYPE))" "Darwin" - -SYSTYPE := __GCCUNIX__ -D__THINK_STUPID__ -SDLLIBTYPE := --static-libs - -# Linux -else ifeq "$(findstring Linux,$(OSTYPE))" "Linux" - SYSTYPE := __GCCUNIX__ -SDLLIBTYPE := --libs - -else ifeq "$(findstring kFreeBSD,$(OSTYPE))" "kFreeBSD" -SYSTYPE := __GCCUNIX__ -SDLLIBTYPE := --libs - -# ??? Throw error, unknown OS -else - -$(error OS TYPE UNDETECTED) - -endif +ifneq "$(CROSS)" "" +SYSTYPE := __GCCWIN32__ else +OSTYPE := $(shell uname -o) +ifeq "$(OSTYPE)" "Msys" SYSTYPE := __GCCWIN32__ -SDLLIBTYPE := --libs +endif endif # Set vars for libcdio