--- _Makefile 2020-03-31 10:09:49.894814332 +0200 +++ Makefile 2020-03-31 11:53:56.772513565 +0200 @@ -61,6 +61,7 @@ ifneq ($(ARCH),axp) ifneq ($(ARCH),ia64) ifneq ($(ARCH),ppc) +ifneq ($(ARCH),ppc64) ifneq ($(ARCH),sparc) $(error arch $(ARCH) is currently not supported) endif @@ -69,6 +70,7 @@ endif endif endif +endif CC=gcc @@ -83,6 +85,11 @@ -fomit-frame-pointer -fexpensive-optimizations endif +ifeq ($(ARCH),ppc64) +OPT_CFLAGS=-O2 -ffast-math -funroll-loops \ + -fomit-frame-pointer -fexpensive-optimizations +endif + ifeq ($(ARCH),sparc) OPT_CFLAGS=-ffast-math -funroll-loops \ -fomit-frame-pointer -fexpensive-optimizations @@ -324,7 +331,7 @@ ifeq ($(strip $(BUILD_SDLQUAKE2)),YES) TARGETS += $(BUILDDIR)/sdlquake2 endif - + ifeq ($(strip $(BUILD_SVGA)),YES) $(warning Warning: SVGAlib support not supported for $(ARCH)) endif @@ -350,6 +357,36 @@ endif endif # ARCH ppc +ifeq ($(ARCH),ppc64) + ifeq ($(strip $(BUILD_SDLQUAKE2)),YES) + TARGETS += $(BUILDDIR)/sdlquake2 + endif + + ifeq ($(strip $(BUILD_SVGA)),YES) + $(warning Warning: SVGAlib support not supported for $(ARCH)) + endif + + ifeq ($(strip $(BUILD_X11)),YES) + TARGETS += $(BUILDDIR)/ref_softx.$(SHLIBEXT) + endif + + ifeq ($(strip $(BUILD_GLX)),YES) + TARGETS += $(BUILDDIR)/ref_glx.$(SHLIBEXT) + endif + + ifeq ($(strip $(BUILD_FXGL)),YES) + $(warning Warning: FXGL support not supported for $(ARCH)) + endif + + ifeq ($(strip $(BUILD_SDL)),YES) + TARGETS += $(BUILDDIR)/ref_softsdl.$(SHLIBEXT) + endif + + ifeq ($(strip $(BUILD_SDLGL)),YES) + TARGETS += $(BUILDDIR)/ref_sdlgl.$(SHLIBEXT) + endif +endif # ARCH ppc64 + ifeq ($(ARCH),sparc) ifeq ($(strip $(BUILD_SDLQUAKE2)),YES) TARGETS += $(BUILDDIR)/sdlquake2