fix binary name for the x86 target on non windows platforms.
This commit is contained in:
parent
7bb77f4fc0
commit
35e1e44a11
14
x86/Makefile
14
x86/Makefile
|
@ -10,17 +10,27 @@ AS = as
|
||||||
PREFIX = /usr
|
PREFIX = /usr
|
||||||
OBJS = main.o cpu.o memory.o video.o input.o sound.o \
|
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
|
cpu_threaded.o gui.o x86_stub.o cheats.o zip.o
|
||||||
BIN ?= gpsp.exe
|
|
||||||
|
|
||||||
# Platform specific definitions
|
# 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 += ..
|
VPATH += ..
|
||||||
CFLAGS += -DPC_BUILD -Wall -m32
|
CFLAGS += -DPC_BUILD -Wall -m32
|
||||||
INCLUDES = -I${PREFIX}/include `sdl-config --cflags`
|
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:
|
# Compilation:
|
||||||
|
|
||||||
|
|
||||||
.SUFFIXES: .c .S
|
.SUFFIXES: .c .S
|
||||||
|
|
||||||
all: ${BIN}
|
all: ${BIN}
|
||||||
|
|
Loading…
Reference in New Issue