mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Merge branch 'mingw-64bit-cpu-target-revise' into appveyor-64
This commit is contained in:
commit
bef0bc82e4
2 changed files with 22 additions and 17 deletions
37
src/Makefile
37
src/Makefile
|
@ -104,8 +104,18 @@ endif
|
||||||
ifdef LINUX64
|
ifdef LINUX64
|
||||||
LINUX=1
|
LINUX=1
|
||||||
NONX86=1
|
NONX86=1
|
||||||
|
# LINUX64 does not imply X86_64=1; could mean ARM64 or Itanium
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifdef MINGW64
|
||||||
|
MINGW=1
|
||||||
|
NONX86=1
|
||||||
|
NOASM=1
|
||||||
|
# MINGW64 should not necessarily imply X86_64=1, but we make that assumption elsewhere
|
||||||
|
# Once that changes, remove this
|
||||||
|
X86_64=1
|
||||||
|
endif #ifdef MINGW64
|
||||||
|
|
||||||
ifdef HAIKU
|
ifdef HAIKU
|
||||||
SDL=1
|
SDL=1
|
||||||
endif
|
endif
|
||||||
|
@ -176,11 +186,6 @@ ifdef MINGW
|
||||||
include win32/Makefile.cfg
|
include win32/Makefile.cfg
|
||||||
endif #ifdef MINGW
|
endif #ifdef MINGW
|
||||||
|
|
||||||
ifdef MINGW64
|
|
||||||
MINGW=1
|
|
||||||
include win32/Makefile.cfg
|
|
||||||
endif #ifdef MINGW64
|
|
||||||
|
|
||||||
ifdef UNIX
|
ifdef UNIX
|
||||||
UNIXCOMMON=1
|
UNIXCOMMON=1
|
||||||
endif
|
endif
|
||||||
|
@ -288,11 +293,13 @@ OPTS += -DCOMPVERSION
|
||||||
|
|
||||||
ifndef NONX86
|
ifndef NONX86
|
||||||
ifndef GCC29
|
ifndef GCC29
|
||||||
M5=-march=pentium
|
ARCHOPTS?=-march=pentium
|
||||||
M4=-march=i486
|
|
||||||
else
|
else
|
||||||
M5=-mpentium
|
ARCHOPTS?=-mpentium
|
||||||
M4=-m486
|
endif
|
||||||
|
else
|
||||||
|
ifdef X86_64
|
||||||
|
ARCHOPTS?=-march=nocona
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -421,7 +428,7 @@ else
|
||||||
WINDRESFLAGS = -DNDEBUG
|
WINDRESFLAGS = -DNDEBUG
|
||||||
CFLAGS+=-O3
|
CFLAGS+=-O3
|
||||||
endif
|
endif
|
||||||
CFLAGS+=-g $(OPTS) $(M5) $(WINDRESFLAGS)
|
CFLAGS+=-g $(OPTS) $(ARCHOPTS) $(WINDRESFLAGS)
|
||||||
|
|
||||||
ifdef YASM
|
ifdef YASM
|
||||||
ifdef STABS
|
ifdef STABS
|
||||||
|
@ -909,15 +916,15 @@ endif
|
||||||
ifndef NOHS
|
ifndef NOHS
|
||||||
$(OBJDIR)/s_ds3d.o: hardware/s_ds3d/s_ds3d.c hardware/hw3dsdrv.h \
|
$(OBJDIR)/s_ds3d.o: hardware/s_ds3d/s_ds3d.c hardware/hw3dsdrv.h \
|
||||||
hardware/hw_dll.h
|
hardware/hw_dll.h
|
||||||
$(CC) $(M5) -Os -o $(OBJDIR)/s_ds3d.o $(WFLAGS) -D_WINDOWS -mwindows -c hardware/s_ds3d/s_ds3d.c
|
$(CC) $(ARCHOPTS) -Os -o $(OBJDIR)/s_ds3d.o $(WFLAGS) -D_WINDOWS -mwindows -c hardware/s_ds3d/s_ds3d.c
|
||||||
|
|
||||||
$(OBJDIR)/s_fmod.o: hardware/s_openal/s_openal.c hardware/hw3dsdrv.h \
|
$(OBJDIR)/s_fmod.o: hardware/s_openal/s_openal.c hardware/hw3dsdrv.h \
|
||||||
hardware/hw_dll.h
|
hardware/hw_dll.h
|
||||||
$(CC) $(M5) -Os -o $(OBJDIR)/s_fmod.o $(WFLAGS) -D_WINDOWS -mwindows -c hardware/s_fmod/s_fmod.c
|
$(CC) $(ARCHOPTS) -Os -o $(OBJDIR)/s_fmod.o $(WFLAGS) -D_WINDOWS -mwindows -c hardware/s_fmod/s_fmod.c
|
||||||
|
|
||||||
$(OBJDIR)/s_openal.o: hardware/s_openal/s_openal.c hardware/hw3dsdrv.h \
|
$(OBJDIR)/s_openal.o: hardware/s_openal/s_openal.c hardware/hw3dsdrv.h \
|
||||||
hardware/hw_dll.h
|
hardware/hw_dll.h
|
||||||
$(CC) $(M5) -Os -o $(OBJDIR)/s_openal.o $(WFLAGS) -D_WINDOWS -mwindows -c hardware/s_openal/s_openal.c
|
$(CC) $(ARCHOPTS) -Os -o $(OBJDIR)/s_openal.o $(WFLAGS) -D_WINDOWS -mwindows -c hardware/s_openal/s_openal.c
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
@ -947,11 +954,11 @@ else
|
||||||
|
|
||||||
$(OBJDIR)/s_fmod.o: hardware/s_fmod/s_fmod.c hardware/hw3dsdrv.h \
|
$(OBJDIR)/s_fmod.o: hardware/s_fmod/s_fmod.c hardware/hw3dsdrv.h \
|
||||||
hardware/hw_dll.h
|
hardware/hw_dll.h
|
||||||
$(CC) $(M5) -Os -o $(OBJDIR)/s_fmod.o -DHW3SOUND -DUNIXCOMMON -shared -nostartfiles -c hardware/s_fmod/s_fmod.c
|
$(CC) $(ARCHOPTS) -Os -o $(OBJDIR)/s_fmod.o -DHW3SOUND -DUNIXCOMMON -shared -nostartfiles -c hardware/s_fmod/s_fmod.c
|
||||||
|
|
||||||
$(OBJDIR)/s_openal.o: hardware/s_openal/s_openal.c hardware/hw3dsdrv.h \
|
$(OBJDIR)/s_openal.o: hardware/s_openal/s_openal.c hardware/hw3dsdrv.h \
|
||||||
hardware/hw_dll.h
|
hardware/hw_dll.h
|
||||||
$(CC) $(M5) -Os -o $(OBJDIR)/s_openal.o -DHW3SOUND -DUNIXCOMMON -shared -nostartfiles -c hardware/s_openal/s_openal.c
|
$(CC) $(ARCHOPTS) -Os -o $(OBJDIR)/s_openal.o -DHW3SOUND -DUNIXCOMMON -shared -nostartfiles -c hardware/s_openal/s_openal.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef FILTERS
|
ifdef FILTERS
|
||||||
|
|
|
@ -7,8 +7,6 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
ifdef MINGW64
|
ifdef MINGW64
|
||||||
NOASM=1
|
|
||||||
NONX86=1
|
|
||||||
HAVE_LIBGME=1
|
HAVE_LIBGME=1
|
||||||
LIBGME_CFLAGS=-I../libs/gme/include
|
LIBGME_CFLAGS=-I../libs/gme/include
|
||||||
LIBGME_LDFLAGS=-L../libs/gme/win64 -lgme
|
LIBGME_LDFLAGS=-L../libs/gme/win64 -lgme
|
||||||
|
|
Loading…
Reference in a new issue