summaryrefslogtreecommitdiff
path: root/x86
diff options
context:
space:
mode:
authoraliaspider2014-12-08 22:55:41 +0100
committeraliaspider2014-12-08 22:55:41 +0100
commit35e1e44a1107c73a3aaccb0eff44757c602afdac (patch)
tree0a8db8fda7137bbf772d70f091ec2c95b5f2e105 /x86
parent7bb77f4fc090cadc23c3e05998ccebac7156e3cf (diff)
downloadpicogpsp-35e1e44a1107c73a3aaccb0eff44757c602afdac.tar.gz
picogpsp-35e1e44a1107c73a3aaccb0eff44757c602afdac.tar.bz2
picogpsp-35e1e44a1107c73a3aaccb0eff44757c602afdac.zip
fix binary name for the x86 target on non windows platforms.
Diffstat (limited to 'x86')
-rw-r--r--x86/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/x86/Makefile b/x86/Makefile
index 276996d..319a4a7 100644
--- a/x86/Makefile
+++ b/x86/Makefile
@@ -10,17 +10,27 @@ AS = as
PREFIX = /usr
OBJS = main.o cpu.o memory.o video.o input.o sound.o \
cpu_threaded.o gui.o x86_stub.o cheats.o zip.o
-BIN ?= gpsp.exe
# Platform specific definitions
+ifeq ($(shell uname -a),)
+EXE_EXT = .exe
+else ifneq ($(findstring MINGW,$(shell uname -a)),)
+EXE_EXT = .exe
+else
+EXE_EXT =
+endif
+
+BIN ?= gpsp$(EXE_EXT)
+
VPATH += ..
CFLAGS += -DPC_BUILD -Wall -m32
INCLUDES = -I${PREFIX}/include `sdl-config --cflags`
-LIBS = -L${PREFIX}/lib `sdl-config --libs` -lz -m32
+LIBS = -L${PREFIX}/lib32 `sdl-config --libs` -lz -m32
# Compilation:
+
.SUFFIXES: .c .S
all: ${BIN}