mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 19:20:46 +00:00
Patch adding Wii support by tueidj, part 2: Makefile changes
I didn't add Makefile.common, because it needs to be made conditional. git-svn-id: https://svn.eduke32.com/eduke32@2622 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
133acaecae
commit
bd8559f6c3
3 changed files with 28 additions and 2 deletions
|
@ -191,6 +191,12 @@ ifeq ($(PLATFORM),LINUX)
|
||||||
LIBS += -lvorbisfile -lvorbis -logg
|
LIBS += -lvorbisfile -lvorbis -logg
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(PLATFORM),WII)
|
||||||
|
STRIP=powerpc-eabi-strip
|
||||||
|
OURCFLAGS += -g -mcpu=750 -meabi -mhard-float -msdata -O2 -I$(LIBOGC_INC) -I$(PORTLIBS)/include -DGEKKO
|
||||||
|
LIBS += -L$(LIBOGC_LIB) -L$(PORTLIBS)/lib -lvorbisidec -lfreetype -lfat -lwiiuse -lbte -logc -lm -lwiikeyboard
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(PLATFORM),DARWIN)
|
ifeq ($(PLATFORM),DARWIN)
|
||||||
OURCFLAGS += -fno-pic -I$(abspath Apple) -I$(abspath Apple/include)
|
OURCFLAGS += -fno-pic -I$(abspath Apple) -I$(abspath Apple/include)
|
||||||
|
|
||||||
|
@ -247,7 +253,9 @@ else
|
||||||
# -lGLU to build with gluBuild2DMipmaps
|
# -lGLU to build with gluBuild2DMipmaps
|
||||||
ifeq ($(RENDERTYPE),SDL)
|
ifeq ($(RENDERTYPE),SDL)
|
||||||
ifeq (0,$(SDL_FRAMEWORK))
|
ifeq (0,$(SDL_FRAMEWORK))
|
||||||
OURCFLAGS+= $(subst -Dmain=SDL_main,,$(shell $(SDLCONFIG) --cflags))
|
ifneq ($(PLATFORM),WII)
|
||||||
|
OURCFLAGS+= $(subst -Dmain=SDL_main,,$(shell $(SDLCONFIG) --cflags))
|
||||||
|
endif
|
||||||
LIBS+= -lSDL_mixer
|
LIBS+= -lSDL_mixer
|
||||||
else
|
else
|
||||||
OURCFLAGS += -DSDL_FRAMEWORK
|
OURCFLAGS += -DSDL_FRAMEWORK
|
||||||
|
@ -280,6 +288,9 @@ endif
|
||||||
ifneq (0,$(PROFILER))
|
ifneq (0,$(PROFILER))
|
||||||
OURLDFLAGS+=-pg
|
OURLDFLAGS+=-pg
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(PLATFORM),WII)
|
||||||
|
MISCLINKOPTS+= -g -mrvl -meabi -mhard-float -msdata -Wl,--gc-sections -Wl,-Map,$(notdir $@).map
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(PRETTY_OUTPUT),1)
|
ifeq ($(PRETTY_OUTPUT),1)
|
||||||
.SILENT:
|
.SILENT:
|
||||||
|
|
|
@ -36,11 +36,15 @@ ifeq (4,$(GCC_MAJOR))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifndef ARCH
|
ifndef ARCH
|
||||||
|
ifeq ($(PLATFORM), WII)
|
||||||
|
ARCH=
|
||||||
|
else
|
||||||
ifeq ($(findstring i686, $(shell uname -m)), i686)
|
ifeq ($(findstring i686, $(shell uname -m)), i686)
|
||||||
ARCH=-march=pentium3 $(M_TUNE_GENERIC) -mmmx # -msse2 -mfpmath=sse,387 -malign-double $(M_STACKREALIGN)
|
ARCH=-march=pentium3 $(M_TUNE_GENERIC) -mmmx # -msse2 -mfpmath=sse,387 -malign-double $(M_STACKREALIGN)
|
||||||
else
|
else
|
||||||
ARCH=
|
ARCH=
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
BUILDCFLAGS=$(ARCH)
|
BUILDCFLAGS=$(ARCH)
|
||||||
|
@ -157,6 +161,14 @@ ifeq ($(PLATFORM),SKYOS)
|
||||||
SDLCONFIG_CFLAGS=-I/boot/programs/sdk/include/sdl
|
SDLCONFIG_CFLAGS=-I/boot/programs/sdk/include/sdl
|
||||||
LIBS+= -lSDL -lnet
|
LIBS+= -lSDL -lnet
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(PLATFORM),WII)
|
||||||
|
RENDERTYPE=SDL
|
||||||
|
EXESUFFIX=.elf
|
||||||
|
override WITHOUT_GTK=1
|
||||||
|
BUILDCFLAGS+= -g -mcpu=750 -meabi -mhard-float -msdata -O2 -DGEKKO -DHAVE_INTTYPES -D__POWERPC__ -I$(LIBOGC_INC) -I$(LIBOGC_INC)/SDL
|
||||||
|
SDLCONFIG=
|
||||||
|
LIBS+= -lSDL_mixer -lsmpeg -lSDL -laesnd
|
||||||
|
endif
|
||||||
ifeq ($(PLATFORM),QNX)
|
ifeq ($(PLATFORM),QNX)
|
||||||
RENDERTYPE=SDL
|
RENDERTYPE=SDL
|
||||||
override USE_OPENGL=0
|
override USE_OPENGL=0
|
||||||
|
|
|
@ -15,7 +15,10 @@ else
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# for BUILD_ECHOFLAGS:
|
# for BUILD_ECHOFLAGS:
|
||||||
OURCFLAGS=$(BASECFLAGS) $(BUILDCFLAGS) -I$(INC) -I$(SRC) -DHAVE_VORBIS
|
OURCFLAGS=$(BASECFLAGS) $(BUILDCFLAGS) -I$(INC) -I$(SRC)
|
||||||
|
ifneq ($(PLATFORM),WII)
|
||||||
|
OURCFLAGS+= -DHAVE_VORBIS
|
||||||
|
endif
|
||||||
ifneq ($(RELEASE),0)
|
ifneq ($(RELEASE),0)
|
||||||
# Debugging disabled
|
# Debugging disabled
|
||||||
debug+= $(F_NO_STACK_PROTECTOR)
|
debug+= $(F_NO_STACK_PROTECTOR)
|
||||||
|
|
Loading…
Reference in a new issue