5 #########################
6 # Check the host platform
8 include $(BUILD_DIR)/Makefile.common.hostcheck
10 #########################
11 # Set the target platform
13 TARGET_PLATFORM = wii_ppc
18 CC = $(DEVKITPPC_ROOT_DIR)/bin/powerpc-eabi-gcc
19 CXX = $(DEVKITPPC_ROOT_DIR)/bin/powerpc-eabi-g++
20 AS = $(DEVKITPPC_ROOT_DIR)/bin/powerpc-eabi-as
21 AR = $(DEVKITPPC_ROOT_DIR)/bin/powerpc-eabi-ar
35 PLATDEFS = -DGEKKO -DHW_RVL
36 PLATCFLAGS = -m32 -fstrict-aliasing -mrvl -mcpu=750 -meabi -mhard-float -DMSB_FIRST -DWORDS_BIGENDIAN=1
37 PLATCXXFLAGS = -m32 -fstrict-aliasing -mrvl -mcpu=750 -meabi -mhard-float -DMSB_FIRST -DWORDS_BIGENDIAN=1
38 PLATLDFLAGS = -shared -lm
39 PLATLDXFLAGS = -shared -lm
44 RETRODEFS = -D__LIBRETRO__
53 DEFINES = $(PLATDEFS) $(COREDEFINES) $(RETRODEFS)
54 CFLAGS = $(PLATCFLAGS) $(RETROCFLAGS) $(DEFINES) $(INCLUDES)
55 CXXFLAGS = $(PLATCXXFLAGS) $(RETROCXXFLAGS) $(DEFINES) $(INCLUDES)
56 LDFLAGS = $(PLATLDFLAGS) $(RETROLDFLAGS)
57 LDXFLAGS = $(PLATLDXFLAGS) $(RETROLDXFLAGS)
66 CFLAGS += -O3 -DNDEBUG
67 CXXFLAGS += -O3 -DNDEBUG
70 ifneq ($(LOG_PERFORMANCE),)
71 CFLAGS += -DLOG_PERFORMANCE
72 CXXFLAGS += -DLOG_PERFORMANCE
75 ####################################
76 # Variable setup for Makefile.common
82 include $(BUILD_DIR)/Makefile.common
87 include $(BUILD_DIR)/Makefile.rules