mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-12 23:54:07 +00:00
* Solaris patch from Vincent S. Cojot
This commit is contained in:
parent
9415f5fe09
commit
2499d9b0f5
2 changed files with 11 additions and 10 deletions
|
@ -44,7 +44,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
#define SYMLOAD(x,y) GetProcAddress(x,y)
|
#define SYMLOAD(x,y) GetProcAddress(x,y)
|
||||||
#define OBJFREE(x) FreeLibrary(x)
|
#define OBJFREE(x) FreeLibrary(x)
|
||||||
|
|
||||||
#elif defined __linux__ || defined __FreeBSD__ || defined MACOS_X
|
#elif defined __linux__ || defined __FreeBSD__ || defined MACOS_X || defined __sun
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#define OBJTYPE void *
|
#define OBJTYPE void *
|
||||||
#define OBJLOAD(x) dlopen(x, RTLD_LAZY | RTLD_GLOBAL)
|
#define OBJLOAD(x) dlopen(x, RTLD_LAZY | RTLD_GLOBAL)
|
||||||
|
|
|
@ -524,7 +524,7 @@ ifeq ($(PLATFORM),SunOS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes
|
BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes -pipe
|
||||||
|
|
||||||
ifeq ($(USE_SDL),1)
|
ifeq ($(USE_SDL),1)
|
||||||
BASE_CFLAGS += -DUSE_SDL_SOUND=1 $(shell sdl-config --cflags)
|
BASE_CFLAGS += -DUSE_SDL_SOUND=1 $(shell sdl-config --cflags)
|
||||||
|
@ -533,22 +533,23 @@ ifeq ($(PLATFORM),SunOS)
|
||||||
GL_CFLAGS = -I/usr/openwin/include
|
GL_CFLAGS = -I/usr/openwin/include
|
||||||
endif
|
endif
|
||||||
|
|
||||||
OPTIMIZE = -O3 -ffast-math -funroll-loops -fomit-frame-pointer
|
OPTIMIZE = -O3 -ffast-math -funroll-loops
|
||||||
|
|
||||||
ifeq ($(ARCH),sparc)
|
ifeq ($(ARCH),sparc)
|
||||||
OPTIMIZE = -O3 -fomit-frame-pointer -ffast-math -falign-loops=2 \
|
OPTIMIZE = -O0 -ffast-math -falign-loops=2 \
|
||||||
-falign-jumps=2 -falign-functions=2 -fstrength-reduce \
|
-falign-jumps=2 -falign-functions=2 -fstrength-reduce \
|
||||||
|
-mtune=ultrasparc -mv8plus -munaligned-doubles \
|
||||||
-funroll-loops
|
-funroll-loops
|
||||||
BASE_CFLAGS += -DNO_VM_COMPILED
|
BASE_CFLAGS += -DNO_VM_COMPILED
|
||||||
else
|
else
|
||||||
ifeq ($(ARCH),i386)
|
ifeq ($(ARCH),i386)
|
||||||
OPTIMIZE = -O3 -march=i686 -fomit-frame-pointer -ffast-math \
|
OPTIMIZE = -O3 -march=i686 -ffast-math \
|
||||||
-falign-loops=2 -falign-jumps=2 -falign-functions=2 \
|
-falign-loops=2 -falign-jumps=2 -falign-functions=2 \
|
||||||
-funroll-loops -fstrength-reduce
|
-funroll-loops -fstrength-reduce
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
DEBUG_CFLAGS = $(BASE_CFLAGS) -g -O0
|
DEBUG_CFLAGS = $(BASE_CFLAGS) -ggdb -O0
|
||||||
|
|
||||||
RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG $(OPTIMIZE)
|
RELEASE_CFLAGS=$(BASE_CFLAGS) -DNDEBUG $(OPTIMIZE)
|
||||||
|
|
||||||
|
@ -586,8 +587,8 @@ ifeq ($(PLATFORM),SunOS)
|
||||||
$(B)/baseq3/vm/ui.qvm \
|
$(B)/baseq3/vm/ui.qvm \
|
||||||
$(B)/missionpack/vm/qagame.qvm \
|
$(B)/missionpack/vm/qagame.qvm \
|
||||||
$(B)/missionpack/vm/cgame.qvm \
|
$(B)/missionpack/vm/cgame.qvm \
|
||||||
$(B)/missionpack/vm/ui.qvm
|
$(B)/missionpack/vm/ui.qvm \
|
||||||
# $(B)/$(PLATFORM)quake3-smp
|
$(B)/$(PLATFORM)quake3-smp
|
||||||
else
|
else
|
||||||
TARGETS=\
|
TARGETS=\
|
||||||
$(B)/$(PLATFORM)quake3 \
|
$(B)/$(PLATFORM)quake3 \
|
||||||
|
@ -603,8 +604,8 @@ ifeq ($(PLATFORM),SunOS)
|
||||||
$(B)/baseq3/vm/ui.qvm \
|
$(B)/baseq3/vm/ui.qvm \
|
||||||
$(B)/missionpack/vm/qagame.qvm \
|
$(B)/missionpack/vm/qagame.qvm \
|
||||||
$(B)/missionpack/vm/cgame.qvm \
|
$(B)/missionpack/vm/cgame.qvm \
|
||||||
$(B)/missionpack/vm/ui.qvm
|
$(B)/missionpack/vm/ui.qvm \
|
||||||
# $(B)/$(PLATFORM)quake3-smp
|
$(B)/$(PLATFORM)quake3-smp
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue