]> Shamusworld >> Repos - virtualjaguar/commitdiff
Simplify platform detection in jaguarcore.mak
authorTeemu Hukkanen <tjhukkan@iki.fi>
Sun, 21 Sep 2014 13:01:43 +0000 (14:01 +0100)
committerTeemu Hukkanen <tjhukkan@iki.fi>
Mon, 6 Oct 2014 13:02:33 +0000 (14:02 +0100)
Default SYSTYPE to __GCCUNIX__, and change it only for special cases,
instead of the other way around.

Remove SDLLIBTYPE, it wasn't used at all.

jaguarcore.mak

index 31bd4a822cb0006b68bbe5c969179201e557768b..6b5b9ee92acb875710957b9b5443398381c51d48 100644 (file)
 # 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